Aqua Filters
Filters modify the output of objects and variables. Chain multiple filters with the pipe| character.
Money Filters
Format prices according to store currency settings.Important: Prices in LaunchMyStore are stored as decimals (e.g.,
19.99), not cents. No division by 100 needed.money
Formats a number as currency using the store’smoney_format.
money_with_currency
Includes the currency code.money_without_currency
Formats without the currency symbol.money_without_trailing_zeros
Removes.00 from whole numbers.
Asset Filters
Generate URLs for theme assets.asset_url
Returns the URL for an asset in the theme’sassets/ folder.
https://cdn.launchmystore.io/themes/{id}/assets/styles.css
asset_img_url
Returns sized image URL for an asset.file_url
Returns URL for files uploaded to the theme.stylesheet_tag
Generates a<link> tag for CSS.
script_tag
Generates a<script> tag.
preload_tag
Generates a preload link.Image Filters
Work with product, collection, and other images.img_url / image_url
Returns a resized image URL.400x400- Exact dimensions400x- Width only, proportional heightx400- Height only, proportional widthmaster- Original sizesmall,medium,large- Preset sizes
img_tag / image_tag
Generates an<img> tag with optional attributes.
media_tag
Renders appropriate tag for any media type (image, video, 3D model).String Filters
upcase
HELLO
downcase
hello
capitalize
Capitalizes the first character.Hello world
truncate
Truncates to a character limit with ellipsis.This is a lo...
truncatewords
Truncates to a word limit.This is a...
strip_html
Removes all HTML tags.Hello world
strip_newlines
Removes all newlines.newline_to_br
Converts newlines to<br> tags.
Line 1<br>Line 2
replace
Replaces occurrences of a string.Hello Universe
replace_first
Replaces the first occurrence only.Hi Hello
remove
Removes all occurrences.Hello
prepend
Adds text to the beginning.Hello world
append
Adds text to the end.Hello world
split
Splits a string into an array.handleize
Converts to URL-safe handle.summer-collection-2024
escape
HTML-escapes special characters.<script>alert("hi")</script>
url_encode
URL-encodes a string.hello%20world
url_decode
URL-decodes a string.hello world
highlight
Wraps search terms in<mark> tags.
Math Filters
plus
Addition.8
minus
Subtraction.7
times
Multiplication.15
divided_by
Division.5
modulo
Remainder.1
round
Rounds to decimal places.3.14
ceil
Rounds up.4
floor
Rounds down.3
abs
Absolute value.5
at_least
Returns the larger value.5
at_most
Returns the smaller value.5
Array Filters
first
Returns the first item.last
Returns the last item.size
Returns the array length.join
Joins array elements.sort
Sorts an array.sort_natural
Case-insensitive sort.reverse
Reverses an array.uniq
Removes duplicates.compact
Removes nil values.map
Extracts a property from each item.where
Filters by property value.find
Finds first matching item.reject
Removes matching items.concat
Combines arrays.slice
Extracts a portion.Date Filters
date
Formats a date.time_tag
Generates a<time> tag.
Color Filters
color_to_rgb
Converts hex to RGB.rgb(255, 0, 0)
color_to_hex
Converts to hex.#ff0000
color_lighten
Lightens a color.color_darken
Darkens a color.color_brightness
Returns brightness (0-100).color_modify
Modifies color properties.Font Filters
font_face
Generates CSS@font-face rules.
font_url
Returns the font URL.font_property
Extracts a font property.font_modify
Modifies font properties.HTML Filters
link_to
Creates an anchor tag.<a href="/products/handle">Click here</a>
link_to_vendor
Links to vendor collection.link_to_type
Links to product type collection.link_to_tag
Links to tag filter.Utility Filters
json
Converts to JSON.parse_json
Parses a JSON string into an object.Test - 99
inline_asset_content
Inlines the content of an asset file (useful for SVGs).default
Returns default if value is nil/empty.t (translate)
Translates a key from locales.placeholder_svg_tag
Generates a placeholder SVG.weight_with_unit
Formats weight with unit.format_address
Formats an address object.default_errors
Rendersform.errors as a ready-made error list. Used inside
{% form %} blocks — see
Theme Customer Accounts.
default_pagination
Renders a complete pagination control from thepaginate object inside a
{% paginate %} block.
structured_data
Generates JSON-LD for SEO.Payment Filters
payment_type_img_url
Returns payment method icon URL.payment_type_svg_tag
Renders payment method SVG.Video Filters
external_video_url
Extracts embed URL from YouTube/Vimeo.external_video_tag
Renders an iframe for external video.video_tag
Renders a<video> element.