Print Filters
These filters are designed for use in print templates, such as invoices or packing slips. They help with image encoding, currency formatting, and localization. Use these filters to ensure printed documents display images and prices correctly and are localized for the recipient.
image
Fetches and encodes image to be used in the print. Only images hosted by Finqu are supported.
Input
{{ channel.logo | image }}
Output
data:image/png;base64,...
money
Rounds the given amount in current display currency.
Input
{{ 3.45234 | money }}
Output
3.45
money_in_smallest
Returns the given amount in the smallest currency unit.
Input
{{ 3.45234 | money_in_smallest }}
Output
345
money_with_currency
Returns the amount in current display currency rounded and formatted.
Input
{{ 3.45234 | money_with_currency }}
Output
3.45 €
t
Retrieve a translation with given key from the locale file for the active locale.
Input
{{ "add_to_cart" | t }}
{{ "sold_out" | t: title: product.title }}
Output
Add to cart
Product Jeans is sold out
Last updated on