How to change number of related products on product pages in Shopify

How to change number of related products on product pages in Shopify

  1. Log into your admin panel of Shopify store.
  2. Navigate to Online store tab.

     

  3. Choose Themes tab.

     

  4. On the appeared screen click the “…” button and choose Edit HTML/CSS button.

     

  5. Scroll to Snippet folder and find widget-related-products.liquid and open to edit it.

     

  6. Find the following line at the beginning of the file:
    {% assign number_of_related_products_to_show = 4 %}
  7. Change 4 to the desired number of related products that you want to display.

     

  8. Click Save button to save changes.

     

  9. Refresh your product page to see changes.

Was this article helpful?

Related Articles

Leave A Comment?