Menu Close

Get Support From ShopWired Close

All Systems Are Operational

Subscribe To Updates
Prefer To Live Chat? Chat directly with ShopWired support Available 9.00am to 7.00pm Monday to Friday
11.00am to 5.00pm Saturday
Quickest response time

Send A Message
Response within 24 hours

Menu Close

Menu

Variables, objects and attributes

Objects in Twig contain attributes which output dynamic content on a page. A twig object and attribute combined is often referred to as a variable.

To output a variable it must be wrapped in {{ }}

The product object contains an attribute called title that will output the title/name of the product, i.e. {{ product.title }}.

• There are various types of attributes available, you can read more about them here.

• You can also apply filters to attributes in order to modify the content they output.

• Certain functions will also modify the content outputted by variables.

Certain objects are only available on particular page files (known as views). Other objects, are part of the global object which mean they will output on any view.

All the objects available on our platform, and their attributes, are documented in the Objects section of these help guides.