Home
Brod Solutions

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

Remove the Currency on BigCommerce Order email template — before

After

Remove the Currency on BigCommerce Order email template — 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>

Tags

BigCommerce

Dated

Created: Oct 03, 2024

Updated: Oct 03, 2024

Tanner Brodhagen

Tanner Brodhagen

Share this post

It all Starts with a Spark

Your single biggest growth constraint fixed in 90 days.

Start With Spark⟢

One focus · One outcome