[eluser]dazamate[/eluser]
Code:
$return = $this->cart->insert($item);
This is just some stray code left behind, I just wanted to see what value that was being returned after the item was added. I do nothing with the $return value now, I just printed it before.
$this->cart->contents() is meant to return the carts contents...
I've
Code:
print_r($this->cart->contents());
in the Addtocart function to check if the item was added to the cart properly, it is I get the item returned back to me.
Now when I go to the Showcart page and the Showcart function is called I do the same thing. I should get the item returned back to me... but all I am getting is an empty array. Why isn't the cart holding any data?