musicmaster Posted December 3, 2012 Share Posted December 3, 2012 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 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