Jump to content

how to display the number of items in a cart in the header


Recommended Posts

Hi, I'm using a theme called Griffon Shop in prestashop 1.6 which has a shopping cart icon in the header. I would like it to display a digit next to the icon which shows the number of items currently in the cart. From what I can tell, the default prestashop theme already does this and have found that adding 

{$cart_qties}

somewhere will do the trick. However, I donn't know where I need to add it.

I would be really grateful if someone could advise.

Many thanks!

Link to comment
Share on other sites

  • 3 weeks later...

Hi. I've just noticed that adding 

{$cart_qties}

to the blockpcart.tpl file works but ONLY when the page is reloaded after adding a product to the cart. Is there a way of making it update instantly? It seems to update immediately after removing the product from the cart ok.

Many thanks

Edited by Mja388
I've noticed it doesn't update automatically for the 1st item added to the cart but works ok afterwards. Any ideas? (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...