This tutorial will show you how to change the number of related products on the product page in VirtueMart 3.x. templates.VirtueMart 3.x. How to change number of related products
By default, you’ll see 4 products displayed in the related products block:
In order to change the number of related products on the product page, you need to take the following steps:
Open the templates/themeXXX/html/com_virtuemart/sublayouts/customfieldsrelatedprod.php file using your favorite code editor.
items : 4, itemsDesktop : [1000,3], //5 items between 1000px and 901px itemsDesktopSmall : [900,3], // betweem 900px and 601px itemsTablet: [600,2], //2 items between 600 and 0
Change the number of items for each device type, save changes and upload the customfieldsrelatedprod.php file to the server replacing the old one:
Reload the product page. The number of the related products has been changed:
Feel free to check the detailed video tutorial below:VirtueMart 3.x. How to change number of related products