Feed Filters
These filters are used for formatting and manipulating data in feeds, such as product or content feeds. They help with URL generation, currency formatting, string manipulation, and conditional logic. Use these filters to prepare data for export or integration with other platforms.
full_url
Completes relative urls to absolute URLs.
Input
{{ "/my/store/path" | full_url }}
Output
https://www.mystore.com/my/store/path
link
Creates a link to store resource.
Input
{{ product | link }}
Output
https://www.mystore.com/product/my-product
money
Rounds the given amount in current display currency.
Input
{{ 3.45234 | money }}
Output
3.45
money_in_decimal
Returns the given amount in decimal.
Input
{{ 3.45234 | money_in_decimal: 2 }}
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 €
number_in_decimal
Returns the given amount in decimals.
Input
{{ 3.45234 | number_in_decimal: 2 }}
Output
3.45
substr
Returns the portion of string specified by the offset and length parameters.
Input
{{ abcdef | substr: 0, 3 }}
Output
abc
yepnope
Tests if value is truthy and returns the yes parameter value, otherwise returns no value.
Input
{{ '' | yepnope: 'yes', 'no' }}
{{ 'some content' | yepnope: 'yes', 'no' }}
Output
no
yes