Getting Product Quantity selector to work in collection page

Qozia3
Tourist
6 0 7

Hi.

so im trying to copy the quantity selector from the product page to the collect page and i intend to add an "add to cart" button for fast shopping

 

i managed to copy it but when i press the + or - buttons nothing works!

the quantity doesnt change

 

http://khodarco.com

can someone help?

why is it working on the product page but not on the collection page.

 

thank you2.png

 

1.png

 

Robert_Chen
Explorer
70 3 9

The quantity selector works on javascript.You have to let people see your site to be able to help,when there is someone to help.

Qozia3
Tourist
6 0 7
thank you for your reply
here you go, hope someone can help
http://khodarco.com
0 Likes
Mendus
Excursionist
34 0 3

Hello

 

Can you send me ascript how you done it or on what forum they help you ?

https://my-greenheart.com/
0 Likes
Qozia3
Tourist
6 0 7

i just took it from product-templete.liquid page

 <div class="product-form__item product-form__item--quantity">
            <label for="Quantity">{{ 'products.product.quantity' | t }}</label>
            <input type="number" id="Quantity" name="quantity" value="1" min="1" class="product-form__input product-form__quantity">
          </div>

and i pasted it in the product-card.liquid

 

 

beware, it doesnt work correctly, the buttons dont do anything yet

Mendus
Excursionist
34 0 3

And you know maybe how i can add also a Variet Drop Down menu to it ?

https://my-greenheart.com/
0 Likes
KritikaSingh
Excursionist
22 0 2

Hey ! Any solution for this? sorta stuck in the same area

0 Likes
jimsarn
New Member
3 0 0

Any update?

0 Likes