How can I edit my email template to remove the dollar sign?

Topic summary

A user needed help removing dollar signs from a Shopify email template for order cancellations, as their products don’t have prices and they only wanted to display product totals and subtotals without currency symbols.

Problem:

  • The original template displayed prices with dollar signs ($$) for subtotal, shipping, discounts, and duties
  • User wanted to keep quantity totals but remove all price/currency displays

Solution Provided:

  • A support representative from PageFly provided replacement code that restructured the pricing display sections
  • The modified code maintained the order cancellation logic (voided/refunded statuses and cancel reasons) while reformatting the pricing table structure

Outcome:

  • The solution successfully resolved the issue
  • User confirmed they were able to remove the currency/money code from the subtotal sections and can now apply the same approach to other email templates

Status: Resolved

Summarized with AI on November 22. AI used: claude-sonnet-4-5-20250929.

Hi @kacey49 ,

This is Richard from PageFly - Landing page builder, I’d like to suggest this idea:
You can try replace your code by below code:

{% capture email_title %}Your order has been canceled{% endcapture %}
{% capture email_body %}
{% if financial_status == 'voided' %}
{% case cancel_reason %}
{% when 'customer' %}
Order {{ name }} was canceled at your request and your payment has been voided
{% when 'inventory' %}
Order {{ name }} was canceled because we did not have enough stock to fulfill your order and your payment has been voided
{% when 'fraud' %}
Order {{ name }} was canceled because of unforeseen circumstances and your payment has been voided
{% when 'other' %}
Order {{ name }} was canceled because of unforeseen circumstances and your payment has been voided
{% endcase %}
{% elsif financial_status == 'refunded' %}
{% case cancel_reason %}
{% when 'customer' %}
Order {{ name }} was canceled at your request and your payment has been refunded
{% when 'inventory' %}
Order {{ name }} was canceled because we did not have enough stock to fulfill your order and your payment has been refunded
{% when 'fraud' %}
Order {{ name }} was canceled because of unforeseen circumstances and your payment has been refunded
{% when 'other' %}
Order {{ name }} was canceled because of unforeseen circumstances and your payment has been refunded
{% endcase %}
{% endif %}
.
{% endcapture %}

<table>

<table>

<table>

<table>

<tr>

<td>

{%- if shop.email_logo_url %}

{%- else %}
# 
{{ shop.name }}

{%- endif %}

</td>

<td>

Order {{ order_name }}

</td>

</tr>

</table>

</table>

</table>

<table>

<table>

<tr>

<td>

## {{ email_title }}

{{ email_body }}

</td>

</tr>

</table>

</table>

<table>

<table>

<tr>

<td>

### Refunded Items

</td>

</tr>

</table>
<table>

{% for line in subtotal_line_items %}
{% endfor %}
<table>

<table>

<tr>
<td>

{% if line.image %}

{% endif %}

</td>

<td>

{% if line.product.title %}
{% assign line_title = line.product.title %}
{% else %}
{% assign line_title = line.title %}
{% endif %}

{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}

{{ line_title }} × {{ line_display }}

{% if line.variant.title != 'Default Title' %}
{{ line.variant.title }}

{% endif %}

{% if line.selling_plan_allocation %}
{{ line.selling_plan_allocation.selling_plan.name }}

{% endif %}

{% if line.refunded_quantity > 0 %}
Refunded
{% endif %}

{% if line.discount_allocations %}
{% for discount_allocation in line.discount_allocations %}
{% if discount_allocation.discount_application.target_selection != 'all' %}

{% endif %}
{% endfor %}
{% endif %}

</td>

</tr>
</table>

</table>

<table>

<td>

</td>

{% for discount_application in discount_applications %}
{% if discount_application.target_selection == 'all' %}
{% capture discount_title %}
{% if discount_application.title %}
{{ discount_application.title | upcase }}
{% else %}
Discount
{% endif %}
{% endcapture %}

{% endif %}
{% endfor %}

{% if delivery_method == 'pick-up' %}

{% else %}

{% endif %}

{% if total_duties %}

{% endif %}

{% if total_tip and total_tip > 0 %}

{% endif %}
<table>
<tr>

<td>

Discount

{{ discount_title }}

</td>

<td>

**-{{ discount_application.total_allocated_amount | money }}**

</td>

</tr>
<tr>

<td>

Subtotal

</td>

<td>

**{{ subtotal_price | money }}**

</td>

</tr>
<tr>

<td>

Pickup

</td>

<td>

**{{ shipping_price | money }}**

</td>

</tr>
<tr>

<td>

Shipping

</td>

<td>

**{{ shipping_price | money }}**

</td>

</tr>
<tr>

<td>

Duties

</td>

<td>

**{{ total_duties | money }}**

</td>

</tr>
<tr>

<td>

Taxes

</td>

<td>

**{{ tax_price | money }}**

</td>

</tr>
<tr>

<td>

Tip

</td>

<td>

**{{ total_tip | money }}**

</td>

</tr>
</table>
{% assign transaction_size = 0 %}
{% assign transaction_amount = 0 %}
{% for transaction in transactions %}
{% if transaction.status == "success" %}
{% unless transaction.kind == "authorization" or transaction.kind == "void" %}
{% assign transaction_size = transaction_size | plus: 1 %}
{% assign transaction_amount = transaction_amount | plus: transaction.amount %}
{% endunless %}
{% endif %}
{% endfor %}

{% if payment_terms %}
{% assign due_at_date = payment_terms.next_payment.due_at | date: "%b %d, %Y" %}

{% else %}

{% endif %}
<table>
<tr>

<td>

Total paid today

</td>

<td>

**{{ transaction_amount | money_with_currency }}**

</td>

</tr>

<tr>

<td>

Total due {{ due_at_date }}

</td>

<td>

**{{ payment_terms.next_payment.amount_due | money_with_currency }}**

</td>

</tr>

<tr>

<td>

Total

</td>

<td>

**{{ total_price | money_with_currency }}**

</td>

</tr>
</table>

{% if total_discounts > 0 %}

You saved {{ total_discounts | money }}

{% endif %}

{% unless payment_terms %}
{% if transaction_size > 1 or transaction_amount < total_price %}

{% for transaction in transactions %}
{% if transaction.status == "success" and transaction.kind == "capture" or transaction.kind == "sale" %}
{% if transaction.payment_details.credit_card_company %}
{% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (ending in {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %}
{% else %}
{% capture transaction_name %}{{ transaction.gateway_display_name }}{% endcapture %}
{% endif %}

{% endif %}
{% if transaction.kind == 'refund' %}
{% if transaction.payment_details.credit_card_company %}
{% assign refund_method_title = transaction.payment_details.credit_card_company %}
{% else %}
{% assign refund_method_title = transaction.gateway %}
{% endif %}

{% endif %}
{% endfor %}
<table>

<tr>
<td colspan="2">

</td>
</tr>

<tr>
<td colspan="2">

</td>
</tr>
<tr>

<td>

{{transaction_name}}

</td>

<td>

**{{ transaction.amount | money }}**

</td>

</tr>

Refund

<small>{{ refund_method_title | capitalize }}</small>

**- {{ transaction.amount | money }}**

</table>
{% endif %}
{% endunless %}

</table>

</table>

</table>

<table>

<table>

<tr>

<td>

If you have any questions, reply to this email or contact us at [{{ shop.email }}](mailto:{{ shop.email }})

</td>

</tr>

</table>

</table>

</table>

I hope it would help you
Best regards,

Richard | PageFly