Tringify themes can use every Vascula built-in filter plus the filters on this page.
Filter |
Does |
|---|---|
Formats a price for the shopper's language. |
|
Splits a price into equal payments that add up to it exactly. |
|
Prints the theme's text in the shopper's language. |
|
Writes a date in the shopper's language, or with a strftime format. |
|
Gives a resized store image. |
|
Gives a |
|
Loads the first images at once and the rest lazily. |
|
Gives the URL of a file the theme ships. |
|
Prints placeholder artwork. |
|
Gives the URL of a placeholder video. |
money#
{{ product.price.current | money }}
{{ product.price.current | money: isolate: true }}
{{ product.price.current | money: trim_zeros: true }}
Formats a price in the shopper's language, in the price's own currency: $1,234.56 in English, 1 234,56 $ in French. Use a price value such as product.price.current or product.price.regular, not a plain number.
isolate: true keeps the price together when it sits inside text written in the other direction, such as a price in an Arabic sentence. See Money and languages.
trim_zeros: true leaves out the decimals when the price is a whole amount: $1,850 instead of $1,850.00. A price with a fraction, such as $1,850.50, keeps them. Use it for prices on cards and product pages, and leave it off for bag and order totals so they match checkout. It works together with isolate: true.
money_split#
{%- assign parts = product.price.current | money_split: 3 -%}
or 3 payments of {{ parts.first | money }}
Splits a price value into 2 to 12 payments, as a list of prices that add up to it exactly in the currency's smallest unit. Any remainder goes to the first payments, one unit each: $1,000.00 in 3 is $333.34, $333.33 and $333.33, so show parts.first. Format each payment with money. A number of payments outside 2 to 12 is an error. Use it instead of dividing a price yourself; see the instalments example.
t#
<button>{{ "cart.add" | t }}</button>
<p>{{ "account.greeting" | t: name: customer.first_name }}</p>
Prints the text for a key from the theme's locales/<locale>.json, in the shopper's language, falling back to the theme's default language. Named arguments fill placeholders: with "account.greeting": "Welcome back, {{ name }}", the second line prints Welcome back, Asha. A key that exists in neither file prints translation missing: <locale>.<key>. See Theme Locale Files.
image_url#
<img src="{{ product.featured_image | image_url: width: 800 }}" alt="{{ product.featured_image.alt_text }}">
<img src="{{ settings.image | image_url: width: 480 }}" alt="{{ settings.image.alt_text }}">
Gives the URL of a store image resized to the width you ask for, rounded up to one of 160, 320, 480, 640, 828, 1080, 1440 or 2048 pixels. An image is never made wider than itself: a width above the image's own size gives the width that covers that size, the same file as any larger width. The input is a store image: an image object, an image setting or a store image URL. An empty input gives an empty string.
When a store image is added, its 640 and 1080 px versions are prepared in the background, so use width: 640 for the src of product card images and width: 1080 for the product page's main image. A bulk import prepares them only for the images listings show first: each product's first image and each category, brand and vendor image. Every other width and image is prepared on its first request, which waits for it once. See the theme contract.
image_srcset#
<img src="{{ img | image_url: width: 640 }}"
srcset="{{ img | image_srcset: max: 1440 }}"
sizes="(min-width: 900px) 50vw, 100vw" alt="">
Lists the image at every width up to max (2048 if not given), for the browser to choose from. For an image object (product media or an image setting), the list also stops at the width covering the image's own size, so the browser is never offered a file wider than the image. Other inputs list every width up to max; a width above the image's size is still served at the width that covers it.
image_loading#
<img src="{{ img | image_url: width: 1080 }}" {{ img | image_loading }} alt="">
Prints the loading attributes for an image: the first image on the page loads first, the next two load straight away, and the rest load as they scroll into view. Use it on content images, such as banners and product photos.
asset_url#
<link rel="preload" href="{{ "display.woff2" | asset_url }}" as="font" type="font/woff2" crossorigin>
Gives the URL of a file in the theme's assets/ folder. Assets can be fonts (.woff2, .woff) and images (.png, .jpg, .jpeg, .webp, .gif). An unknown file name is an error.
date#
Pass a style, short, medium, long or full, to write a date the way the shopper's language writes it: short is numeric, medium spells a short month, long the full month, full adds the weekday. Use the _iso value of a field (published_at_iso, created_at_iso) or any timestamp field; its offset decides the calendar day. Any other argument is a strftime format, printed as written. Fields such as post.published_at already hold display text in the shopper's language.
{{ post.published_at_iso | date: 'medium' }}
{%- comment -%} en: Oct 5, 2026 · de: 5. Okt. 2026 · ja: 2026年10月5日 {%- endcomment -%}
{{ order.created_at | date: 'long' }}
{{ 'now' | date: '%Y' }}
placeholder_svg#
{% if settings.image %}
<img src="{{ settings.image | image_url: width: 1080 }}" alt="{{ settings.image.alt_text }}">
{% else %}
{{ "lifestyle-1" | placeholder_svg }}
{% endif %}
Prints artwork for a slot the merchant has not filled yet. It scales to the size your CSS gives it.
Name |
For |
|---|---|
|
Any image |
|
A logo |
|
Product cards |
|
Collection cards |
|
Banners and wide images |
placeholder_video#
{% if settings.video %}
<video autoplay muted loop playsinline src="{{ settings.video }}"{% if settings.video.preview_image %} poster="{{ settings.video.preview_image.url }}"{% endif %}></video>
{% else %}
<video autoplay muted loop playsinline src="{{ "reel-1" | placeholder_video }}"></video>
{% endif %}
Gives the URL of a placeholder video: reel-1, reel-2, reel-3 or reel-4.