VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jimleeder123 on January 29, 2016, 21:18:38 PM

Title: Show full image instead of thumbnail for products
Post by: jimleeder123 on January 29, 2016, 21:18:38 PM
Using Joomla 3.5 and latest VM 3.0.12.

How can I show the full product image instead of the thumbnail? I use the same size for both, so will cut a lot of crap and time out if I can just upload once for each product every time. Every time I edit the product the thumbnail gets deleted/reset and so the image dies.

I imagine its a line of code somewhere to edit. Any help appreciated.
Title: Re: Show full image instead of thumbnail for products
Post by: VMTemplates.net on January 30, 2016, 08:25:11 AM
Hi,

try this:
echo $product->images[0]->displayMediaThumb ('class="someCSSclass" border="0"', FALSE);

It generates a path to an original image stored in ./images/stories/virtuemart/product
Title: Re: Show full image instead of thumbnail for products
Post by: jimleeder123 on January 30, 2016, 12:26:31 PM
On what file please?
Title: Re: Show full image instead of thumbnail for products
Post by: VMTemplates.net on January 31, 2016, 10:24:26 AM
It works for me in override done for mod_virtuemart_product in ./html/mod_virtuemart-product/single.php and default.php or category view ./html/com_virtuemart/category/default.php
Is there any other place you want to use it?