get the order count

shopp_order_count ( $from, $to )

@param mixed $from (optional) mktime or SQL datetime, get purchases after this date/time.
@param mixed $to (optional) mktime or SQL datetime, get purchased before this date/time.
@return int number of orders found


get the order count


count all orders

$count = shopp_order_count();

count all orders since last month

$count = shopp_order_count( strtotime('-1 month'), current_time('timestamp') )

See Also

You must be logged in to post a comment.

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