Hello everyone,
I am a newbie to Prestashop and website programming so the slightest detail will be useful.
1- I am trying to use the variable $cart in the main header template to display the total number of items in cart, but it's only working when I am in the shopping cart page.
<span id="itemsCount">{$cart.summary_string}</span>
why is that and how to solve it?
2- I designed the website, upto html and css, to have a cart that is available on all pages in which customers can edit anytime anywhere.
How to connect it to the $cart in which any update will take effect? Also, should I put the code of this "global cart" in the header in order to have it appear in all pages?
Please find attached images that demonstrate what I am trying to accomplish.
Any comments are appreciated.
Regards,
Ahmad