Revindex Storefront

How to force products from a category

If you have multiple product list modules on different pages and you would like to specialize them to show products from a certain category when no category is being selected, you can do so using a custom display template. SeeDisplay Templates for more information.

  1. Under Configuration > Display templates menu.
  2. Click Add New.
  3. Select "Product List" module control.
  4. Give your template a name (e.g. "CustomCookware").
  5. Look for the following line and enter the desired Category ID in the Value attribute.

    <asp:HiddenField ID="OverrideCategoryIDHiddenField" runat="server" Value="12" />

  6. Save.
  7. Create your special page.
  8. Add the Product List module to your special page.
  9. Under the module's Settings.
  10. Set it to use the custom display template you created.
  11. Select the default checkbox if you like this page to act as the default product list module on your site.
  12. Update.


Powered by Revindex Wiki