Home > Shopify Development > update links removing items from the cart

How to update links removing items from the cart in Shopify

Sam Nguyen
Sam Updated: August 20, 2024

Share:

Drive 20-40% of your revenue with Avada
avada email marketing

As you might not know about, you are able to collect the customization information for those products which are using the line item properties. However, in case your themes do not display the customization in the cart, you are able to insert codes to your cart-template.liquid or cart.liquid to help check for the line item properties as well as show them if they are existing.

In previous writing, you were already shown on how to show line item properties in the cart. You also take note that any links removing items from your cart can be required to upload to work well with custom line properties Hence, in this post, we will instruct you on how to update links removing items from the cart in Desktop, iPhone, and Android.

  • Step 1: From your own Shopify admin, head to Online Store > Themes.

update links removing items from the cart

  • Step 2: You can look for themes you want to modify. After that, press Action > Edit Code.

update links removing items from the cart

  • Step 3: Click on cart-template.liquid in the Sections directory. In case your themes do not possess a cart-template.liquid, you can open the Templates directory as well as choose cart.liquid.

update links removing items from the cart

  • Step 4: Find a tag which is loaded with an href value beginning with /cart/change.

  • Step 5: In this step, you can change the href value to `href=”/cart/change?line=&quantity=0”.

update links removing items from the cart

  • Step 6: Repeat the above steps for each a tag in the cart-template.liquid which has the href value starting with /cart/change.

  • Step 7: Don’t forget to click Save.

update links removing items from the cart

  • Step 1: Go to your Shopify app, then press Store.

  • Step 2: Tap Online Store in your Sales channels section.

  • Step 3: After that, touch Manage Themes.

  • Step 4: Find themes you would like to change. After that touch Actions > Edit Code.

  • Step 5: Tap cart-template.liquid. In ase this theme does not contain a cart-template.liquid, you can open the Templates directory before touching cart.liquid.

  • Step 6: Look for a tag having an href value beginning with /cart/change.

  • Step 7: Change the href value to `href=”/cart/change?line=&quantity=0”.

  • Step 8: Then, you can repeat those above steps for each a tag in the cart-template.liquid having an href value beginning with /cart/change.

  • Step 9: Touch Save to finish your task.

  • Step 1: Head to your Shopify app, then press Store.

  • Step 2: Touch Online Store in your Sales channels section.

update links removing items from the cart

  • Step 3: Tap Manage Themes.

update links removing items from the cart

  • Step 4: Look for themes you would like to change. After that, tap Actions > Edit Code

update links removing items from the cart

  • Step 5: Touch cart-template.liquid. In ase this theme does not contain a cart-template.liquid, you can open the Templates directory before touching cart.liquid.

update links removing items from the cart

  • Step 6: Find a tag having an href value beginning with /cart/change.

  • Step 7: Change the href value to `href=”/cart/change?line=&quantity=0”.

update links removing items from the cart

  • Step 8: Then, you can repeat those above steps for each a tag in the cart-template.liquid having an href value beginning with /cart/change.

  • Step 9: Tap Save to complete your task.

Conclusion

As you can see, the question on how to update links removing items from the cart is not too complicated to answer. All you need to do is reading and following those above steps carefully to make sure everything is ok.


Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.

Stay in the know

Get special offers on the latest news from AVADA.