shopp_recent_orders()

load orders for a specified time range in the past

shopp_recent_orders ( $time, $period )

@param int $time number of time units (period) to go back
@param string $period the time period, can be days, weeks, months, years.
@return array of Purchase objects

Description

load orders for a specified time range in the past

Examples

orders from last day

$orders = shopp_recent_orders( 1, 'day' );

orders from last 2 weeks

$orders = shopp_recent_orders( 2, 'weeks' );

orders from last 3 months

$orders = shopp_recent_orders( 3, 'months' );

orders from last 4 years

$orders = shopp_recent_orders( 4, 'years' );

See Also

You must be logged in to post a comment.

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

Skip to toolbar