How to update cart with selector quantity / cart-template (VENTURE THEME)

Solved
JLbyone
Trailblazer
197 19 47

Hi there, i build some new cart - template for venture theme, but im really confused right now, cause dont know where is the way to solve that, probably js? dont know.. 

The question is, how can i update page, when i click up/down on the selector quantity? You can see, if you change quantity and press enter, it upgrade correctly  page, but i want the same action, when i click on the arrows up/down

quantityselector.jpg

 

Url preview, and any file needed, i will send you by pm! thanks so much in advance!

0 Likes
JLbyone
Trailblazer
197 19 47

UP! anyone can guide me?

0 Likes
JLbyone
Trailblazer
197 19 47

This is an accepted solution.

For anyone still looking for the answer to this:

1. go to your cart-template.liquid code

2. find the quantity input box. should look something like below:

<input class="cart__qty-input" type="number" id="updates_{{ item.key }}" value="{{ item.quantity }}" min="0" pattern="[0-9]*" data-quantity-item="{{ forloop.index }}">

TO: (we add here onchange="this.form.submit();"

<input onchange="this.form.submit();" class="cart__qty-input" type="number" id="updates_{{ item.key }}" value="{{ item.quantity }}" min="0" pattern="[0-9]*" data-quantity-item="{{ forloop.index }}">

 

 

0 Likes