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

TOPIC: After VM Update 2: Multiple Thumbs. in Category

After VM Update 2: Multiple Thumbs. in Category 10 years 10 months ago #4543

Hi,

As you might know, LightMart 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 LightMart 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 119th 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.
Last Edit: 10 years 3 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.133 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