Tags & filters
This tutorial requires the technical skills, including Liquid. If you have difficulty doing this, please contact us.
This article will write all additional filters and tags you can using in the layout. Beside them, you can still use the all default liquid filters and tags.
Tags
Schema
Tag schema helps you to add custom settings to your layout. Please read more from this article.
Filters
compact_number
number | compact_numberConvert a number to compact format. For example, 1000 to 1K, 1000000 to 1M
img_url
"string" | img_urlAdd width and height to an image from Shopify CDN.
Prop
Type
img_tag
"string" | img_tagConvert an image URL to HTML tag.
Prop
Type
bar_code
string | bar_code: width: 2, height: 32, format: "auto", show_value: falseGenerate a bar code from a given string.
Prop
Type
qr_code
"string" | bar_code: width: 200Generate a QR code from a given string.
Prop
Type
money_format
number | money_formatFormat a number as a currency.
Prop
Type
customer_money
MoneyBag | customer_moneyFormat the price as the currency of the customer.
Prop
Type
money
(MoneyBag or number) | moneyFormat the price as the currency of the shop.
Prop
Type
money_no_decimals
(MoneyBag or number) | money_no_decimalsFormat the price as the currency without decimals
money_with_currency
(MoneyBag or number) | money_no_decimalsFormat the price as the currency with the currency.
Prop
Type
money_without_currency
(MoneyBag or number) | money_no_decimalsFormat the price as the currency without the currency.
Prop
Type
masked_text
"string" | masked_text: remaining: 2Add * to a string. For example: Andrew Doan will become to An**** **an.
Prop
Type
t
string | tTranslate a key to multiple language.
Prop
Type
render_vars
string | render_varsRender liquid with the given string.