perch_shop_products_by_category()
This add-on is deprecated. Please use the Perch Shop app.
Get a list of products by category using the perch_shop_products_by_category()
function.
Requires
- Perch Shop FoxyCart installed
Parameters
Type | Description |
---|---|
String | Category slug |
Integer | Number of items to return |
Usage examples
Retrieve 10 products from the category with a slug of ‘accessories’.
<?php perch_shop_products_by_category('accessories', 10); ?>