Search

Contents

Revindex Storefront

Export Print

How to set number of related products

For newer Storefront v11 and above, the related products use the Product Showcase module. You can simply configure the max number of items to display under the module's settings.

For older Storefront, to change the number of related products displayed on the product detail page, you need to create a custom display template for the Product detail module control and edit the PageSize number in your template.

 

  1. Create a custom display template from the Storefront's Configuration > Display templates menu.
     
  2. Select the "Product detail" module control and Add new.
     
  3. Give the new custom display template a name (e.g. CustomProductDetail)
     
  4. Always choose the latest Base display template with the highest version number.
     
  5. Look for the following line and change the PageSize attribute value to the number of products you wish to display:
     
    <asp:DataPager ID="RelatedProductDataPager" runat="server" OnPreRender="RelatedProductDataPager_PreRender" PagedControlID="RelatedProductListView" PageSize="3">
     
  6. Save the display template.
     
  7. Under Configuration > Product detail menu, set the Display template to your newly created custom display template.

Comments

Add comment

Powered by Revindex Wiki