Changeset 3808148
- Timestamp:
- 11/17/2026 09:10:33 PM (less than one hour ago)
- Location:
- product-quantity-for-woocommerce
- Files:
-
- 16 edited
- 1 copied
-
tags/5.4.7 (copied) (copied from product-quantity-for-woocommerce/trunk )
-
tags/5.4.7/includes/class-wpfmmsq-core.php (modified) (3 diffs)
-
tags/5.4.7/includes/templates/global/quantity-input.php (modified) (2 diffs)
-
tags/5.4.7/langs/product-quantity-for-woocommerce-de_CH_informal.po (modified) (3 diffs)
-
tags/5.4.7/langs/product-quantity-for-woocommerce-es_ES.po (modified) (3 diffs)
-
tags/5.4.7/langs/product-quantity-for-woocommerce-fr_FR.po (modified) (3 diffs)
-
tags/5.4.7/langs/product-quantity-for-woocommerce.pot (modified) (3 diffs)
-
tags/5.4.7/product-quantity-for-woocommerce.php (modified) (2 diffs)
-
tags/5.4.7/readme.txt (modified) (2 diffs)
-
trunk/includes/class-wpfmmsq-core.php (modified) (3 diffs)
-
trunk/includes/templates/global/quantity-input.php (modified) (2 diffs)
-
trunk/langs/product-quantity-for-woocommerce-de_CH_informal.po (modified) (3 diffs)
-
trunk/langs/product-quantity-for-woocommerce-es_ES.po (modified) (3 diffs)
-
trunk/langs/product-quantity-for-woocommerce-fr_FR.po (modified) (3 diffs)
-
trunk/langs/product-quantity-for-woocommerce.pot (modified) (3 diffs)
-
trunk/product-quantity-for-woocommerce.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
product-quantity-for-woocommerce/tags/5.4.7/includes/class-wpfmmsq-core.php
r3806223 r3808148 3 3 * Product Quantity for WooCommerce - Core Class 4 4 * 5 * @version 5.4. 65 * @version 5.4.7 6 6 * @version 5.4.2 7 7 * @since 1.0.0 … … 2255 2255 * set_quantity_input_args. 2256 2256 * 2257 * @version 5.4. 62257 * @version 5.4.7 2258 2258 * @since 1.2.0 2259 2259 * @todo [dev] re-check do we really need to set `step` here? … … 2322 2322 if ( '' !== $args['min_value'] && '' !== $args['max_value'] && (float) $args['max_value'] === (float) $args['min_value'] ) { 2323 2323 $args['input_value'] = $args['min_value']; 2324 } 2325 } 2326 2327 if ( is_cart() && isset( $args['min_value'], $args['max_value'] ) ) { 2328 if ( '' !== $args['min_value'] && '' !== $args['max_value'] && (float) $args['max_value'] === (float) $args['min_value'] ) { 2329 // Keep the quantity visible on the cart instead of rendering a hidden input. 2330 $args['min_value'] = 0; 2331 $args['readonly'] = true; 2324 2332 } 2325 2333 } -
product-quantity-for-woocommerce/tags/5.4.7/includes/templates/global/quantity-input.php
r3806223 r3808148 3 3 * Product quantity inputs // Drop down by WPFactory 4 4 * 5 * @version 5.4. 65 * @version 5.4.7 6 6 * @since 1.6.0 7 7 * … … 77 77 78 78 if ( ( $max_value && $min_value === $max_value ) || $readonly ) { 79 $hidden_qty_value = ( $readonly && '' !== $input_value ? $input_value : $min_value ); 80 ?> 81 <div class="quantity hidden"> 82 <input type="hidden" id="<?php echo esc_attr( $input_id ); ?>" class="qty <?php echo esc_attr( $disable_price_by_qty ); ?>" 83 name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $hidden_qty_value ); ?>"/> 84 </div> 85 <?php 79 if ( is_cart() ) { 80 // The quantity must remain visible on the cart, so render it as a readonly value. 81 $hidden_qty_value = ( '' !== $input_value ? $input_value : $min_value ); 82 ?> 83 <div class="quantity"> 84 <label class="screen-reader-text" 85 for="<?php echo esc_attr( $input_id ); ?>"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></label> 86 <input 87 type="text" 88 readonly="readonly" 89 id="<?php echo esc_attr( $input_id ); ?>" 90 class="qty <?php echo esc_attr( $disable_price_by_qty ); ?>" 91 name="<?php echo esc_attr( $input_name ); ?>" 92 value="<?php echo esc_attr( $hidden_qty_value ); ?>" 93 title="<?php echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'woocommerce' ); ?>" 94 size="4" 95 /> 96 </div> 97 <?php 98 } else { 99 $hidden_qty_value = ( $readonly && '' !== $input_value ? $input_value : $min_value ); 100 ?> 101 <div class="quantity hidden"> 102 <input type="hidden" id="<?php echo esc_attr( $input_id ); ?>" class="qty <?php echo esc_attr( $disable_price_by_qty ); ?>" 103 name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $hidden_qty_value ); ?>"/> 104 </div> 105 <?php 106 } 86 107 } elseif ( ( ( ! empty( $alg_wc_max ) || 0 != ( $max_value_fallback = get_option( 'wpfmmsq_qty_dropdown_max_value_fallback', 0 ) ) ) && ! empty( $step ) && ! $is_dropdown_disable ) || ( ( $productType == 'variable' || $productType == 'variation' ) && ( $variation_max > 0 || ! empty( $variation_exact ) ) && ! $is_dropdown_disable ) ) { // dropdown 87 108 if ( empty( $max_value ) ) { -
product-quantity-for-woocommerce/tags/5.4.7/langs/product-quantity-for-woocommerce-de_CH_informal.po
r3806223 r3808148 29 29 msgstr "" 30 30 31 #: includes/class-wpfmmsq-core.php:31 8731 #: includes/class-wpfmmsq-core.php:3195 32 32 msgid "%price% for %qty% pcs." 33 33 msgstr "" … … 879 879 msgstr "" 880 880 881 #: includes/class-wpfmmsq-core.php:31 85882 #: includes/class-wpfmmsq-core.php:31 88881 #: includes/class-wpfmmsq-core.php:3193 882 #: includes/class-wpfmmsq-core.php:3196 883 883 #: includes/settings/class-wpfmmsq-settings-price-by-qty.php:132 884 884 msgid "%price% for %qty% %unit%." … … 1903 1903 msgstr "" 1904 1904 1905 #: includes/class-wpfmmsq-core.php:2 7981905 #: includes/class-wpfmmsq-core.php:2806 1906 1906 msgid "unit" 1907 1907 msgstr "" 1908 1908 1909 #: includes/class-wpfmmsq-core.php:2 7991909 #: includes/class-wpfmmsq-core.php:2807 1910 1910 msgid "units" 1911 1911 msgstr "" -
product-quantity-for-woocommerce/tags/5.4.7/langs/product-quantity-for-woocommerce-es_ES.po
r3806223 r3808148 44 44 msgstr "Ver carrito" 45 45 46 #: includes/class-wpfmmsq-core.php:31 8547 #: includes/class-wpfmmsq-core.php:31 8846 #: includes/class-wpfmmsq-core.php:3193 47 #: includes/class-wpfmmsq-core.php:3196 48 48 #: includes/settings/class-wpfmmsq-settings-price-by-qty.php:132 49 49 msgid "%price% for %qty% %unit%." … … 1324 1324 msgstr "(El marcador de posición %unit% se leerá desde 3 lugares, con el nivel de prioridad definido: primero, leerá si una unidad está definida en el nivel de producto, si no está definida, luego verificará si está definida en el nivel de categoría, si no está definida, se leerá desde el nivel global definido en esta página. Si su tienda usa la misma unidad para todos los productos, puede usar la unidad aquí en el campo sin ningún marcador de posición)" 1325 1325 1326 #: includes/class-wpfmmsq-core.php:31 871326 #: includes/class-wpfmmsq-core.php:3195 1327 1327 msgid "%price% for %qty% pcs." 1328 1328 msgstr "%price% para %qty% uds." … … 1894 1894 msgstr "" 1895 1895 1896 #: includes/class-wpfmmsq-core.php:2 7981896 #: includes/class-wpfmmsq-core.php:2806 1897 1897 msgid "unit" 1898 1898 msgstr "" 1899 1899 1900 #: includes/class-wpfmmsq-core.php:2 7991900 #: includes/class-wpfmmsq-core.php:2807 1901 1901 msgid "units" 1902 1902 msgstr "" -
product-quantity-for-woocommerce/tags/5.4.7/langs/product-quantity-for-woocommerce-fr_FR.po
r3806223 r3808148 29 29 msgstr "" 30 30 31 #: includes/class-wpfmmsq-core.php:31 8731 #: includes/class-wpfmmsq-core.php:3195 32 32 msgid "%price% for %qty% pcs." 33 33 msgstr "" … … 879 879 msgstr "" 880 880 881 #: includes/class-wpfmmsq-core.php:31 85882 #: includes/class-wpfmmsq-core.php:31 88881 #: includes/class-wpfmmsq-core.php:3193 882 #: includes/class-wpfmmsq-core.php:3196 883 883 #: includes/settings/class-wpfmmsq-settings-price-by-qty.php:132 884 884 msgid "%price% for %qty% %unit%." … … 1903 1903 msgstr "" 1904 1904 1905 #: includes/class-wpfmmsq-core.php:2 7981905 #: includes/class-wpfmmsq-core.php:2806 1906 1906 msgid "unit" 1907 1907 msgstr "" 1908 1908 1909 #: includes/class-wpfmmsq-core.php:2 7991909 #: includes/class-wpfmmsq-core.php:2807 1910 1910 msgid "units" 1911 1911 msgstr "" -
product-quantity-for-woocommerce/tags/5.4.7/langs/product-quantity-for-woocommerce.pot
r3806223 r3808148 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: product-quantity-for-woocommerce 5.4. 6\n"5 "Project-Id-Version: product-quantity-for-woocommerce 5.4.7\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/product-quantity-for-woocommerce\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-11-1 6T23:42:29+01:00\n"12 "POT-Creation-Date: 2026-11-17T22:00:51+01:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 88 88 msgstr "" 89 89 90 #: includes/class-wpfmmsq-core.php:2 79890 #: includes/class-wpfmmsq-core.php:2806 91 91 msgid "unit" 92 92 msgstr "" 93 93 94 #: includes/class-wpfmmsq-core.php:2 79994 #: includes/class-wpfmmsq-core.php:2807 95 95 msgid "units" 96 96 msgstr "" 97 97 98 #: includes/class-wpfmmsq-core.php:31 8599 #: includes/class-wpfmmsq-core.php:31 8898 #: includes/class-wpfmmsq-core.php:3193 99 #: includes/class-wpfmmsq-core.php:3196 100 100 #: includes/settings/class-wpfmmsq-settings-price-by-qty.php:132 101 101 msgid "%price% for %qty% %unit%." 102 102 msgstr "" 103 103 104 #: includes/class-wpfmmsq-core.php:31 87104 #: includes/class-wpfmmsq-core.php:3195 105 105 msgid "%price% for %qty% pcs." 106 106 msgstr "" -
product-quantity-for-woocommerce/tags/5.4.7/product-quantity-for-woocommerce.php
r3806223 r3808148 4 4 Plugin URI: https://wpfactory.com/item/product-quantity-for-woocommerce/ 5 5 Description: Manage product quantity in WooCommerce, beautifully. Define a minimum / maximum / step quantity and more on WooCommerce products. 6 Version: 5.4. 66 Version: 5.4.7 7 7 Author: WPFactory 8 8 Author URI: https://wpfactory.com … … 100 100 * @var string 101 101 */ 102 public $version = '5.4. 6';102 public $version = '5.4.7'; 103 103 104 104 /** -
product-quantity-for-woocommerce/tags/5.4.7/readme.txt
r3806223 r3808148 4 4 Requires at least: 6.1 5 5 Tested up to: 7.1 6 Stable tag: 5.4. 66 Stable tag: 5.4.7 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 345 345 346 346 == Changelog == 347 348 = 5.4.7 - 17/11/2026 = 349 * Fix - Min Quantity - Fixed quantity not being displayed on cart page when minimum quantity matches stock (or maximum) quantity. 347 350 348 351 = 5.4.6 - 16/11/2026 = -
product-quantity-for-woocommerce/trunk/includes/class-wpfmmsq-core.php
r3806223 r3808148 3 3 * Product Quantity for WooCommerce - Core Class 4 4 * 5 * @version 5.4. 65 * @version 5.4.7 6 6 * @version 5.4.2 7 7 * @since 1.0.0 … … 2255 2255 * set_quantity_input_args. 2256 2256 * 2257 * @version 5.4. 62257 * @version 5.4.7 2258 2258 * @since 1.2.0 2259 2259 * @todo [dev] re-check do we really need to set `step` here? … … 2322 2322 if ( '' !== $args['min_value'] && '' !== $args['max_value'] && (float) $args['max_value'] === (float) $args['min_value'] ) { 2323 2323 $args['input_value'] = $args['min_value']; 2324 } 2325 } 2326 2327 if ( is_cart() && isset( $args['min_value'], $args['max_value'] ) ) { 2328 if ( '' !== $args['min_value'] && '' !== $args['max_value'] && (float) $args['max_value'] === (float) $args['min_value'] ) { 2329 // Keep the quantity visible on the cart instead of rendering a hidden input. 2330 $args['min_value'] = 0; 2331 $args['readonly'] = true; 2324 2332 } 2325 2333 } -
product-quantity-for-woocommerce/trunk/includes/templates/global/quantity-input.php
r3806223 r3808148 3 3 * Product quantity inputs // Drop down by WPFactory 4 4 * 5 * @version 5.4. 65 * @version 5.4.7 6 6 * @since 1.6.0 7 7 * … … 77 77 78 78 if ( ( $max_value && $min_value === $max_value ) || $readonly ) { 79 $hidden_qty_value = ( $readonly && '' !== $input_value ? $input_value : $min_value ); 80 ?> 81 <div class="quantity hidden"> 82 <input type="hidden" id="<?php echo esc_attr( $input_id ); ?>" class="qty <?php echo esc_attr( $disable_price_by_qty ); ?>" 83 name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $hidden_qty_value ); ?>"/> 84 </div> 85 <?php 79 if ( is_cart() ) { 80 // The quantity must remain visible on the cart, so render it as a readonly value. 81 $hidden_qty_value = ( '' !== $input_value ? $input_value : $min_value ); 82 ?> 83 <div class="quantity"> 84 <label class="screen-reader-text" 85 for="<?php echo esc_attr( $input_id ); ?>"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></label> 86 <input 87 type="text" 88 readonly="readonly" 89 id="<?php echo esc_attr( $input_id ); ?>" 90 class="qty <?php echo esc_attr( $disable_price_by_qty ); ?>" 91 name="<?php echo esc_attr( $input_name ); ?>" 92 value="<?php echo esc_attr( $hidden_qty_value ); ?>" 93 title="<?php echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'woocommerce' ); ?>" 94 size="4" 95 /> 96 </div> 97 <?php 98 } else { 99 $hidden_qty_value = ( $readonly && '' !== $input_value ? $input_value : $min_value ); 100 ?> 101 <div class="quantity hidden"> 102 <input type="hidden" id="<?php echo esc_attr( $input_id ); ?>" class="qty <?php echo esc_attr( $disable_price_by_qty ); ?>" 103 name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $hidden_qty_value ); ?>"/> 104 </div> 105 <?php 106 } 86 107 } elseif ( ( ( ! empty( $alg_wc_max ) || 0 != ( $max_value_fallback = get_option( 'wpfmmsq_qty_dropdown_max_value_fallback', 0 ) ) ) && ! empty( $step ) && ! $is_dropdown_disable ) || ( ( $productType == 'variable' || $productType == 'variation' ) && ( $variation_max > 0 || ! empty( $variation_exact ) ) && ! $is_dropdown_disable ) ) { // dropdown 87 108 if ( empty( $max_value ) ) { -
product-quantity-for-woocommerce/trunk/langs/product-quantity-for-woocommerce-de_CH_informal.po
r3806223 r3808148 29 29 msgstr "" 30 30 31 #: includes/class-wpfmmsq-core.php:31 8731 #: includes/class-wpfmmsq-core.php:3195 32 32 msgid "%price% for %qty% pcs." 33 33 msgstr "" … … 879 879 msgstr "" 880 880 881 #: includes/class-wpfmmsq-core.php:31 85882 #: includes/class-wpfmmsq-core.php:31 88881 #: includes/class-wpfmmsq-core.php:3193 882 #: includes/class-wpfmmsq-core.php:3196 883 883 #: includes/settings/class-wpfmmsq-settings-price-by-qty.php:132 884 884 msgid "%price% for %qty% %unit%." … … 1903 1903 msgstr "" 1904 1904 1905 #: includes/class-wpfmmsq-core.php:2 7981905 #: includes/class-wpfmmsq-core.php:2806 1906 1906 msgid "unit" 1907 1907 msgstr "" 1908 1908 1909 #: includes/class-wpfmmsq-core.php:2 7991909 #: includes/class-wpfmmsq-core.php:2807 1910 1910 msgid "units" 1911 1911 msgstr "" -
product-quantity-for-woocommerce/trunk/langs/product-quantity-for-woocommerce-es_ES.po
r3806223 r3808148 44 44 msgstr "Ver carrito" 45 45 46 #: includes/class-wpfmmsq-core.php:31 8547 #: includes/class-wpfmmsq-core.php:31 8846 #: includes/class-wpfmmsq-core.php:3193 47 #: includes/class-wpfmmsq-core.php:3196 48 48 #: includes/settings/class-wpfmmsq-settings-price-by-qty.php:132 49 49 msgid "%price% for %qty% %unit%." … … 1324 1324 msgstr "(El marcador de posición %unit% se leerá desde 3 lugares, con el nivel de prioridad definido: primero, leerá si una unidad está definida en el nivel de producto, si no está definida, luego verificará si está definida en el nivel de categoría, si no está definida, se leerá desde el nivel global definido en esta página. Si su tienda usa la misma unidad para todos los productos, puede usar la unidad aquí en el campo sin ningún marcador de posición)" 1325 1325 1326 #: includes/class-wpfmmsq-core.php:31 871326 #: includes/class-wpfmmsq-core.php:3195 1327 1327 msgid "%price% for %qty% pcs." 1328 1328 msgstr "%price% para %qty% uds." … … 1894 1894 msgstr "" 1895 1895 1896 #: includes/class-wpfmmsq-core.php:2 7981896 #: includes/class-wpfmmsq-core.php:2806 1897 1897 msgid "unit" 1898 1898 msgstr "" 1899 1899 1900 #: includes/class-wpfmmsq-core.php:2 7991900 #: includes/class-wpfmmsq-core.php:2807 1901 1901 msgid "units" 1902 1902 msgstr "" -
product-quantity-for-woocommerce/trunk/langs/product-quantity-for-woocommerce-fr_FR.po
r3806223 r3808148 29 29 msgstr "" 30 30 31 #: includes/class-wpfmmsq-core.php:31 8731 #: includes/class-wpfmmsq-core.php:3195 32 32 msgid "%price% for %qty% pcs." 33 33 msgstr "" … … 879 879 msgstr "" 880 880 881 #: includes/class-wpfmmsq-core.php:31 85882 #: includes/class-wpfmmsq-core.php:31 88881 #: includes/class-wpfmmsq-core.php:3193 882 #: includes/class-wpfmmsq-core.php:3196 883 883 #: includes/settings/class-wpfmmsq-settings-price-by-qty.php:132 884 884 msgid "%price% for %qty% %unit%." … … 1903 1903 msgstr "" 1904 1904 1905 #: includes/class-wpfmmsq-core.php:2 7981905 #: includes/class-wpfmmsq-core.php:2806 1906 1906 msgid "unit" 1907 1907 msgstr "" 1908 1908 1909 #: includes/class-wpfmmsq-core.php:2 7991909 #: includes/class-wpfmmsq-core.php:2807 1910 1910 msgid "units" 1911 1911 msgstr "" -
product-quantity-for-woocommerce/trunk/langs/product-quantity-for-woocommerce.pot
r3806223 r3808148 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: product-quantity-for-woocommerce 5.4. 6\n"5 "Project-Id-Version: product-quantity-for-woocommerce 5.4.7\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/product-quantity-for-woocommerce\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-11-1 6T23:42:29+01:00\n"12 "POT-Creation-Date: 2026-11-17T22:00:51+01:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 88 88 msgstr "" 89 89 90 #: includes/class-wpfmmsq-core.php:2 79890 #: includes/class-wpfmmsq-core.php:2806 91 91 msgid "unit" 92 92 msgstr "" 93 93 94 #: includes/class-wpfmmsq-core.php:2 79994 #: includes/class-wpfmmsq-core.php:2807 95 95 msgid "units" 96 96 msgstr "" 97 97 98 #: includes/class-wpfmmsq-core.php:31 8599 #: includes/class-wpfmmsq-core.php:31 8898 #: includes/class-wpfmmsq-core.php:3193 99 #: includes/class-wpfmmsq-core.php:3196 100 100 #: includes/settings/class-wpfmmsq-settings-price-by-qty.php:132 101 101 msgid "%price% for %qty% %unit%." 102 102 msgstr "" 103 103 104 #: includes/class-wpfmmsq-core.php:31 87104 #: includes/class-wpfmmsq-core.php:3195 105 105 msgid "%price% for %qty% pcs." 106 106 msgstr "" -
product-quantity-for-woocommerce/trunk/product-quantity-for-woocommerce.php
r3806223 r3808148 4 4 Plugin URI: https://wpfactory.com/item/product-quantity-for-woocommerce/ 5 5 Description: Manage product quantity in WooCommerce, beautifully. Define a minimum / maximum / step quantity and more on WooCommerce products. 6 Version: 5.4. 66 Version: 5.4.7 7 7 Author: WPFactory 8 8 Author URI: https://wpfactory.com … … 100 100 * @var string 101 101 */ 102 public $version = '5.4. 6';102 public $version = '5.4.7'; 103 103 104 104 /** -
product-quantity-for-woocommerce/trunk/readme.txt
r3806223 r3808148 4 4 Requires at least: 6.1 5 5 Tested up to: 7.1 6 Stable tag: 5.4. 66 Stable tag: 5.4.7 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 345 345 346 346 == Changelog == 347 348 = 5.4.7 - 17/11/2026 = 349 * Fix - Min Quantity - Fixed quantity not being displayed on cart page when minimum quantity matches stock (or maximum) quantity. 347 350 348 351 = 5.4.6 - 16/11/2026 =
Note:
See TracChangeset
for help on using the changeset viewer.