{"id":111303,"date":"2019-07-18T17:00:00","date_gmt":"2019-07-18T17:00:00","guid":{"rendered":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/"},"modified":"2025-02-24T10:28:51","modified_gmt":"2025-02-24T10:28:51","slug":"how-to-use-money-filter","status":"publish","type":"post","link":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/","title":{"rendered":"How to use money filter"},"content":{"rendered":"<p>If you\u2019re looking for a simple way to set up currency exchange for foreign buyers in your Shopify store, using money filters in Liquid can be a great solution. Many store owners struggle to display prices in different currencies for international customers. In this post, we\u2019ll guide you on how to effectively install currency exchange by applying money filters in Shopify\u2019s Liquid code.<\/p>\n<p><strong>Table of content<\/strong><\/p>\n<ul>\n<li><a href=\"#introduction-to-Liquid\">Introduction to Liquid<\/a><\/li>\n<li><a href=\"#what-is-money-filter\">What is money filter<\/a><\/li>\n<li><a href=\"#how-to-use-money-filter\">How to use money filter<\/a><\/li>\n<\/ul>\n<h2 id=\"introduction-to-Liquid\">Introduction to Liquid<\/h2>\n<p>As you know,  Liquid is one of the open-source template languages in Shopify. Liquid is used as the backbone of Shopify to upload dynamic content on the front page. Liquid has been sold since 2006 and now become a good source for a lot of hosted website application namely Jekyll, salesforce desk, and zendesk.<\/p>\n<h2 id=\"what-is-money-filter\">What is money filter<\/h2>\n<p>Money filter in Liquid assists you in calculating the customers\u2019 bills with a different currency from yours. The function is useful for websites that sell goods for both domestic and foreign customers. Money filter format is built based on the Currency Formatting found in General Settings.<\/p>\n<p>By clicking on standards and formats, you can change the currency to inform purchasers about their payments.<\/p>\n<p>This tutorial will guide you to use money filter, money with currency, money without trailing zeros, money without currency.<\/p>\n<h2 id=\"how-to-use-money-filter\">How to use money filter<\/h2>\n<p>First, <code class=\"language-plaintext highlighter-rouge\">money<\/code> calculate the prices based on the shop\u2019s HTML without currency setting.<\/p>\n<p><strong>Input<\/strong><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n{{ 145 | money }}\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n&lt;!-- if \"HTML without currency\" is ${{ amount }} --&gt;\n$1.45\n&lt;!-- if \"HTML without currency\" is \u20ac{{ amount_no_decimals }} --&gt;\n\u20ac1\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p>Second, <code class=\"language-plaintext highlighter-rouge\">money_with_currency<\/code> formats the price based on the shop\u2019s HTML with currency setting.<\/p>\n<p><strong>Input<\/strong><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n{{ 145 | money_with_currency }}\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n&lt;!-- if \"HTML with currency\" is ${{ amount }} CAD --&gt;\n$1.45 CAD\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p>Third, you can access  money without trailing zeros by opening the shop\u2019s HTML with currency setting and excluding the decimal point and trailing zeros.<\/p>\n<p><strong>Input<\/strong><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n&lt;!-- if \"HTML with currency\" is ${{ amount }} CAD --&gt;\n{{ 2000 | money_without_trailing_zeros }}\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n$20\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p>In case you want to remove trailing zeros, not other digits, you can follow.<\/p>\n<p><strong>Input<\/strong><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n&lt;!-- if \"HTML with currency\" is ${{ amount }} CAD --&gt;\n{{ 145 | money_without_trailing_zeros }}\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n$1.45\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p>Finally, <code class=\"language-plaintext highlighter-rouge\">money_without_currency<\/code> calculates the price using a decimal.<\/p>\n<p><strong>Input<\/strong><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n{{ 145 | money_without_currency }}\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n1.45\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>Using money filters in Shopify Liquid allows you to easily display prices in different formats for international customers, making currency exchange simple and efficient. By applying the money filter, you can provide a seamless shopping experience for foreign buyers. With the right setup, you\u2019ll confidently manage currency formats without hassle!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you\u2019re looking for a simple way to set up currency exchange for foreign buyers in your Shopify store, using money filters in Liquid can be a great solution. Many store owners struggle to display prices in different currencies for international customers. In this post, we\u2019ll guide you on how to effectively install currency exchange [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[356,383],"tags":[],"class_list":["post-111303","post","type-post","status-publish","format-standard","hentry","category-shopify","category-shopify-devdocs"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use money filter in Shopify<\/title>\n<meta name=\"description\" content=\"Learn to properly format and display prices using Shopify&#039;s money filter with various currency options and decimal places.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/avada.io\/blog\/how-to-use-money-filter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use money filter in Shopify\" \/>\n<meta property=\"og:description\" content=\"Learn to properly format and display prices using Shopify&#039;s money filter with various currency options and decimal places.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/avada.io\/blog\/how-to-use-money-filter\/\" \/>\n<meta property=\"og:site_name\" content=\"Avada Commerce\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/avada.io\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-18T17:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-24T10:28:51+00:00\" \/>\n<meta name=\"author\" content=\"Sam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@avadaio\" \/>\n<meta name=\"twitter:site\" content=\"@avadaio\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use money filter in Shopify","description":"Learn to properly format and display prices using Shopify's money filter with various currency options and decimal places.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/","og_locale":"en_US","og_type":"article","og_title":"How to use money filter in Shopify","og_description":"Learn to properly format and display prices using Shopify's money filter with various currency options and decimal places.","og_url":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/","og_site_name":"Avada Commerce","article_publisher":"https:\/\/www.facebook.com\/avada.io\/","article_published_time":"2019-07-18T17:00:00+00:00","article_modified_time":"2025-02-24T10:28:51+00:00","author":"Sam","twitter_card":"summary_large_image","twitter_creator":"@avadaio","twitter_site":"@avadaio","twitter_misc":{"Written by":"Sam","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/#article","isPartOf":{"@id":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/"},"author":{"name":"Sam","@id":"https:\/\/avada.io\/#\/schema\/person\/cc9c647e3ec94d00dc61ae2e653cafb7"},"headline":"How to use money filter","datePublished":"2019-07-18T17:00:00+00:00","dateModified":"2025-02-24T10:28:51+00:00","mainEntityOfPage":{"@id":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/"},"wordCount":367,"publisher":{"@id":"https:\/\/avada.io\/#organization"},"articleSection":["Shopify","Shopify Devdocs"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/","url":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/","name":"How to use money filter in Shopify","isPartOf":{"@id":"https:\/\/avada.io\/#website"},"datePublished":"2019-07-18T17:00:00+00:00","dateModified":"2025-02-24T10:28:51+00:00","description":"Learn to properly format and display prices using Shopify's money filter with various currency options and decimal places.","breadcrumb":{"@id":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/avada.io\/blog\/how-to-use-money-filter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/avada.io\/blog\/how-to-use-money-filter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/avada.io\/"},{"@type":"ListItem","position":2,"name":"Shopify","item":"https:\/\/avada.io\/category\/shopify"},{"@type":"ListItem","position":3,"name":"Shopify Devdocs","item":"https:\/\/avada.io\/category\/shopify-devdocs\/"},{"@type":"ListItem","position":4,"name":"How to use money filter"}]},{"@type":"WebSite","@id":"https:\/\/avada.io\/#website","url":"https:\/\/avada.io\/","name":"Avada Commerce","description":"Blog","publisher":{"@id":"https:\/\/avada.io\/#organization"},"alternateName":"Avada Commerce","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/avada.io\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/avada.io\/#organization","name":"Avada Commerce","alternateName":"Avada Commerce","url":"https:\/\/avada.io\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/avada.io\/#\/schema\/logo\/image\/","url":"https:\/\/avada.io\/wp-content\/uploads\/2023\/06\/Avada-logo.jpeg","contentUrl":"https:\/\/avada.io\/wp-content\/uploads\/2023\/06\/Avada-logo.jpeg","width":1200,"height":1200,"caption":"Avada Commerce"},"image":{"@id":"https:\/\/avada.io\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/avada.io\/","https:\/\/x.com\/avadaio","https:\/\/www.youtube.com\/@avadaio","https:\/\/www.linkedin.com\/company\/avadacommerce"]},{"@type":"Person","@id":"https:\/\/avada.io\/#\/schema\/person\/cc9c647e3ec94d00dc61ae2e653cafb7","name":"Sam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fdce01bbdb8b8eaa162f8ed372062707058abcd85e8b233af7cb4e01191c75f4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fdce01bbdb8b8eaa162f8ed372062707058abcd85e8b233af7cb4e01191c75f4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fdce01bbdb8b8eaa162f8ed372062707058abcd85e8b233af7cb4e01191c75f4?s=96&d=mm&r=g","caption":"Sam"},"description":"Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Vietnam. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.","sameAs":["https:\/\/wordpress-466542-3512282.cloudwaysapps.com","https:\/\/vn.linkedin.com\/in\/samng80"],"url":"https:\/\/avada.io\/authors\/sam\/"}]}},"meta_title":"How to use money filter in Shopify","meta_description":"Learn to properly format and display prices using Shopify's money filter with various currency options and decimal places.","meta_keywords":"","feature_image_custom":"","updated_at_migrate":"2019-07-19T00:00:00+07:00","_links":{"self":[{"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/posts\/111303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/comments?post=111303"}],"version-history":[{"count":1,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/posts\/111303\/revisions"}],"predecessor-version":[{"id":117902,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/posts\/111303\/revisions\/117902"}],"wp:attachment":[{"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/media?parent=111303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/categories?post=111303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/tags?post=111303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}