Showing products on the site
You can control which products are displayed on the site, and how they are presented.
Which products are shown on different web sites?
You define which products are to be shown on different web sites by a setting in the product itself.
Showing product information on the website
There are a number of page types that can be used to display products.
- Product page: Shows a single product.
- Product list page: Shows products from a given product list.
- Category page: Shows information about the category itself, and lists the products in it.
- Section pages: There are several section pages that can be used to promote products.
WebForms or MVC?
You can use both WebForms and MVC to display products and categories in the online store.
WebForms: display template and .aspx files
If you use WebForms, the rendering of products and categories is handled by an .aspx file. Each field template can have one display template specified, and each display template can point out one .aspx file per web site.
MVC: action and controller
If you use MVC, the rendering of products and categories is handled by actions and controllers. Each field template can have one display template specified, and each display template can point out one action and one controller per web site.
To display products in the website, a page should be created of type IProductCatalogPage. This article explains creating the product catalog page both using back-office and also programmatically.
When using a product catalog page, the products are displayed using the display template specified in the product catalog module for the product field template. This article explains the relationship between articles, product groups, its field templates and display templates.