Category.php template file

From Shopp Documentation

Jump to: navigation, search

This article is marked as in need of review and editing. You can help make Shopp's documentation better by editing it.

The category.php template is responsible for how products are displayed when viewing a category. Categories make up the basic building block of a store's catalog. Like products in a department store, products are grouped and organized by categories within your store's catalog.

The category.php template uses mostly Category Tags. However, it also uses Product Tags within the product loop to display product information.

Distinct Category Templates

Create distinct category templates for a specific category by copying the generic category.php template to use as a starting point. Simply make a copy of the category.php template and re-name the copy to a format that includes a category identifier:

category-id.php
Replace id with the category id number.
category-slug.php
Replace slug with your custom category slug
category-new.php
Custom template for New Products smart category
category-catalog.php
Custom template for the Catalog Products smart category
category-new.php
Custom template for the New Products smart category
category-featured.php
Custom template for the Featured Products smart category
category-onsale.php
Custom template for the On Sale Products smart category
category-bestsellers.php
Custom template for the Bestseller Products smart category
category-search-results.php
Custom template for the Search Results smart category
category-tag.php
Custom template for the Tag Products smart category
category-related.php
Custom template for the Related Products smart category
category-random.php
Custom template for the Random Products smart category