23 Oct 2008, 3:25 AM
New Zenner
- Join Date:
- Oct 2008
- Posts:
- 4
- Plugin Contributions:
- 0
Accessing attributes in the $_SESSION['cart']
I am sure this is a simple syntax thing but i can't seem to get the attributes in the cart.
$test = $_SESSION['cart']->contents[0]['attributes'];
When i echo $test i get nothing.
The cart definitely has one item with 3 attributes. Each attribute has an id and a value(both int).
Any ideas?