Plugin Directory

Changeset 2544781


Ignore:
Timestamp:
06/09/2021 05:45:17 AM (4 years ago)
Author:
wpashokg
Message:

To set the default increment by value @tigerrockmartialarts

Location:
woo-min-max-quantity-limit
Files:
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • woo-min-max-quantity-limit/tags/2.1.7/changelog.txt

    r2543347 r2544781  
    11*** WC Minimum & Maximum Quantity  Changelog ***
     22021.06.09 - version 2.1.7
     3 * Bug Fix: To set the default increment by value @tigerrockmartialarts
    242021.06.06 - version 2.1.6
    35 * Bug Fix: If quantity item manually changed in the product page / cart page and if the changed quantity voids the minimum / maximum order quantity rule / the quantity increment rule then it throws error which was not earlier.
  • woo-min-max-quantity-limit/tags/2.1.7/readme.txt

    r2543347 r2544781  
    55Requires at least: 3.3.1
    66Tested up to: 5.7.2
    7 Stable tag: 2.1.6
     7Stable tag: 2.1.7
    88WC tested up to: 5.3.0
    99License: GNU General Public License v3.0
     
    4444
    4545== Changelog ==
     46= 2.1.7 =
     47Bug Fix: To set the default increment by value @tigerrockmartialarts
    4648= 2.1.6 =
    4749Bug Fix: If quantity item manually changed in the product page / cart page and if the changed quantity voids the minimum / maximum order quantity rule / the quantity increment rule then it throws error which was not earlier.
  • woo-min-max-quantity-limit/tags/2.1.7/woo-min-max-quantity.php

    r2543347 r2544781  
    44  Plugin URI:  http://ashokg.in/
    55  Description: Allow the site admin to enable the feature of minimum and maximum purchase of a particular product in each product.
    6   Version: 2.1.6
     6  Version: 2.1.7
    77  Author: Ashok G
    88  Text Domain: wcmmax
    99  Author URI: https://ashokg.in
    1010  WC tested up to: 5.3.0
    11   Copyright: © 2020 Ashok G.
     11  Copyright: © 201 Ashok G.
    1212  License: GNU General Public License v3.0
    1313  License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    136136    $maxQty = get_post_meta($product, '_wc_mmax_max', true);
    137137    $incrementbyQty = get_post_meta($product, '_wc_mmax_increment', true);
     138    $incrementbyQty = $incrementbyQty ? $incrementbyQty : 1;
    138139    $cartQty = wc_mmax_woo_in_cart($product);
    139140    if (get_option('_wcmmax_options_option_name') != NULL && get_option('_wcmmax_options_option_name') != '') {
  • woo-min-max-quantity-limit/trunk/changelog.txt

    r2543347 r2544781  
    11*** WC Minimum & Maximum Quantity  Changelog ***
     22021.06.09 - version 2.1.7
     3 * Bug Fix: To set the default increment by value @tigerrockmartialarts
    242021.06.06 - version 2.1.6
    35 * Bug Fix: If quantity item manually changed in the product page / cart page and if the changed quantity voids the minimum / maximum order quantity rule / the quantity increment rule then it throws error which was not earlier.
  • woo-min-max-quantity-limit/trunk/readme.txt

    r2543347 r2544781  
    55Requires at least: 3.3.1
    66Tested up to: 5.7.2
    7 Stable tag: 2.1.6
     7Stable tag: 2.1.7
    88WC tested up to: 5.3.0
    99License: GNU General Public License v3.0
     
    4444
    4545== Changelog ==
     46= 2.1.7 =
     47Bug Fix: To set the default increment by value @tigerrockmartialarts
    4648= 2.1.6 =
    4749Bug Fix: If quantity item manually changed in the product page / cart page and if the changed quantity voids the minimum / maximum order quantity rule / the quantity increment rule then it throws error which was not earlier.
  • woo-min-max-quantity-limit/trunk/woo-min-max-quantity.php

    r2543347 r2544781  
    44  Plugin URI:  http://ashokg.in/
    55  Description: Allow the site admin to enable the feature of minimum and maximum purchase of a particular product in each product.
    6   Version: 2.1.6
     6  Version: 2.1.7
    77  Author: Ashok G
    88  Text Domain: wcmmax
    99  Author URI: https://ashokg.in
    1010  WC tested up to: 5.3.0
    11   Copyright: © 2020 Ashok G.
     11  Copyright: © 201 Ashok G.
    1212  License: GNU General Public License v3.0
    1313  License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    136136    $maxQty = get_post_meta($product, '_wc_mmax_max', true);
    137137    $incrementbyQty = get_post_meta($product, '_wc_mmax_increment', true);
     138    $incrementbyQty = $incrementbyQty ? $incrementbyQty : 1;
    138139    $cartQty = wc_mmax_woo_in_cart($product);
    139140    if (get_option('_wcmmax_options_option_name') != NULL && get_option('_wcmmax_options_option_name') != '') {
Note: See TracChangeset for help on using the changeset viewer.