Quantity Pricing plugin issue with mini cart #960
Replies: 1 comment
-
Unfortunately no quick fix here, the whole AJAX cart is complex and sensitive. If this creates issues with the Precious Metal Discounts and Payment Fees plugin, you should disable additional AJAX functionality and restore Woo's default one using the two filters as described here https://bootscore.me/documentation/woocommerce/#restoring-woocommerce-s-default-functionality. This filters removes the quantity buttons in the offcanvas cart and enable the cart page where quantity can be changed through Woo's code. You can still add products via AJAX in the loop but not on single-product pages anymore. If it helps to dig in, the AJAX cart happens in However, if you absolutely want to use this quantity buttons, I suggest to hire @anisur2805. He was the guy who implemented the AJAX quantity in offcanvas cart. He's smart and if anyone can fix this, it's him. If there is a solution which works for usual products and the Metal Discounts plugin, we can add the code here in general. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We're using the WooCommerce Precious Metal Discounts and Payment Fees plugin by IgniteWoo. It's the obvious choice for us since we also use their PlatformGold for WooCommerce plugin which does our product import and price updates via API.
I recorded a Loom for the developer (Mark) over at IgniteWoo but we're to the point it's time to post here.
As you'll see the line item total and product price change are not being corrected properly:
www.loom.com/share/c57b0e9868944b87a57f79e39f298402
we did some digging into ajax-cart.php but we're now stumped.
Adding this line had some effect (updated quantity which wasn't working) but didn't fix the problem.
line 558
//WC()->cart->calculate_totals(); //added for Metals discount plugin attempted fix
$items = WC()->cart->get_cart()
Beta Was this translation helpful? Give feedback.
All reactions