shopp_order()

retrieve an order

shopp_order ( $id, $by )

@param int $id the order id, or the transaction id
@param string $by (optional default:id) lookup by 'id', or 'trans'
@return Purchase or false on failure

Description

retrieve an order

Example

Retrieve order by id

// Get order 15
$Purchase = shopp_order ( 15 );

// Set global Purchase context
ShoppPurchase($Purchase);

Retrieve order by transaction id

// Get order by transaction id
$Purchase = shopp_order ( 'QO4N2GHCDZBY32DFU', 'trans' );

// Set global Purchase context
ShoppPurchase($Purchase);

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar