shopp_order_line_count()

get the purchase line-item count for an order

shopp_order_line_count ( $order )

@param int $order the order id
@return int the number of line items

Description

get the purchase line-item count for an order

Example

// check to see if more than 1 item on order 15
if ( 1 < shopp_order_line_count(15) ) {
    // do something
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar