We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to add code to cart page that gets cart value

How to add code to cart page that gets cart value

Graham256
Excursionist
15 0 9

Hi, I have free shipping from 150 euro onwards. I want to add a section  or some code on the cart page that shows how many euros the current order is away from the 150 euro amount. How do I do this and where do I put it?

 

Additionally now all customers will order in Euros, so I need to know the equivalent euro amount of whatever currency the customer orders in.

Replies 3 (3)

okur90
Shopify Partner
127 20 19

Hey @Graham256 

 

If you could provide your current cart.liquid or cart-template.liquid file, I can make the necessary changes for you and share the updated code.

 

Once you provide the code, I'll update it to display the remaining amount for free shipping in the customer's currency.

Code Slingin, Pixel Wranglin - Laugh it up at onlinex.com.au
Graham256
Excursionist
15 0 9

Thanks, that would be amazing! It would be the standard Refresh cart file I guess. 

I've pasted an overview of "cart" files, which one should I send?

 

refreshTheme cart files.png

okur90
Shopify Partner
127 20 19

@Graham256 it could be named "main-cart-items.liquid"

Code Slingin, Pixel Wranglin - Laugh it up at onlinex.com.au