Product variations issue
-
Hi
I’m using the latest version of this plugin with checkoutwc, i have the apple pay/google pay buttons on the product page. when i click different variations it adds these variations to the cart before i’ve added it to the cart.
I spoke to checkoutwc and they advised the fix needs to come from you:
The extra sizes are not coming from the Add to bag button. They are being added by the Apple Pay and Google Pay buttons that Payment Plugins for Stripe puts on your product pages. Every time a size is clicked, the page sends that variation to Payment Plugins’ express checkout handler, which puts the item into your real cart so it can price the wallet buttons, and never takes it back out.
That also explains the side cart. Once a size is already in the bag, pressing Add to bag on a size with low stock runs into WooCommerce’s stock limit – I got “You cannot add that amount to the bag – we have 1 in stock and you already have 1 in your bag”. Any failed add to cart reloads the page to show that message, so the side cart never gets the chance to open. The side cart itself is fine and will open as normal again once the extra items stop.
I’ve had to remove the apple/google pay buttons from the product page and it works fine again.
how can this be resovled.
thanks
You must be logged in to reply to this topic.