Share » Forums » General » Checking if a product is in an order ?

Checking if a product is in an order ?

Checking if a product is in an order ?

Wednesday 17 January 2007 1:40:59 am - 2 replies

Author Message

Eirik Alfstad Johansen

Thursday 18 January 2007 9:30:45 am

Hi Martin,

To fetch order:

$order = eZOrder::fetch( $OrderID );

Products in order:

$items = $order->productItems();

Remember to include kernel/classes/ezorder.php

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

H-Works Agency

Thursday 18 January 2007 9:36:00 am

Thanx a lot for your help.

What if i have no orderID ?

Do i have to fetch all orderIDS then check products in those orders ?

Martin

EZP is Great

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu