Jump to content

How to get product list


Recommended Posts

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 file

Thanks in advance,
Mike

Link to comment
Share on other sites

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

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

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...