[Resolved] Woocommerce fields: variable, qty. getting populated after clicking add to cart
This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to:
Thanks to views >wordpress archives, I could add the variable field and the quantity field to the shop page so the customers could order products directly from there. And it is working great.
My issue comes from when after clicking the "add to cart" button, the fields for variable options (pack options) and quantity for each product become populated by the previous selection.
If I select 12 pack for a quantity of 10 for one product, this selection of the fields will populate every other products on the shop page after adding the product to the cart.
I don't know if you can help me but I would appreciate very much if you could share your thoughts on stopping the fields from being populated.
Here is a link where you can try to order and see what happens; hidden link
Thank you so much for the code. It totally did the trick but now the price is still showing. Any idea or code about how to make it reset to not show after refreshing?