This template is used to render the category page. The main purpose of this page is to list the products within a category, often presented as a grid of images with product titles and prices.
The breadcrumb contains links to the home page and it's parent category if exists.
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li ng-if="category.parent.parent.parent.parent">
<a href="/browse/{{category.parent.parent.parent.parent.alias}}">
{{category.parent.parent.parent.parent.name}}
</a>
</li>
<li ng-if="category.parent.parent.parent">
<a href="/browse/{{category.parent.parent.parent.alias}}">
{{category.parent.parent.parent.name}}
</a>
</li>
<li ng-if="category.parent.parent">
<a href="/browse/{{category.parent.parent.alias}}">{{category.parent.parent.name}}</a>
</li>
<li ng-if="category.parent">
<a href="/browse/{{category.parent.alias}}">{{category.parent.name}}</a>
</li>
<li class="active">{{category.name}}</li>
</ol>
The category title specifies the title or name given to the category.
<h1>{{category.name}}</h1>
Category Image can be accessed by using category
<img ng-src="{{category.image|image}}">
It is used to show a description of the particular category on site to let your customers know about the details category.
{{category.description}}
category.description is available as HTML. So, we can show it by using
Example:
<div ng-bind-html-unsafe="category.description">
Sort buttons are used to change the order of product listing, where customers can choose which criteria they want the products to be listed. So, price-conscious web users may choose to list the products in order of price, from cheapest to most expensive.
<ul data-ng-init="selected='Sort By'">
<li data-ng-click="col='alias';sort(col);selected='Ascending Order'" data-ng-class="{'active':col=='alias'}">
<a href="">{{'Ascending Order'|msTranslate}}</a>
</li>
<li data-ng-click="col='-alias';sort(col);selected='Descending Order'" data-ng-class="{'active':col=='-alias'}">
<a href="">{{'Descending Order'|msTranslate}}</a>
</li>
<li data-ng-click="col='price';sort(col);selected='Price - Low to High'" data-ng-class="{'active':col=='price'}">
<a href="">{{'Price - Low to High'|msTranslate}}</a>
</li>
<li data-ng-click="col='-price';sort(col);selected='Price - High to Low'" data-ng-class="{'active':col=='-price'}">
<a href="">{{'Price - High to Low'|msTranslate}}</a>
</li>
</ul>
This section use Sidebar widget for showing filters on the category page. It can be conditionally hidden or visible by using a variable.
Product grid contains a small image and brief information about the product. For this section, you can use
You can disable the collection from sidebar from design theme. Go to the design section of the design theme. Click on the sidebar option. Uncheck the "Show sidebar collection" checkbox. Save the changes.
Yes, it is possible to hide the sidebar. Go to the design theme section, under "sidebar", uncheck "Show sidebar" checkbox. Save the changes.
Category page size governs the initial number of products that get loaded whenever any category page is triggered. The category page size is inversely proportional to the page load speed. More the number of products to be loaded, more will be the number of requests made to the server. More will be the bandwidth occupied by the page, and thus, speed will be lesser. Try to supply with a page size of 12-20 products.
Yes, you have the option of sidebar alignment in the design theme. The default value is "left". All you need to supply there is the "right" value, as is implicit.
In order to show the category description on storefront, you need to enable the "Show category description" from design theme. To do so, go to Categogy in Design section of design theme and select the show description checkbox.
If the product grid is having an option to add the item to cart then you can directly click on add to cart and see your item in cart summary.
Sort by has 4 options: ascending, descending, low-high & high-low.
You can choose any of the above. Both of them have their own beauty.
You can specify the category page size which shows the number of the product you wish to display on the category page the in design theme. Go to More Variables > Miscellaneous in the Design section. Find and edit category page size.
The sidebar contains various fields like categories, price filter, attributes and collections which you want to display.
When you open any category page then you see the page divided into two setions.The first section on the left hand side is sidebar which contains all the important details of the products which you may required to find the product which you want.