Welcome to our Support Portal › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Variation Quantities – Can't add to cart
March 25, 2019 at 10:53 am #11043
I’m trying to reproduce Variation Quantities product like you have here:
When I create a product like that, add cart button doesn’t add product to the cart.. it does nothing. I disabled all Ajax based add to cart options and all data-fields are unique, but still it’s not responsive.
I notice that on your demo page the total next to Add to cart button is always 1, and in my product the total is quantity of all the selected variations combined. That’s to only difference I see.
Do you have any tips how to troubleshoot this issue? I tried disabling all the other plugins but it still doesn’t add the product to cart.
Please advise, thanks!March 25, 2019 at 4:35 pm #11046
I would like to update my question:
I realized that “add to cart” button doesn’t work with Variable products:
Is Variation Quantities not supported within Variable products?March 26, 2019 at 4:23 am #11049
make sure you have setup Variable product correctly. When no variation is selected ‘Add to cart’ button is disabled. There is no issue with Varitaion Quantities when used with Variable products.March 26, 2019 at 9:14 am #11056
Hi and thanks for your response.
I setup variable product correctly, disabled almost all plugins, and issue persist: it can’t add to cart.
You can see my product here: https://devshop.aquacity.sk/produkt/novy-testovaci-produkt/
I’m running newest Woocommerce 3.5.7 and WordPress 5.1.1, PPOM & PPOM PRO 17.0
Any idea why it doesn’t work like it should be?
March 26, 2019 at 12:36 pm #11058
- This reply was modified 6 months, 3 weeks ago by Maroš.
OK, I found out that some custom Woocommerce theme files are interfering with cart functionality, it seems to be working now 🙂March 26, 2019 at 4:40 pm #11062
But regardless my Custom woocommerce files, there is still one issue:
The cart is not updating correctly on the product page
– when I’m adding a variation that I already have in cart then it updated correctly
– when I go to My cart page it also updates
– but otherwise when I add a product it updates only by the default product price, not total of all selected variations
I’ve been trying a lot of things to make it work but still no luck.. do you have any suggestions what might be the culprit?
Thanks for your answer!March 29, 2019 at 12:03 pm #11075March 29, 2019 at 12:15 pm #11076
yes the price is correct when you navigate to the cart it updates like it should
when you add product and stay on the same page the price in the cart in the top-bar updates incorrectly, by the default price of the product.
Do you see the issue? Any suggestions what might be causing this?April 1, 2019 at 4:46 pm #11088
Because you have mini cart by theme or via some plugin which do not pull woocommerce meta information.April 4, 2019 at 10:55 am #11104
Yes, we are using custom cart widget.
We use function WC()->cart->get_cart_subtotal() to get the total.
Is there any way to get the correct price in there?
Thanks for your answer!April 4, 2019 at 2:21 pm #11109
Sorry, there is not such function available in WC to pull extra prices, we set cart price using WooCommerce hooks when cart is loaded from session on cart page.July 25, 2019 at 1:32 pm #13257
It has been a long while for this topic, so we are closing this.
The topic ‘Variation Quantities – Can't add to cart’ is closed to new replies.