shop:category
The shop:category action is designed for creating product category pages. The action loads a category object by a category URL name specified in the page URL. Please refer to the Creating the Category Page article for examples of the action usage.
Generated PHP variables
- $category - an object of the Shop_Category class. Use this object to display a list of category products and the category name and description. This variable can be NULL if a category, specified in the URL, was not found. Always check whether the $category variable is not NULL and display the "Category not found" message instead of the normal category page.
- $category_url_name – contains a requested category URL name. This variable exists only if a requested category was found.
See also:
Next: shop:change_password
Previous: shop:cart
Return to Reference

