Totally Zenned
- Join Date:
- Nov 2005
- Location:
- France
- Posts:
- 588
- Plugin Contributions:
- 1
Need to extract data from the shopping cart contents
Hi,
I'm working on a mod and i need to extract some data from the array that is passed to the shopping cart.
If i use $products = $_SESSION['cart']->get_products(); and then check the contents using print_r then i can see that the field i need is present, but i don't seem to be able to extract the exact data required.
I need to be able to compare the ['id] field with some data from another query.
What is the best way to get the ['id'] field data for comparison?
Thanks for any advice.
Steve
Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions