News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Disable Images on Product Details

Started by turkish74, November 05, 2012, 10:07:59 AM

Previous topic - Next topic

turkish74

Hi all

I trying to disable the images in the product details view. I read http://forum.virtuemart.net/index.php?topic=90935.0 but i coudnt find a hint to disable the images.
Which files i have to modify?

Cheers

bytelord

Hello,

Please make an override for the file default.php file for product details. This file is located under
your_joomla_folder\components\com_virtuemart\views\productdetails\tmpl\default.php
Copy that file under: your_joomla_folder\templates\your_joomla_folder\html\com_virtuemart\productdetails\default.php
if the folders com_virtuemart and productdetails does not exist, you create them.

Now, edit the file default.php in out new location. Around line 147 you will find the following code
<?php
echo $this->loadTemplate('images');
?>


So, comment out that line ... like

<?php
//echo $this->loadTemplate('images');
?>


So, the template that is responsible to show the images will not load.

Some more information regarding template system and template overrides:
Template overrides: http://forum.virtuemart.net/index.php?topic=98505.0
Template System: https://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
Using firebug to examine your code & css styling: http://forum.virtuemart.net/index.php?topic=102850.0

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!