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

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

After VM Update 2: Multiple Thumbs. in Category 7 years 4 months ago #3626

Hi,

As you might know, DarkMArt 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 DarkMart 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 174th line and find this line:
$productModel->addImages($products,1);

And replace it with this (delete only ,1 at the end):
$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: 6 years 10 months ago by Support.
The topic has been locked.
Time to create page: 0.396 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