[eluser]fnbhns[/eluser]
Dear All, I have a project, which is working nicely in the main folder also showing the CART value in sidebar. But I puted the same project in Sub-Folder, Its not showing the value from CART' in Sidebar view.
In controller there is a function with CART
Code:
add_items() {
.......
......
$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
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 fine.
in the VIEW
Code:
$this->cart->contents();
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?
Highly expecting your kind advices and comments. Thanking you in Advance.