VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: cihancomcom on May 09, 2017, 13:20:02 PM

Title: Removing image area from all product pages
Post by: cihancomcom on May 09, 2017, 13:20:02 PM
How can I completely remove the Product Image section from all of my product pages.

When I delete these DIV's within Developer Tools the page displays perfect:

<img id="vm_display_image" src="/components/com_virtuemart/assets/images/vmgeneral/noimage.gif" alt="No image set ">

*Joomla! 3.7.0 / VirtueMart 3.2.1 / Php 7

Any help would be great!
Title: Re: Removing image area from all product pages
Post by: K&K media production on May 09, 2017, 17:19:15 PM
Make a simple template override for default.php of productdetails or edit the file if you have a existing override.
components/com_virtuemart/views/productdetails/tmpl/default.php

Find this line and delete it or disable it with two //
echo $this->loadTemplate('images');

and the same for this line
echo $this->loadTemplate('images_additional');
Title: Re: Removing image area from all product pages
Post by: cihancomcom on May 31, 2017, 12:57:33 PM
I did and I selected the new Product layout t Configuration->Templates->Templates and Layouts->Product layout

Didn't work. is there anything else I should do?

Thanks.
Title: Re: Removing image area from all product pages
Post by: cihancomcom on May 31, 2017, 13:02:59 PM
Sorry you are right. It doesnt look on pruduct view but looks on the modules.