Skip to main content
⚠️ Important notice This customization only works with Version 1 of the Upcart cart modules. If you recently upgraded your cart to Version 2, these customizations may not work. You will need to use the new selectors provided for Version 2 in the migration guide. If your customizations are not working as expected, you can also revert your cart back to Version 1 instead of using Version 2. We are currently working on new customization templates for Version 2 of the modules, and they will be available soon.

Overview

This customization lets you change how currency symbols and codes appear in your Upcart cart drawer. You can control whether to show the currency symbol (for example $), the currency code (for example USD), where they appear, and how they are spaced. This setup requires that:
  • Your store is using Shopify Markets, or
  • You are working with a single market

Where to add the script

  1. Go to Upcart > Cart Editor > Settings > Custom HTML
  2. From the Select HTML Location dropdown, choose Scripts (Before load)
  3. Paste the script below into the input field
  4. Save your changes

Currency formatting script


Settings explained

Inside the script, look for this section:
You can adjust these values to control how currency appears in the cart:

Final result

Once the script is added and saved:
  • Currency symbols and codes display exactly as configured
  • Works across all parts of the Upcart drawer, including rewards and upsells
  • Adapts to Shopify Markets automatically if they are enabled

Need help?

For advanced customization, we recommend working with a Shopify Expert. Upcart’s support team does not assist with writing or troubleshooting custom code. See Shopify Experts