Jump to content

How to get a cart


musicmaster

Recommended Posts

I am adapting the code for my product pages and I want to add to the cart. Now if I look in ProductController.php there is a global variable $cart that I can use. However, when a visitor is just browsing this variable is zero. It only gets a value when something is added to the cart.

 

My question is: if the cart is zero (= it doesn't exist) how can I create a cart?

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