Revindex Storefront

How to force product

If you like to display a single product somewhere on a special page (e.g. you have a special landing page that needs to show a single product that you sell), you can do so using a custom display template. See Display Templates for more information.

  1. Under Configuration > Display templates menu.
  2. Click Add New.
  3. Select "Product Detail" module control.
  4. Give your template a name (e.g. "AsSeenOnTV").
  5. Look for the following line and enter the desired Product ID and optionally the Product Variant ID if you have more than one variant in their respective Value attribute.

    <asp:HiddenField ID="OverrideProductIDHiddenField" runat="server" Value="9" />
    <asp:HiddenField ID="ProductVariantIDHiddenField" runat="server" Value="12" />

  6. Save.
  7. Create your special page.
  8. Add the Product Detail 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 detail module on your site.
  12. Update.


Powered by Revindex Wiki