Liquid edit on the cart screen About getting subtotals when the quantity changes

shira1
Excursionist
34 0 3

Liquid edit on the cart screen About getting subtotals when the quantity changes

Liquid edit on the cart screen I have a question about getting a subtotal when the quantity changes.

Theme: Debut

The subtotal on the cart screen is displayed as the result of multiplying the amount by 10% with javascript.
The subtotal is

<input type = "hidden" data-cart-subtotal value = "{{cart.total_price | money_with_currency}}" />


By doing so, you can get it, but if the quantity is changed, it will not be changed dynamically and the subtotal will be the same as the initial display.
Is there a way to get a subtotal that changes dynamically with a change in quantity?

I also saw the shopify developer's cart-liquid, but I'm stuck because there is no description around it.

I would appreciate it if you could tell me.

0 Likes