Skip to main content
Skip table of contents

WebShop: Add message to all pages

Purpose and scope

To demonstrate how you can add a marketing banner to the top of each page in WebShop

Watch

More information

<add a sentence or two here>

Key points

  • If you are comfortable with HTML, CSS and variables, you’ll be in a good place to use this feature to achieve a personalized look and feel for your WebShop.

  • You are responsible for ensuring that the code you have written doesn’t adversely affect your WebShop.

Recipe

To inform all visitors to WebShop about your quantity-based pricing:

  1. Open Templates in the Management Interface. This opens the Templates Editor.

  2. Navigate to Templates->System and select “login.twig”. This opens the existing twig code under the EDITOR tab.

  3. Add the following code, which uses available variables to personalize the message if you customer is logged into their Webshop account.

  4. Select Save to save your changes.

Twig code to add information to the top of all WebShop pages

CODE
<h3>Additional savings are available for bulk purchases, {{customer.Name}}.</h3>
<p>We offer quantity-based pricing on select products. <a href="">Learn more</a></p>

Related content

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.