Home › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Variation Quantities – Can't add to cart
Tagged: add to cart, Cart, Not Working, Variation Quantities
- This topic has 11 replies, 3 voices, and was last updated 5 years, 2 months ago by Jane Brian.
-
AuthorPosts
-
March 25, 2019 at 10:53 am #11043MarošParticipant
Hi,
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 #11046MarošParticipantI 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 #11049nmediaKeymasterHi Maros,
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 #11056MarošParticipantHi 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?
- This reply was modified 5 years, 6 months ago by Maroš.
March 26, 2019 at 12:36 pm #11058MarošParticipantOK, 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 #11062MarošParticipantBut 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 variationsI’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 #11075nmediaKeymasterHi,
but I see cart with updated price: https://i.imgur.com/03u9DXM.png
March 29, 2019 at 12:15 pm #11076MarošParticipantHello,
yes the price is correct when you navigate to the cart it updates like it should
BUT
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 #11088nmediaKeymasterBecause you have mini cart by theme or via some plugin which do not pull woocommerce meta information.
April 4, 2019 at 10:55 am #11104MarošParticipantYes, 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 #11109nmediaKeymasterSorry, 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 #13257Jane BrianKeymasterHi Maros
It has been a long while for this topic, so we are closing this. -
AuthorPosts
- The topic ‘Variation Quantities – Can't add to cart’ is closed to new replies.