Listen to shopify cart update quantity

前端 未结 2 2026
-上瘾入骨i
-上瘾入骨i 2020-12-18 06:56

I am writing a Shopify app and I would want to listen to the shopify cart update event. I know that when user clicks on remove or increase the item quantity. Shopify send a

2条回答
  •  自闭症患者
    2020-12-18 07:33

    To update item quantity fields in the cart in sectioned theme

    Step 1: You access Shopify admin, click Online Store and go to Themes.

    Step 2: Find the themes that you want to edit, then press Actions then Edit Code.

    Step 3: Look at Sections, you click on cart-template.liquid. In case that you are not using the theme that does not have the address, you can access Template directory and click cart.liquid.

    Step 4: Find the phrase written as update[item.id] in input tag.

    Step 5: Change the name into the value of name= “updates[]”.

    Step 6: Reiterate these aforementioned steps whenever you see an name value of updates[] in input tag.

    Step 7: Click Save and you update item quantity fields successfully..

提交回复
热议问题