Skip to main content

Hi everyone,

In my abandoned cart or checkout abandonment emails, I’d like the product price to display with both the symbol and the currency code (based on Shopify Payments).

For example:

  • U.S. customers: $30 → $30 USD

  • Australian customers: $30 → $30 AUD

  • U.K. customers: £30 → £30 GBP

  • EU customers: €30 → €30 EUR

Does anyone know which variable or formatting I should use in Klaviyo to achieve this?

Thanks a lot!

Hi ​@zhichun

Assuming that Shopify is sending “Placed Order” and “Abandoned Cart” events through to Klaviyo, you can absolutely do this with some conditional logic within you email template.

Here's an example based on the Placed Order event:

{% assign price = event|lookup:'$value' %} {% assign currency_code = event|lookup:'$currency_code' %}

{% if currency_code == 'USD' %} ${{ price }} USD

{% elsif currency_code == 'AUD' %}

${{ price }} AUD {% elsif currency_code == 'GBP' %} £{{ price }} GBP

{% elsif currency_code == 'EUR' %} €{{ price }} EUR

{% else %} {{ price }} {{ currency_code }}

{% endif %}

If you're looping through items in the cart, just swap price with item.line_total or whatever property you're displaying.

Give it a test and let me know if that works.

Thanks,

Ross


Reply