Plugin Directory

Changeset 3438273


Ignore:
Timestamp:
01/13/2026 02:17:38 AM (3 months ago)
Author:
devpress
Message:

Update to version 1.1.0 from GitHub

Location:
precise-sales-for-woocommerce
Files:
10 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • precise-sales-for-woocommerce/tags/1.1.0/precise-sales-for-woocommerce.php

    r2784342 r3438273  
    44 * Plugin URI: https://devpress.com/products/precise-sales-for-woocommerce/
    55 * Description: Allows WooCommerce sales to be scheduled to the minute.
    6  * Version: 1.0.0
     6 * Version: 1.1.0
    77 * Author: DevPress
    88 * Author URI: https://devpress.com
    99 *
    10  * WC requires at least: 5.9.1
    11  * WC tested up to: 6.8.0
     10 * Requires PHP: 8.2
     11 * Requires at least: 6.4
     12 *
     13 * WC requires at least: 8.0.0
     14 * WC tested up to: 10.4.3
    1215 *
    1316 * License: GNU General Public License v3.0
     
    7982
    8083    /**
    81      * Saves the product sale time with hours and minutes and minutes.
    82      *
    83      * @param \WC_Product $product
     84     * Saves the product sale time with hours and minutes.
     85     *
     86     * @param \WC_Product $product Product object.
    8487     */
    8588    public function save_product_sale_time( $product ) {
     
    136139     * Get the product sale time with default format returning "H:i".
    137140     *
    138      * @param \WC_Product $product
    139      * @param string      $type
    140      * @param string      $format
     141     * @param \WC_Product $product Product object.
     142     * @param string      $type    Type of date: 'from' or 'to'.
     143     * @param string      $format  Date format string.
     144     * @return string Formatted time string or empty string if not set.
    141145     */
    142146    public function get_product_sale_time( $product, $type = 'from', $format = 'H:i' ) {
     
    155159
    156160    /**
    157      * Display new sale time fields on the prodict page.
     161     * Display sale time fields on the product edit page.
    158162     */
    159163    public function add_product_sale_time() {
     
    165169        <div class="hide-if-js">
    166170            <p class="form-field sale_price_dates_fields">
    167                 <label for="_sale_price_time_from"><?php esc_html_e( 'Sale Time From', 'universalyums' ); ?></label>
     171                <label for="_sale_price_time_from"><?php esc_html_e( 'Sale Time From', 'precise-sales-for-woocommerce' ); ?></label>
    168172                <input pattern="[0-9]{2}:[0-9]{2}"  type="text" class="short _sale_price_time_from" name="_sale_price_time_from" id="_sale_price_time_from" value="<?php echo esc_attr( $sale_price_time_from ); ?>" placeholder="HH:mm" />
    169173            </p>
    170174            <p class="form-field sale_price_dates_fields">
    171                 <label for="_sale_price_time_to"><?php esc_html_e( 'Sale Time To', 'universalyums' ); ?></label>
     175                <label for="_sale_price_time_to"><?php esc_html_e( 'Sale Time To', 'precise-sales-for-woocommerce' ); ?></label>
    172176                <input pattern="[0-9]{2}:[0-9]{2}"  type="text" class="short _sale_price_time_to" name="_sale_price_time_to" id="_sale_price_time_to" value="<?php echo esc_attr( $sale_price_time_to ); ?>" placeholder="HH:mm" />
    173177            </p>
     
    262266                        timeFromInput.insertAfter('#_sale_price_dates_from');
    263267                        timeFromInput.css('margin-bottom','1em');
    264                         timeFromInput.datepicker("destroy");
     268                        if ( $.fn.datepicker && timeFromInput.data('datepicker') ) {
     269                            timeFromInput.datepicker("destroy");
     270                        }
    265271                    }
    266272
     
    271277                        timeToInput.css('margin-bottom','1em');
    272278                        $('#_sale_price_dates_to').css('margin-bottom', '1em');
    273                         timeToInput.datepicker("destroy");
     279                        if ( $.fn.datepicker && timeToInput.data('datepicker') ) {
     280                            timeToInput.datepicker("destroy");
     281                        }
    274282                    }
    275283                });
  • precise-sales-for-woocommerce/tags/1.1.0/readme.txt

    r2784342 r3438273  
    33Contributors: devpress, downstairsdev
    44Tags: woocommerce, sales
    5 Requires at least: 6.0
    6 Tested up to: 6.0
    7 Stable tag: 1.0.0
    8 Requires PHP: 7.0
    9 License: GPLv2 or later
    10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
     5Requires at least: 6.4
     6Tested up to: 6.9
     7Stable tag: 1.1.0
     8Requires PHP: 8.2
     9WC requires at least: 8.0.0
     10WC tested up to: 10.4.3
     11License: GPLv3 or later
     12License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1113
    1214Enables WooCommerce product sale scheduling to the day, hour and minute.
     
    3840== Screenshots ==
    3941
    40 1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.
     421. Time fields added to the WooCommerce product sale schedule settings.
    4143
    4244== Changelog ==
     45
     46= 1.1.0 =
     47
     48* Updated compatibility for WooCommerce 10.4.3 and WordPress 6.9.
     49* Updated minimum PHP requirement to 8.2.
     50* Updated minimum WooCommerce requirement to 8.0.0.
     51* Fixed text domain for translation strings.
     52* Improved JavaScript compatibility.
     53* Added additional unit tests for edge cases.
     54* Expanded CI test matrix to include PHP 8.x versions.
     55* Standardized license to GPL-3.0.
    4356
    4457= 1.0 =
  • precise-sales-for-woocommerce/trunk/precise-sales-for-woocommerce.php

    r2784342 r3438273  
    44 * Plugin URI: https://devpress.com/products/precise-sales-for-woocommerce/
    55 * Description: Allows WooCommerce sales to be scheduled to the minute.
    6  * Version: 1.0.0
     6 * Version: 1.1.0
    77 * Author: DevPress
    88 * Author URI: https://devpress.com
    99 *
    10  * WC requires at least: 5.9.1
    11  * WC tested up to: 6.8.0
     10 * Requires PHP: 8.2
     11 * Requires at least: 6.4
     12 *
     13 * WC requires at least: 8.0.0
     14 * WC tested up to: 10.4.3
    1215 *
    1316 * License: GNU General Public License v3.0
     
    7982
    8083    /**
    81      * Saves the product sale time with hours and minutes and minutes.
    82      *
    83      * @param \WC_Product $product
     84     * Saves the product sale time with hours and minutes.
     85     *
     86     * @param \WC_Product $product Product object.
    8487     */
    8588    public function save_product_sale_time( $product ) {
     
    136139     * Get the product sale time with default format returning "H:i".
    137140     *
    138      * @param \WC_Product $product
    139      * @param string      $type
    140      * @param string      $format
     141     * @param \WC_Product $product Product object.
     142     * @param string      $type    Type of date: 'from' or 'to'.
     143     * @param string      $format  Date format string.
     144     * @return string Formatted time string or empty string if not set.
    141145     */
    142146    public function get_product_sale_time( $product, $type = 'from', $format = 'H:i' ) {
     
    155159
    156160    /**
    157      * Display new sale time fields on the prodict page.
     161     * Display sale time fields on the product edit page.
    158162     */
    159163    public function add_product_sale_time() {
     
    165169        <div class="hide-if-js">
    166170            <p class="form-field sale_price_dates_fields">
    167                 <label for="_sale_price_time_from"><?php esc_html_e( 'Sale Time From', 'universalyums' ); ?></label>
     171                <label for="_sale_price_time_from"><?php esc_html_e( 'Sale Time From', 'precise-sales-for-woocommerce' ); ?></label>
    168172                <input pattern="[0-9]{2}:[0-9]{2}"  type="text" class="short _sale_price_time_from" name="_sale_price_time_from" id="_sale_price_time_from" value="<?php echo esc_attr( $sale_price_time_from ); ?>" placeholder="HH:mm" />
    169173            </p>
    170174            <p class="form-field sale_price_dates_fields">
    171                 <label for="_sale_price_time_to"><?php esc_html_e( 'Sale Time To', 'universalyums' ); ?></label>
     175                <label for="_sale_price_time_to"><?php esc_html_e( 'Sale Time To', 'precise-sales-for-woocommerce' ); ?></label>
    172176                <input pattern="[0-9]{2}:[0-9]{2}"  type="text" class="short _sale_price_time_to" name="_sale_price_time_to" id="_sale_price_time_to" value="<?php echo esc_attr( $sale_price_time_to ); ?>" placeholder="HH:mm" />
    173177            </p>
     
    262266                        timeFromInput.insertAfter('#_sale_price_dates_from');
    263267                        timeFromInput.css('margin-bottom','1em');
    264                         timeFromInput.datepicker("destroy");
     268                        if ( $.fn.datepicker && timeFromInput.data('datepicker') ) {
     269                            timeFromInput.datepicker("destroy");
     270                        }
    265271                    }
    266272
     
    271277                        timeToInput.css('margin-bottom','1em');
    272278                        $('#_sale_price_dates_to').css('margin-bottom', '1em');
    273                         timeToInput.datepicker("destroy");
     279                        if ( $.fn.datepicker && timeToInput.data('datepicker') ) {
     280                            timeToInput.datepicker("destroy");
     281                        }
    274282                    }
    275283                });
  • precise-sales-for-woocommerce/trunk/readme.txt

    r2784342 r3438273  
    33Contributors: devpress, downstairsdev
    44Tags: woocommerce, sales
    5 Requires at least: 6.0
    6 Tested up to: 6.0
    7 Stable tag: 1.0.0
    8 Requires PHP: 7.0
    9 License: GPLv2 or later
    10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
     5Requires at least: 6.4
     6Tested up to: 6.9
     7Stable tag: 1.1.0
     8Requires PHP: 8.2
     9WC requires at least: 8.0.0
     10WC tested up to: 10.4.3
     11License: GPLv3 or later
     12License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1113
    1214Enables WooCommerce product sale scheduling to the day, hour and minute.
     
    3840== Screenshots ==
    3941
    40 1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.
     421. Time fields added to the WooCommerce product sale schedule settings.
    4143
    4244== Changelog ==
     45
     46= 1.1.0 =
     47
     48* Updated compatibility for WooCommerce 10.4.3 and WordPress 6.9.
     49* Updated minimum PHP requirement to 8.2.
     50* Updated minimum WooCommerce requirement to 8.0.0.
     51* Fixed text domain for translation strings.
     52* Improved JavaScript compatibility.
     53* Added additional unit tests for edge cases.
     54* Expanded CI test matrix to include PHP 8.x versions.
     55* Standardized license to GPL-3.0.
    4356
    4457= 1.0 =
Note: See TracChangeset for help on using the changeset viewer.