Global objects can be accessed from any file or view in your theme.
The attributes of the theme.settings object are as defined in the theme settings file.
This is a required object that must be present in master.twig. It must be placed within the HTML <head> tag and dynamically loads all the required meta tags for a page and any other scripts or tags entered into the account (such as the visitor tracking scripts).
Similar to the global.header object, this is a required object that must be present in master.twig. It should be placed immediately before the closing </body> tag of the document and loads scripts and other code entered into the account (such as the live chat script).
Returns the total (currency) value of products in the visitor's shopping basket.
Returns the total number of items in the visitor's shopping basket.
Returns the ID of the shipping rate selected by the customer (if one has been selected).
Returns the ID of the shiping country selected by the customer (if one has been selected).
Returns the total number of items in the visitor's wishlist.
Returns the URL of the current page.
Returns the path of the current page.
The business object has a range of attributes for different details about the account, e.g. the logo URL. View more details here.
The customer object has a range of attributes relating to a visitor (if they are logged into a customer account). View more details here.
The currencies object is detailed here.
The categories object is detailed here.
The link object has the following attributes in the global.social_links array:
Returns the name of the social media link, e.g. googleplus.
Returns the URL of the social media link as entered in the account.
Returns the title of the social media link, e.g. Google+.
Returns the platform generated message when a certain action is performed on the website. For example completing the contact form will output the message "Thank you for your enquiry - we will respond to you as soon as possible".
Returns the ID of the currency currently selected by the website visitor.
Returns true if the soft add to basket app is activated.
featured categories and products
Returns an array of categories chosen as featured categories.
Returns an array of products chosen as featured products.
Returns an array of random products. There is a platform limit of 100 products that can be returned.