Skip to main content

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