Remove the Currency on BigCommerce Order email template
How to remove the order email Currency code for BigCommerce Order Email.
Problem
How to remove the USD or other currency codes from the email templates in BigCommerce?
Before
After
Solution
Using the BigCommerce Email Template Objects, we need to change the 'price' and 'total' objects from 'formatted' to 'value'. This results in having a float value rather than a string, but lacks the "$" sign and rounds off the ending zeros "210.0".
In order to ensure proper number formatting, we need to add handlebar logic. Using the Money helper, we can ensure proper formatting "$210.00".
We found these variables in the Order Email transaction template on lines 734, 752, 791.
<p class="products__price">{{money price.value 2 ',' '.'}}</p>
<th class="products__total">
<p>
<strong>{{money total.value 2 ',' '.'}}</strong>
</p>
</th>
<th class="total__value">
<p>
<strong>{{money price.value 2 ',' '.'}}</strong>
</p>
</th>
Links
BigCommerce Handlebar Helper for Money
BigCommerce Global Email Object for Order Message Notification
BigCommerce Forum Request for Remove the Currency on email template
Tags
BigCommerce
Dated
Created: Oct 03, 2024
Updated: Oct 03, 2024