How do I extract or get the value from the shoppingCart object in osCommerce? I want to display the cart contents on home page so I printed the current session to get the below:
shoppingCart Object
(
[contents] => Array
(
[32] => Array
(
[qty] => 1
)
[26] => Array
(
[qty] => 2
)
)
[total] => 2960
[weight] => 0
[cartID] => 29022
[content_type] =>
)
From this I want to retrieve the values from the contents
array. i.e.: 32 qty, 26 qty and total, but I don't know how to because it's using a "shoppingCart Object".