ShoppPurchase()

get and set the global Purchase object

ShoppPurchase ( $Object )

@param Purchase (optional) $Object the Catalog object to set to the global context.
@return mixed if the global Purchase context isn't set, bool false will be returned, otherwise the global Purchase object will be returned

Description

get and set the global Purchase object

Example

// set the purchase to order 1
ShoppPurchase(shopp_order(1));
// get the current purchase, if applicable
$Purchase = ShoppPurchase();

See Also

You must be logged in to post a comment.

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

Skip to toolbar