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:
Open Templates in the Management Interface. This opens the Templates Editor.
Navigate to Templates->System and select “login.twig”. This opens the existing twig code under the EDITOR tab.
Add the following code, which uses available variables to personalize the message if you customer is logged into their Webshop account.
Select Save to save your changes.
Twig code to add information to the top of all WebShop pages
<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>