Objects

The very heart of Liquid is the object model. The shop system passes all kinds of information to the templates, which then can make use of the data to create web pages containing all necessary information. The shop system provides variables (with a specific name) that can be accessed via the {{ … }} operator. The expression within these brackets will be evaluated, and the placeholder replaced with the given result. If the expression holds an error, nothing will be outputted, unless the debug environment is enabled in the admin interface (in that case a hopefully helpful error description occurs in the place of the placeholder).

The shop system provides quite some variables on default for every page. Also, there are some additional variables available when a specific template is rendered (e.g. on the product page there exists an additional collection which contains recommended other products, depending on the current product).

Read more