shopp_category_count()

get a count of all products in the category

shopp_category_count (  $category, $children )

@param int $category (required) the category id
@param bool $children (optional default:false) include the children in the count
@return int number of products in the category

Description

get a count of all products in the category

Example

// get count of products in category 10
$product_count = shopp_category_count(10);

See Also

You must be logged in to post a comment.

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

Skip to toolbar