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

TOPIC: Tutorial 2: Multiple Thumbnails in Category

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

Hi,

As you might know, our templates come 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 template via 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

For VM3.x,
Look for this line:
$imgAmount = VmConfig::get('prodimg_browse',1);

replace it with this:
$imgAmount = VmConfig::get('prodimg_browse',5);


For VM2.x,
Look for this line:
$productModel->addImages($products,1);

replace it with this:
$productModel->addImages($products,5);

And that's it. You are all set. From now on, 5 additional product pictures will be visible in the category browse page.
You might also consider to change the number "1" to "3" or "4", 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 makes sense to make that number 4 or 5, so there won't be any layout corruption in the browse page.

Regards.
Last Edit: 5 years 7 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.192 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