This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

categories Twig filter

Defined in /modules/shop/classes/shop_twigextension.php, lines 93-93
Author LemonStand eCommerce Inc.
Db_DataCollection function categories(mixed $source, string $sort_order='front_end_sort_order')
$source mixed specifies a parent category. If a string or any other value specified, returns root categories. If the value is null, returns an empty collection.
$sort_order string specifies the sorting order for categories. With the default value the filter returns categories in the order specified in the back-end.
{return} Db_DataCollection returns a collection of categories.
Returns root categories or subcategories of a specific category. Use this filter to fetch categories and display a category hierarchy. Example:
{% set categories = parent_category is defined ? parent_category|categories : 'root'|categories %}*