Changeset 3438273
- Timestamp:
- 01/13/2026 02:17:38 AM (3 months ago)
- Location:
- precise-sales-for-woocommerce
- Files:
-
- 10 added
- 4 edited
- 1 copied
-
tags/1.1.0 (copied) (copied from precise-sales-for-woocommerce/trunk)
-
tags/1.1.0/.distignore (added)
-
tags/1.1.0/.gitattributes (added)
-
tags/1.1.0/bin (added)
-
tags/1.1.0/bin/archive.sh (added)
-
tags/1.1.0/precise-sales-for-woocommerce.php (modified) (7 diffs)
-
tags/1.1.0/readme.md (added)
-
tags/1.1.0/readme.txt (modified) (2 diffs)
-
trunk/.distignore (added)
-
trunk/.gitattributes (added)
-
trunk/bin (added)
-
trunk/bin/archive.sh (added)
-
trunk/precise-sales-for-woocommerce.php (modified) (7 diffs)
-
trunk/readme.md (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
precise-sales-for-woocommerce/tags/1.1.0/precise-sales-for-woocommerce.php
r2784342 r3438273 4 4 * Plugin URI: https://devpress.com/products/precise-sales-for-woocommerce/ 5 5 * Description: Allows WooCommerce sales to be scheduled to the minute. 6 * Version: 1. 0.06 * Version: 1.1.0 7 7 * Author: DevPress 8 8 * Author URI: https://devpress.com 9 9 * 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 12 15 * 13 16 * License: GNU General Public License v3.0 … … 79 82 80 83 /** 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. 84 87 */ 85 88 public function save_product_sale_time( $product ) { … … 136 139 * Get the product sale time with default format returning "H:i". 137 140 * 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. 141 145 */ 142 146 public function get_product_sale_time( $product, $type = 'from', $format = 'H:i' ) { … … 155 159 156 160 /** 157 * Display new sale time fields on the prodict page.161 * Display sale time fields on the product edit page. 158 162 */ 159 163 public function add_product_sale_time() { … … 165 169 <div class="hide-if-js"> 166 170 <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> 168 172 <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" /> 169 173 </p> 170 174 <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> 172 176 <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" /> 173 177 </p> … … 262 266 timeFromInput.insertAfter('#_sale_price_dates_from'); 263 267 timeFromInput.css('margin-bottom','1em'); 264 timeFromInput.datepicker("destroy"); 268 if ( $.fn.datepicker && timeFromInput.data('datepicker') ) { 269 timeFromInput.datepicker("destroy"); 270 } 265 271 } 266 272 … … 271 277 timeToInput.css('margin-bottom','1em'); 272 278 $('#_sale_price_dates_to').css('margin-bottom', '1em'); 273 timeToInput.datepicker("destroy"); 279 if ( $.fn.datepicker && timeToInput.data('datepicker') ) { 280 timeToInput.datepicker("destroy"); 281 } 274 282 } 275 283 }); -
precise-sales-for-woocommerce/tags/1.1.0/readme.txt
r2784342 r3438273 3 3 Contributors: devpress, downstairsdev 4 4 Tags: 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 5 Requires at least: 6.4 6 Tested up to: 6.9 7 Stable tag: 1.1.0 8 Requires PHP: 8.2 9 WC requires at least: 8.0.0 10 WC tested up to: 10.4.3 11 License: GPLv3 or later 12 License URI: https://www.gnu.org/licenses/gpl-3.0.html 11 13 12 14 Enables WooCommerce product sale scheduling to the day, hour and minute. … … 38 40 == Screenshots == 39 41 40 1. T his screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.42 1. Time fields added to the WooCommerce product sale schedule settings. 41 43 42 44 == 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. 43 56 44 57 = 1.0 = -
precise-sales-for-woocommerce/trunk/precise-sales-for-woocommerce.php
r2784342 r3438273 4 4 * Plugin URI: https://devpress.com/products/precise-sales-for-woocommerce/ 5 5 * Description: Allows WooCommerce sales to be scheduled to the minute. 6 * Version: 1. 0.06 * Version: 1.1.0 7 7 * Author: DevPress 8 8 * Author URI: https://devpress.com 9 9 * 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 12 15 * 13 16 * License: GNU General Public License v3.0 … … 79 82 80 83 /** 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. 84 87 */ 85 88 public function save_product_sale_time( $product ) { … … 136 139 * Get the product sale time with default format returning "H:i". 137 140 * 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. 141 145 */ 142 146 public function get_product_sale_time( $product, $type = 'from', $format = 'H:i' ) { … … 155 159 156 160 /** 157 * Display new sale time fields on the prodict page.161 * Display sale time fields on the product edit page. 158 162 */ 159 163 public function add_product_sale_time() { … … 165 169 <div class="hide-if-js"> 166 170 <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> 168 172 <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" /> 169 173 </p> 170 174 <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> 172 176 <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" /> 173 177 </p> … … 262 266 timeFromInput.insertAfter('#_sale_price_dates_from'); 263 267 timeFromInput.css('margin-bottom','1em'); 264 timeFromInput.datepicker("destroy"); 268 if ( $.fn.datepicker && timeFromInput.data('datepicker') ) { 269 timeFromInput.datepicker("destroy"); 270 } 265 271 } 266 272 … … 271 277 timeToInput.css('margin-bottom','1em'); 272 278 $('#_sale_price_dates_to').css('margin-bottom', '1em'); 273 timeToInput.datepicker("destroy"); 279 if ( $.fn.datepicker && timeToInput.data('datepicker') ) { 280 timeToInput.datepicker("destroy"); 281 } 274 282 } 275 283 }); -
precise-sales-for-woocommerce/trunk/readme.txt
r2784342 r3438273 3 3 Contributors: devpress, downstairsdev 4 4 Tags: 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 5 Requires at least: 6.4 6 Tested up to: 6.9 7 Stable tag: 1.1.0 8 Requires PHP: 8.2 9 WC requires at least: 8.0.0 10 WC tested up to: 10.4.3 11 License: GPLv3 or later 12 License URI: https://www.gnu.org/licenses/gpl-3.0.html 11 13 12 14 Enables WooCommerce product sale scheduling to the day, hour and minute. … … 38 40 == Screenshots == 39 41 40 1. T his screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.42 1. Time fields added to the WooCommerce product sale schedule settings. 41 43 42 44 == 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. 43 56 44 57 = 1.0 =
Note: See TracChangeset
for help on using the changeset viewer.