Extension list

yootheme

ecommerce

joomla

Skip to main content

List of all our extensions

Create an account

Second image of VirtueMart as hover image

Second image of VirtueMart as hover image was created by keep2000

Posted 8 months 1 week ago #738
Hello, everyone!I love the new "Show Image on Hover" feature for Grid Pro. I use this element to display a VirtueMart category page with VMuikitX as the source.My question is: is it possible to set the second image of a product as the hover image?

Please Log in or Create an account to join the conversation.

Replied by JProStudio on topic Second image of VirtueMart as hover image

Posted 8 months 1 week ago #741
Hi
   We will look into this and, if possible, implement it in our next version release. Thank you

For urgent help please create a support ticket extensions.joomlapro.com/support/tickets

Please Log in or Create an account to join the conversation.

Replied by JProStudio on topic Second image of VirtueMart as hover image

Posted 8 months 6 days ago #742
To display a second image of the product on the VirtueMart category page, it is necessary to modify the default virtuemart core code. However, modifying core code is generally not a good practice as it can lead to issues during updates and maintenance.

By default, VirtueMart only displays one product image on the category page. To enable the display of multiple images, you need to:

1.Open the file \components\com_virtuemart\views\category\view.html.php.
2.Locate the line:

$imgAmount = VmConfig::get('prodimg_browse', 1);

1.Change it to:

$imgAmount = VmConfig::get('prodimg_browse', X);

where X is the number of images you want to display.

For urgent help please create a support ticket extensions.joomlapro.com/support/tickets

Please Log in or Create an account to join the conversation.

Replied by keep2000 on topic Second image of VirtueMart as hover image

Posted 8 months 6 days ago #743
Hello,
Great news about the source for the product gallery, thank you!

You also shouldn’t need to modify the code, as there is a hidden VirtueMart (VM) configuration for that:
www.jooglies.com/en/tutorials/virtuemart...hidden-configuration .
You only need to add prodimg_browse=2 there and save the VM configuration in the backend.

I can build my category page using a dynamically multiplied column.

Maybe a question: Would it be possible to assign the first image to Grid Pro's Image1 and the second image to Image2?I have only one image as dynamic field. Maybe a "sub-option" to select which image should be used?

Please Log in or Create an account to join the conversation.

Replied by JProStudio on topic Second image of VirtueMart as hover image

Posted 8 months 6 days ago #746
Hi
Thanks for your information. We tried adding prodimg_browse=2 in the VM configuration file in Joomla 5.2.2 and VM 4.4.0 11095, but it did not work; the category page still displays only one product image. If you have found it working on your site, please provide access to that site. We will then add an option for selecting images in the product image dynamic content source. Thank you

For urgent help please create a support ticket extensions.joomlapro.com/support/tickets
Last Edit:8 months 6 days ago by JProStudio
Last edit: 8 months 6 days ago by JProStudio.

Please Log in or Create an account to join the conversation.

Time to create page: 0.502 seconds
Powered by Kunena Forum