Hi,
I’m using the Debut theme and I want to add a text box at checkout that sits directly below the total and reads ‘Your total includes a tariff of 11% collected by the US government.’ I only want this text box to display for one catalogue within a particular market (the market is the United States and the catalogue is ‘United States - under US$800’).
Thanks,
Shelley
Hi Shelley,
You can’t directly modify the Shopify checkout unless you’re on Shopify Plus, but you can achieve this with a few workarounds:
-
If on Shopify Plus:
– Edit your checkout.liquid file and add a conditional snippet that checks the market (e.g., U.S.) or catalog handle before displaying the message.
-
If not on Plus:
– Add a custom message in the cart page or order summary section using Liquid:
{% if localization.country.iso_code == "US" and collection.handle == "united-states-under-us-800" %}
<p>Your total includes a tariff of 11% collected by the US government.</p>
{% endif %}
– This will show the message for that specific catalog and market before checkout.
If you need it inside checkout and aren’t on Plus, your best option is to use the Order Status page or cart notes to communicate it.
Thank you. I’m not on Shopify Plus. I tried to add a custom message to the cart page using the code provided above (option 2) but it doesn’t seem to have worked. I tried adding it at both the end of cart-template.liquid and cart.liquid. Can you please let me know where exactly the code should go?