Liqiud basics
Modules
API
Mailer
Product editables
On this page
Overview
In a product page we have access to product editables:
{{ 'main' | product_editable }}
A product can have multiple editables but the name cannot be the same. It's used as a unique identifier.
You can add a class to an editable, use following:
{{ 'main' | product_editable: class: 'my-class' }}
If you want to create an editable and specify the type, use:
{{ 'main' | product_editable: type: 'p' }}
You can check if an editable has content or not using:
It will return either true or false
{{ 'main' | has_product_editable }}
{{ 'main' | product_editable_if_has }}Updated: 2020-10-20