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
- Go to Upcart > Cart Editor > Settings > Custom HTML
- From the Select HTML Location dropdown, choose Scripts (Before load)
- Paste the script below into the input field
- Save your changes
Currency formatting script
Settings explained
Inside the script, look for this section:| Setting | Description | Options |
| useCurrencySymbol | Show or hide the currency symbol (example: \$) | true / false |
| useCurrencyCode | Show or hide the currency code (example: USD) | true / false |
| currencySymbolPlacement | Where the symbol appears | 'left' / 'right' |
| currencyCodePlacement | Where the code appears | 'left' / 'right' |
| currencySymbolSpacing | Adds a space between symbol and amount (example: \$ 10.00) | true / false |
| currencyCodeSpacing | Adds a space between code and amount (example: 10 USD) | true / false |
| currencyFormat | Controls number formatting | #{{amount}}, #{{amount_no_decimals}}, etc. (refer to Shopify’s currency options) |
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

