A
A
Anton Seredny2017-03-17 21:37:15
WordPress
Anton Seredny, 2017-03-17 21:37:15

Ajax removal of an item from the cart. How to be?

I want to remove items from the cart with Ajax. The issue is that some products are variable.
How to delete products? I read that you can set quantity 0, but I am tormented by vague doubts.
And how to pass data about the desired variable product to the script? Just an ID won't help, will it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2017-03-17
@wppanda5

Well, WooCommerce does this by default.
And yes, the WC version must be at least 2.6 for it to work out of the box

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question