Liquid

A reference for Mechanic's Liquid scripting

Isaac Bowen avatar
22 articles in this collection
Written by Isaac Bowen

The task object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The transaction object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The order risk object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

Keyword literals

We introduce three new literals to make coding faster: newline, hash, and array.
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The assign tag

It's business as usual, with arrays and hashes now in the mix.
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The action tag

Use {% action %} for fast composition.
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The cache object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The options object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The event object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

Filters

Mechanic uses standard Liquid, and adds a few custom filters.
Isaac Bowen avatar
Written by Isaac Bowen
Updated yesterday

The shop object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The refund object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The variant object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The inventory item object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The inventory level object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The location object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The product object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The collection object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The customer object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The order object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The line item object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago

The draft order object

How you can access it, and what you can do with it
Isaac Bowen avatar
Written by Isaac Bowen
Updated over a week ago