VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: hayleyv on August 28, 2012, 08:26:55 AM

Title: Extract from cart session loop in a template?
Post by: hayleyv on August 28, 2012, 08:26:55 AM
In my category view template I want to extract item info from the cart to work with.  I can do this to show the cart data:

print_r(unserialize($_SESSION['__vm']['vmcart']))

But how do I step through a loop and extract the product name for example into a variable?

Thanks
Title: Re: Extract from cart session loop in a template?
Post by: hayleyv on September 11, 2012, 11:30:57 AM
Still stuck with this.  Can anyone help?  I just need to be able to pull out something from the cart cookie into a variable.  Thanks in advance.