mbajur Posted October 7, 2010 Share Posted October 7, 2010 Hello,I have a small problem - i need to display a products-in-a-basket count but i have no idea how can i access any variable or array that stores information about products in a basket. Does anyone have any idea how can i achieve that ? The important thing is that i don't want to display it as a block or anything. I need to make it in header tpl fileThanks in advance,Mike Link to comment Share on other sites More sharing options...
Martin Velikov Posted October 7, 2010 Share Posted October 7, 2010 This is included in the standard presta shop functionality. I am not sure what changes you have made but by default you will have information about the products in the current cart next to the account name.It is called in the top module using this code: Welcome, Log in Cart: 3productproducts 1 558,00 € (empty) Your Account *Deleted website specific URL from the code.Hope that helps Link to comment Share on other sites More sharing options...
mbajur Posted October 7, 2010 Author Share Posted October 7, 2010 thanks for your reply!well, i'm afraid it's not what i'm searching for. This looks like ajax based. I'm looking for a variable or array which i can acces from smarty tags or with php between {php}{/php} in template files. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now