cgeedouble
Forum Replies Created
-
Forum: Plugins
In reply to: [Min and Max Quantity for WooCommerce] BUG – quantities being reset to 1Is this going to be fixed please?
This problem is persisting with 4.12.0
The problem disappears when using Version 4.10.5
Forum: Plugins
In reply to: [Min and Max Quantity for WooCommerce] BUG – quantities being reset to 1Version 1.3.2.9 of Min and Max Quantity for WooCommerce appears to not create the issue.
But I have not tested it with any of the versions between 1.3.2.9 and 1.3.8.3
The issue started to appear in mid October 2025
I’ve tested with both “Prevent add to cart” switched on and off – it makes no difference.
“Full OR Limitation” I have not tested as I don’t know what it means.
Is there a plan to fix this?
[
{
"type": "single_item",
"rule_type": "common",
"filters": [
{
"qty": 1,
"type": "products",
"method": "in_list",
"value": [
"unpackaged-seed-balls"
],
"product_exclude": {
"on_wc_sale": "",
"already_affected": "",
"backorder": "",
"values": []
}
}
],
"title": "Unpackaged Seed Balls",
"priority": "",
"enabled": "on",
"sortable_blocks_priority": [
"roles",
"bulk-adjustments"
],
"additional": {
"conditions_relationship": "and",
"blocks": {
"productFilters": {
"isOpen": "1"
},
"productDiscounts": {
"isOpen": "0"
},
"roleDiscounts": {
"isOpen": "0"
},
"bulkDiscounts": {
"isOpen": "1"
},
"freeProducts": {
"isOpen": "0"
},
"autoAddToCart": {
"isOpen": "0"
},
"advertising": {
"isOpen": "0"
},
"cartAdjustments": {
"isOpen": "0"
},
"conditions": {
"isOpen": "0"
},
"limits": {
"isOpen": "0"
}
},
"is_replace": "",
"replace_name": "",
"is_replace_free_products_with_discount": "",
"free_products_replace_name": "",
"is_replace_auto_add_products_with_discount": "",
"auto_add_products_replace_name": "",
"sortable_apply_mode": "consistently",
"auto_add_cant_be_removed_from_cart": false,
"auto_add_show_as_recommended_product": false
},
"conditions": [],
"cart_adjustments": [],
"limits": [],
"bulk_adjustments": {
"type": "bulk",
"qty_based": "not",
"measurement": "qty",
"discount_type": "discount__amount",
"ranges": [
{
"from": 1,
"to": 2,
"value": 0
},
{
"from": 3,
"to": 5,
"value": 10
},
{
"from": 6,
"to": "",
"value": 15
}
],
"table_message": ""
},
"role_discounts": [],
"get_products": {
"repeat": "-1",
"repeat_subtotal": "",
"max_amount_for_gifts": null
},
"auto_add_products": {
"repeat": "-1",
"repeat_subtotal": ""
},
"options": {
"apply_to": "expensive",
"repeat": -1
},
"advertising": {
"discount_message": "",
"discount_message_cart_item": "",
"long_discount_message": "",
"sale_badge": ""
},
"version": "4.8.3"
},
{
"type": "single_item",
"rule_type": "common",
"filters": [
{
"qty": 1,
"type": "products",
"method": "in_list",
"value": [
"branded-seedboxes"
],
"product_exclude": {
"on_wc_sale": "",
"already_affected": "",
"backorder": "",
"values": []
}
}
],
"title": "Branded Matchboxes",
"priority": 1,
"enabled": "on",
"sortable_blocks_priority": [
"roles",
"bulk-adjustments"
],
"additional": {
"conditions_relationship": "and",
"blocks": {
"productFilters": {
"isOpen": "1"
},
"productDiscounts": {
"isOpen": "0"
},
"roleDiscounts": {
"isOpen": "0"
},
"bulkDiscounts": {
"isOpen": "1"
},
"freeProducts": {
"isOpen": "0"
},
"autoAddToCart": {
"isOpen": "0"
},
"advertising": {
"isOpen": "0"
},
"cartAdjustments": {
"isOpen": "0"
},
"conditions": {
"isOpen": "0"
},
"limits": {
"isOpen": "0"
}
},
"is_replace": "",
"replace_name": "",
"is_replace_free_products_with_discount": "",
"free_products_replace_name": "",
"is_replace_auto_add_products_with_discount": "",
"auto_add_products_replace_name": "",
"sortable_apply_mode": "consistently",
"auto_add_cant_be_removed_from_cart": false,
"auto_add_show_as_recommended_product": false
},
"conditions": [],
"cart_adjustments": [],
"limits": [],
"bulk_adjustments": {
"type": "bulk",
"qty_based": "not",
"measurement": "qty",
"discount_type": "price__fixed",
"ranges": [
{
"from": 100,
"to": 249,
"value": 2.2
},
{
"from": 250,
"to": 499,
"value": 1.64
},
{
"from": 500,
"to": 999,
"value": 1.48
},
{
"from": 1000,
"to": "",
"value": 1.44
}
],
"table_message": ""
},
"role_discounts": [],
"get_products": {
"repeat": "-1",
"repeat_subtotal": "",
"max_amount_for_gifts": null
},
"auto_add_products": {
"repeat": "-1",
"repeat_subtotal": ""
},
"options": {
"apply_to": "expensive",
"repeat": -1
},
"advertising": {
"discount_message": "",
"discount_message_cart_item": "",
"long_discount_message": "",
"sale_badge": ""
},
"version": "4.8.3"
}
]OK… but there is still the bug, because for my bulk products I need that setting turned on so they show the range of prices.
My SALE products don’t have any bulk pricing set up. But they’re still being affected.
EDIT – I have rolled back to Version 4.7.2 and the problem has disappeared. Looks like this bug was introduced with version 4.8.0
- This reply was modified 1 year, 8 months ago by cgeedouble.
- This reply was modified 1 year, 8 months ago by cgeedouble.
{
"show_unmodified_price_if_discounts_with_coupon": false,
"show_matched_bulk": false,
"show_matched_cart_adjustments": false,
"show_matched_get_products": false,
"show_matched_adjustments": false,
"show_matched_deals": false,
"show_matched_bulk_table": true,
"show_category_bulk_table": false,
"show_striked_prices": true,
"show_onsale_badge": false,
"limit_results_in_autocomplete": "25",
"rule_max_exec_time": "5",
"rules_per_page": "50",
"support_shortcode_products_on_sale": false,
"support_shortcode_products_bogo": false,
"show_cross_out_subtotal_in_cart_totals": false,
"bulk_table_calculation_mode": "only_bulk_rule_table",
"combine_discounts": false,
"default_discount_name": "Coupon",
"combine_fees": false,
"default_fee_name": "Fee",
"default_fee_tax_class": "",
"enable_product_html_template": false,
"price_html_template": "{{price_html}}",
"initial_price_context": "nofilter",
"do_not_modify_price_at_product_page": false,
"discount_table_ignores_conditions": false,
"use_first_range_as_min_qty": true,
"force_displaying_variation_price": false,
"show_message_after_add_free_product": false,
"message_template_after_add_free_product": "Added {{qty}} free {{product_name}}",
"is_calculate_based_on_wc_precision": false,
"replace_price_with_min_bulk_price_category": true,
"replace_price_with_min_bulk_price_category_template": "{{price}} to {{initial_price}}",
"uninstall_remove_data": false,
"update_prices_while_doing_cron": true,
"update_prices_while_doing_rest_api": false,
"suppress_other_pricing_plugins": false,
"allow_to_exclude_products": true,
"create_blank_rule": false,
"show_debug_bar": false,
"discount_for_onsale": "compare_discounted_and_sale",
"is_override_cents": false,
"prices_ends_with": "99",
"hide_coupon_word_in_totals": false,
"individual_wc_coupon_suppress_coupons": false,
"process_product_strategy": "when",
"process_product_strategy_after_use_price": "first",
"is_enable_cart_amount_saved": false,
"is_enable_minicart_amount_saved": false,
"is_enable_checkout_amount_saved": false,
"is_enable_backend_order_amount_saved": false,
"external_cart_coupons_behavior": "apply",
"external_product_coupons_behavior": "apply",
"disable_external_coupons": "dont_disable",
"load_in_backend": false,
"replace_price_with_min_bulk_price": false,
"replace_price_with_min_bulk_price_template": "From {{price}} {{price_suffix}}",
"disable_shipping_calc_during_process": false,
"dont_recalculate_cart_on_page_load": false,
"support_persistence_rules": false,
"external_coupons_behavior": "apply",
"readonly_price_for_free_products": false
}I am having the same problem.
Ah ha – well that certainly explains why I get no results most of the time. Thank you very much for taking the time to explain.
We don’t require our customers to create an account…. I don’t suppose you have a suggestion for making this work with guest customers too please?
@yordansoares thank you so much for trying to help me.
I’m getting some strange results from this. 95% of the time it does nothing, with no information being added to the invoice. But occasionally it will work, producing a random number which bears no correlation to the actual number of orders….
I can’t seem to figure out under what circumstances it works and when it doesn’t…
I assume this best placed as a code snippet and not placed in a new template file.