Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - StyleMart (SKU# FLEX-00018)

TOPIC: Tutorial 2: Multiple Thumbnails in Category

Tutorial 2: Multiple Thumbnails in Category 7 years 7 months ago #9545

Hi,

As you might know, StyleMart 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 extremely innocent change.

This patch comes with the QuickStart Package already, but in case, you perform a Virtuemart Update (through VM Admin panel) or you install the StyleMart One-By One method, this patch will be missing.

So you should do it manually. Don't forget!! Every time you update your virtuemart to a newer version, you need to apply this patch manually each time. Otherwise, only 1 product picture will be visible in the category browse page.

Open this PHP file:
/component/com_virtuemart/views/category/view.html.php

Look at the 117th line (on VM2.0.26) and find this line:
$productModel->addImages($products,1);

And replace it with this:
$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 in the category browse page. 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.

Regards.
The administrator has disabled public write access.
Time to create page: 0.161 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo