Discount on total cart qty
-
Nothing is happening when I select discount on total cart quantity. Discount on individual product quantity works fine.
-
We are using virtual coupons for applying discounts, can you please check if woocommerce coupons are enabled on your site.
I enabled coupon codes but it still doesn’t work.
It must be something else because it worked fine with individual product qty discounts
Can you please share a screenshot of the discount rules and product url.
what is your email address? i can’t upload images here
Wordpress provided these errors:
Error Details
=============
An error of type E_ERROR was caused in line 1 of the file (site path)wp-content/plugins/aco-woo-dynamic-pricing/includes/class-awdp-discount.php(380) : eval()’d code. Error message: Uncaught Error: Function name must be a string in (site path)wp-content/plugins/aco-woo-dynamic-pricing/includes/class-awdp-discount.php(380) : eval()’d code:1
Stack trace:
#0 (site path)/wp-content/plugins/aco-woo-dynamic-pricing/includes/class-awdp-discount.php(380): eval()
#1 (site path)wp-content/plugins/aco-woo-dynamic-pricing/includes/class-awdp-discount.php(790): AWDP_Discount->validate_discount_rules(Object(WC_Product_Simple), Array, Array, Object(WC_Product_Simple))
#2 (site path)wp-content/plugins/aco-woo-dynamic-pricing/includes/class-awdp-discount.php(568): AWDP_Discount->get_items_to_apply_discount(Object(WC_Product_Simple), Array)
#3 (site path)wp-content/plugins/aco-woo-dynamic-pricing/includes/class-awdp-discount.php(532): AWDP_Discount->calculate_discount(’15’, Object(WC_Product_Simple))
#4 (site path)wp-content/plugins/aco-woo-dynamic-pricing/includesOur developer team is checking the same, we will release an update with the fix (warning) asap.
For sharing images please use https://imgur.com/upload or any other picture sharing services. We cannot share our id as it is against wordpress forum rules, sorry.
Regarding the warning can you please share screenshots of ‘rules and restrictions’ tab.
I don’t have any rules and restrictions enabled
Can you please share discount rules screenshot and product url.
Your new update fixed that problem. Thanks.
There is an unfortunate issue in that the discount is only applied on the cart and checkout page. So when using the cart widget or the cart menu icon such as in the Flatsome theme, the total doesn’t reflect the discount.
One more problem – when using the “discount on total cart quantity” option, the prices in the cart on the cart page are not shown as discounted. But they are shown as discounted in the widget. The subtotals in both the widget and the cart page are not shown with the discount, however.
Also, the math is not being calculated correctly for “discount on total cart quantity.” The discounts are all wrong. It works fine for the individual product discounts however.
Can you please share your product url and discount rules (screenshot)
discount rules: https://imgur.com/a/DvYrDaf
cart: https://imgur.com/a/o2hCo2R
you can see that the discount is applied incorrectly.
I’ve tried using the percentage discount for “total cart quantity” discounts and it’s also not working.I don’t want to send you a link to my site yet because it’s not live yet.
Everything works fine with the plugin except for “total cart quantity” discounts. If you’re not seeing it on your end then I’ll just give up and use a different plugin.
The topic ‘Discount on total cart qty’ is closed to new replies.