EN IT

Common variables

Variables common to all pages

The following variables can be used on all pages:

Instruction Variable Description
show alternate <link rel="alternate"> element to insert between <head> and </head> to indicate to browsers and search engines the alternate address to use for mobile devices
for banners List of banners
for blogPosts Blog posts
if canChangeLocale Indicates whether the site language or currency can be changed
show canonical <link rel="canonical"> element to insert between <head> and </head> indicating to browsers and search engines the canonical address of the current page
show cartQuantity Number of products in the cart
show cartTotal Cart total
show cartTotalTax Cart total VAT included
show currencies Currencies menu
show customerEmail Customer email, if logged in
show customerFirstName Customer first name, if logged in
show customerLastName Customer last name, if logged in
for departments Main departments and their children
show footnote Footer notes
if hasDepartmentsFilter Indicates whether the current page has the department filter
if hasProducersFilter Indicates whether the current page has the producer filter
if isFirstPage Indicates whether the current page is the first of a pagination. Available only if Paranoid SEO is enabled
if isLoggedIn Indicates whether the customer has logged in
show lang Language code to use as the value of the lang attribute. Available only if Paranoid SEO is enabled
show languages Language flags
show login Login button
show logo Site logo for desktop devices
show logout Logout button
for menus Menus
show metaDescription Meta description to insert between <head> and </head>. Available only if Paranoid SEO is enabled
show metaKeywords Meta keywords to insert between <head> and </head>. Available only if Paranoid SEO is enabled
show metaTags Meta tags to insert between <head> and </head>
for miniCart Mini cart
show mobileLogo Site logo for mobile devices
show page Name of the template HTML page without the extension
show pageNumber Page number when the current page is part of a pagination. Available only if Paranoid SEO is enabled
show pageTitle Page title to insert between <head> and </head>
show poweredBy Reference to the ecommerce platform used
show producerMenu Producer menu
for producers Producers
show search Button to start a product search
show searchDepartment Menu to choose the department to search within
if taxesAreExcluded Indicates whether taxes are excluded in prices
for topSellers Top-selling products

for banners

The banners variable shows banners on the site.

If you want to show, for example, the banners of section 3, write:

<!-- .for banners(3) -->
  <!-- .show banner --> <img src="banner.jpg"> <!-- .end -->
<!-- .end for -->
Instruction Variable Description
show banner Banner; if the image is not present, the alternative text is shown

for blogPosts

Instruction Variable Description
show date Publication date
show smallImage Small image
show summary Summary
show title Title

for menus

The menus variable shows menus on the site.

If you want to show, for example, menu 3, write:

<!-- .for menus(3) -->
  <h3><!-- .show title --> Title <!-- .end --></h3>
  <ul>
    <!-- .for items -->
    <li><!-- .show item --> Item <!-- .end --></li>
    <!-- .end for -->
  </ul>
<!-- .end for -->
Instruction Variable Description
show title Title
for items Menu items

for items

Instruction Variable Description
show item Menu item

topSellers

The topSellers variable displays the top-selling products:

<!-- .for topSellers -->
  <!-- .for products -->
    ...
  <!-- .end -->
<!-- .end -->
Instruction Variable Description
for products List of top-selling products

Generic pages

Generic pages are pages that do not have specific functionality in the site. You can create as many as you want. The provided templates include, for example, the page.html, privacy-policy.html and terms-of-service.html pages.

To manage the title, content, and indexing information directly from the admin, you can use the following variables in addition to those usable on all pages:

Instruction Variable Description
show content Content
show image Image
show title Title