Zen Cart Logo
Forums / General Questions / Accessing attributes in the $_SESSION['cart']

Accessing attributes in the $_SESSION['cart']

Locked

Views: 833

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
23 Oct 2008, 3:25 AM
#1
mapleleaf avatar

mapleleaf

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?