shopp_order_count()

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

Description

get the order count

Example

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.

Skip to toolbar