Mechanic
π§βπ» Get Mechanic!
π§βπ§ Task library
π³ Task requests
π¦Ύ Mechanic.dev
Searchβ¦
Introduction
π―
status.mechanic.dev
π
"I need something custom!"
π€
Hire a Mechanic developer
Resources
π§π»
Task library
π
Slack community
π€
Partner directory
Tutorials
Core Concepts
Events
Tasks
Actions
Runs
Interacting with Shopify
Platform
π
Policies
Cache
Email
Events
GraphQL
Integrations
Liquid
Basics
Syntax
Data types
Variables
Comments
Filters
Operators
Control flow
Whitespace
Filters
Keyword literals
Mechanic objects
REST Admin API
Mechanic tags
Liquid console
Shopify
Webhooks
Techniques
Writing a high-quality task
Tagging Shopify resources
Debouncing events
Responding to action results
Working with external APIs
Finding a resource ID
Migrating templates from Shopify to Mechanic
Securing Mechanic webhooks
Monitoring Mechanic
FAQ
Powered By
GitBook
Filters
Filters
transform a value into something else. Filters are separated by the pipe symbol:
|
. Filters can be chained, performing several transformations in a sequence.
Mechanic inherits
all filters from Liquid itself
, and adds several of its own. It does not have all of
Shopify's filters
.
For a complete list of filters supported by Mechanic, see
Filters
.
Example syntax
1
{{
order
.
billing_address
.
zip
|
upcase
}}
2
β
3
{
%
assign full_name
=
customer
.
first_name
|
append
:
" "
|
append
:
customer
.
last_name
%
}
Copied!
Previous
Comments
Next
Operators
Last modified
1yr ago
Copy link
Edit on GitHub
Contents
Example syntax