S
S
SD PANDAREN2017-08-09 08:43:20
JavaScript
SD PANDAREN, 2017-08-09 08:43:20

wordpress woocommerce. how to add ajax input for selecting the quantity of goods after clicking the buy button?

You need to add an input for choosing the quantity of goods as in the basket, immediately after you clicked the add to cart button, it displays the amount of already added goods if you clicked + then +1 the amount of goods added to the cart.

Example:
53cc7d4bc42e463eb5959012ed38b0e1.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2019-03-25
@pasterh

Everything is working
That's just not right to produce so many elements with the same id!
Wouldn't it be better to do this:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question