Getting Product Quantity selector to work in collection page

Highlighted
Tourist
6 0 5

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

 

1 Like
Highlighted
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.

1 Like
Highlighted
Tourist
6 0 5
thank you for your reply
here you go, hope someone can help
http://khodarco.com
0 Likes
Highlighted
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
Highlighted
Tourist
6 0 5

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

1 Like
Highlighted
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
Highlighted
Tourist
10 0 0

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

0 Likes