shopp_last_customer_order()

retrieve the most recent order for a particular customer

shopp_last_customer_order ( $customer )

@param int $customer (required) the customer id to load the order for
@return Purchase object or false on failure

Description

retrieve the most recent order for a particular customer

Example

// set purchase context to most recent order for customer 10
ShoppPurchase(shopp_last_customer_order(10));

// locate and load receipt.php template
// locate_shopp_template ($template_names, $load = false, $require_once = true )
locate_shopp_template ('receipt.php', true, false );

See Also

You must be logged in to post a comment.

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

Skip to toolbar