retrieve the most recent order

shopp_last_order ()

@return Purchase object or false on failure


retrieve the most recent order


// Set the global Purchase object to the last order
ShoppPurchase( shopp_last_order() );

// 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.