Hi,
Note: The procedure is exactly the same for Virtuemart3.x and Virtuemart 2.x
As you might know, CleanMart comes a feature of showing more than 1 product thumbnails in the category browse page.
But there is small patch that should be applied to Virtuemart Core file in order to achieve this. Don't worry, this is not a Core Hack, it is an innocent customization.
1- Open this PHP file:
/component/com_virtuemart/views/category/view.html.php
2- Based on your Virtuemart version, apply the following coding patch:
For VM3.0.14+:
find:
$imgAmount = VmConfig::get('prodimg_browse',1);
replace with:
$imgAmount = VmConfig::get('prodimg_browse');
For VM3.0.12+:
find:
$productModel->addImages($this->products, VmConfig::get('prodimg_browse',1) );
replace with:
$productModel->addImages($this->products);
For VM3.0.0 - VM3.0.10:
find:
$productModel->addImages($this->products,1);
replace with:
$productModel->addImages($this->products);
For VM2.x:
find:
$productModel->addImages($products,1);
replace with:
$productModel->addImages($products);
And that's it. You are all set.
From now on, all the additional product pictures will be visible in the category browse page.
You might also consider to change that number "1" to "3" or "5" instead of completely eliminating, so... that many product pictures will be visible only. For instance, if some of your product has 10 additional pictures, it would make sense to make that number 4 or 5, so there won't be any layout corruption in the browse page.
Every time you update Vrtuemart to a newer version, you need to apply this patch manually (each time) because your change would get back to stock once you update your Virtuemart.
Regards.