News:

Support the VirtueMart project and become a member

Main Menu

[Solved] Main image appears twice

Started by Benjamin, November 04, 2013, 16:31:05 PM

Previous topic - Next topic

Benjamin

Hello!

As you can see on this link : http://www.theobald-trucks.com/index.php/vehicules-occasion/tracteurs/volvofh480-detail
the main product image appears twice (Once big, once small).

Can you tell me how can I delete the little one of my product page?

Thank you

jenkinhill

I use a template override to not show the main image as a thumb. Edit components/com_virtuemart/views/productdetails/tmpl/default_images.php as follows:

Find

<?php
for ($i 0$i $count_images$i++) {
$image $this->product->images[$i];
?>



Replace with

<?php
for ($i 1$i $count_images$i++) {
$image $this->product->images[$i];
?>



and use the edited file as a template override.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Benjamin

That's perfect, it's working!

Thank you!