Forums / All Other Contributions/Addons / Need to extract data from the shopping cart contents

Need to extract data from the shopping cart contents

Locked

Views: 838

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
30 Sep 2008, 7:30 PM
#1
strelitzia avatar

strelitzia

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

1 Oct 2008, 10:04 AM
#2
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Need to extract data from the shopping cart contents

I've found a solution to this problem.

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions