VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: creotom on March 07, 2012, 10:19:10 AM

Title: How to remove or prevent "vm-img-desc" from showing on product details page
Post by: creotom on March 07, 2012, 10:19:10 AM
Hi all.
I'm really hoping someone here can help me. I'm pretty sure its simple but for the life of me I cant figure it out on my own.

I'm using joomla 2.5.2 and Virtuemart 2.0.2.
I am populating all of my categories by importing the details from a csv file using CSVI. This is working really well for me and makes it very simple to manage pricing.

The problem is that the image filename is showing under the main image in the product details page.
For example: "product_image_1.jpg" is displayed under the main image.

I would like to know what code to comment out to prevent the "vm-img-desc" field from showing.

I have used firebug and can find the css that describes it but I believe it is a php file that will need to be modified to remove it.
I have searched the folder using dreamweaver and can find no mention of it.

As you can tell I have only a rudimentary knowledge of all the languages so I would really appreciate some assistance with this.
beyond this I believe I can live with the vanilla install of everything I have so far.

Thanks in advance....
Title: Re: How to remove or prevent "vm-img-desc" from showing on product details page
Post by: Toksa on March 08, 2012, 19:42:40 PM
Add this into your template's css file

.vm-img-desc { display: none; }
Title: Re: How to remove or prevent "vm-img-desc" from showing on product details page
Post by: creotom on March 08, 2012, 19:44:25 PM
Thanks a million!
Title: Re: How to remove or prevent "vm-img-desc" from showing on product details page
Post by: Bruce Morgan on March 08, 2012, 19:55:09 PM
Is there way to make this an override in the tmpl folder?  If so I would like to do this and would need exact instructions how to do this.  Thanks

Bruce
Title: Re: How to remove or prevent "vm-img-desc" from showing on product details page
Post by: PRO on March 08, 2012, 20:02:50 PM
default_images.php    does not have the "desc" code.

So, you are using outdated templates.
http://forum.virtuemart.net/index.php?topic=98505.0
Title: Re: How to remove or prevent "vm-img-desc" from showing on product details page
Post by: sviatoy on August 27, 2012, 16:37:50 PM
\administrator\components\com_virtuemart\helpers\mediahandler.php

comment or delete this:
if ($withDesc) $desc='<span class="vm-img-desc">'.$withDesc.'</span>';
else $desc='';


VM2 v.2.0.10
Title: Re: How to remove or prevent "vm-img-desc" from showing on product details page
Post by: megatronx64 on September 08, 2012, 00:11:13 AM

Toksa: Add this into your template's css file:
.vm-img-desc { display: none; }


worked for me!

VM2 v2.0.10 + Joomla 2.5.6

Thank you!
Title: Re: How to remove or prevent "vm-img-desc" from showing on product details page
Post by: hansspiess on September 12, 2012, 09:20:15 AM
the 5th argument of $image->displayMediaThumb() determines wether or not to show the img description, so

Code (default_images.php) Select
echo $image->displayMediaThumb(array ('itemprop' => 'image', 'class'  => 'product-image' ), true, 'class="modal"', true, false);

should output the image without description, and

Code (default_images.php) Select
echo $image->displayMediaThumb(array ('itemprop' => 'image', 'class'  => 'product-image' ), true, 'class="modal"', true, true);

gives us the image with description.