Answer the question
In order to leave comments, you need to log in
Is it possible to change the values of the second js argument?
Good afternoon, there is such a markup
<button onclick="cart.add('8', '1')" class="button button-cart"><span>В корзину</span></button>
cart.add('8', '1')"
// 8 - id
// 1 - количество
Answer the question
In order to leave comments, you need to log in
Keep the second argument in a variable.
"Functional change quantity" change the variable.
For example :
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question