How to create notification bar
Read this guide carefully, you have to follow all steps described below. What we will do? We will modify 3 files: header.tpl (your theme file), ajax-cart.js file (a part of blockcart module) and your store global stylesheet file (global.css). So, we can start, let's go
1. header.tpl file modification
In this step we have to define "Product successfully added to cart" message. We must give possibility to translate this message due to the fact, that today many of stores uses many languages. In this case in header.tpl file located in your theme directory add this simple code:
to the script with javascript variables definition, like i show below:
Read this guide carefully, you have to follow all steps described below. What we will do? We will modify 3 files: header.tpl (your theme file), ajax-cart.js file (a part of blockcart module) and your store global stylesheet file (global.css). So, we can start, let's go
1. header.tpl file modification
In this step we have to define "Product successfully added to cart" message. We must give possibility to translate this message due to the fact, that today many of stores uses many languages. In this case in header.tpl file located in your theme directory add this simple code:
1 | var addtocartconfirmation = '{l s='Product successfully added to cart'}'; |