Ashok G
Forum Replies Created
-
which theme you are using @slimmz I tried with few free store themes I’m able to give the error messages properly.
I’ve pushed a latest version of the plugin, can you check and tell if it helps.
no you cannot put decimal values.
Can you explain the use case for decimal values. @yogpawar777@rosso711
Can you test the latest version.@topzonemedia , will give an option to set minimum and maximum quantity in the next release.
@slimmz can you check the latest version of plugin.
function wc_mmax_custom_add_to_cart($args, $product) { $orderQTY = $_POST['quantity']; $mmaxEnable = get_post_meta($product, '_wc_mmax_prd_opt_enable', true); $minQty = get_post_meta($product, '_wc_mmax_min', true); $maxQty = get_post_meta($product, '_wc_mmax_max', true); $incrementbyQty = get_post_meta($prodid, '_wc_mmax_increment', true); $cartQty = wc_mmax_woo_in_cart($product); if (get_option('_wcmmax_options_option_name') != NULL && get_option('_wcmmax_options_option_name') != '') { $maxQTYMsg = get_option('_wcmmax_options_option_name'); } else { $maxQTYMsg = 'You have already added the maximum Quantity for the product for the current purchase'; } if ($maxQty < $cartQty && $mmaxEnable == 1) { wc_add_notice($maxQTYMsg, 'error'); exit(wp_redirect(get_permalink($product))); } if ((($orderQTY + $cartQty) < $minQty || ($orderQTY + $cartQty) % $incrementbyQty > 0) && $mmaxEnable == 1) { wc_add_notice(__('You have ordered ' . $orderQTY . ' which is less than the allowed Minimum Quantity ' . $minQty . ' or its not incremented in the specific format of x ' . $incrementbyQty, 'wcmax'), 'error'); exit(wp_redirect(get_permalink($product))); } }
can you replace the entire function in the plugin file.
function to be replaced wc_mmax_custom_add_to_cart
and give me an update
skype: phpkidindia@slimmz can you share me the demo link.
coz, when I tested it I’m getting it working properly as expected.@slimmz sorry for the delay. Bit stuck with my official tasks. Need to find some time tomorrow.
Thanks for notifying me. will look into it asap.
Forum: Plugins
In reply to: [Simple Minimum and Maximum Quantity Limit for WooCommerce] Default Value@doyuk
Please check the latest version, it might help you.@sandeepsingh007, sorry for the delay I’m unable to reproduces the issue you are talking about.
@sandeepsingh007,
Thanks for pointing the bug. will let you know asap.@samanthab01, Sorry for the delay in response. To avoid quantity conflicts by default we’ve set the min qty to 1. Ideally you can’t add 0 to your cart right, so minimum 1 is necessary.
@w-sky, Sorry for the inconvenience caused. Will try to fix it ASAP.