VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: krumz on February 17, 2013, 01:30:16 AM

Title: Featured Product Description
Post by: krumz on February 17, 2013, 01:30:16 AM
Hello all,

I am using the Featured Product module on various pages of my website. When I had the site offline, the Product Name was not showing (I liked that). Now that I am testing a little further and have made the site live - the Product Name is now showing.

My question - how do I get rid of the product name, i don't want it to show. I'm hoping it's a selection I'm just not seeing instead of having to change the code.

Here's my website if you need to see what I'm talking about.
http://www.pursesonalitys.com/

Thanks.
Title: Re: Featured Product Description
Post by: krumz on February 17, 2013, 18:03:57 PM
Any takers? I am using Joomla 2.5.9. Virtuemart 2.0.18a and PHP 5.2.17. I am using a Joomlart template and the position is VM - Product.

Title: Re: Featured Product Description
Post by: olgri on February 18, 2013, 09:48:28 AM
Do you use default VirtueMart Products module or a third-party one?

If default one, you'll have to modify code using template overrides. Create a folder called 'mod_virtuemart_product' under yourtemplate/html and copy default.php from modules/mod_virtuemart_product/tmpl to the folder you have created earlier. Comment out or delete the following code on line 33:

<h3><a href="<?php echo $url ?>"><?php echo $product->product_name ?></a></h3>

Hope this helps
Title: Re: Featured Product Description
Post by: krumz on February 19, 2013, 00:13:09 AM
Hello olgri

I am using default products, I tried your suggestion but it did not work, I get a syntax error message.

I think this is getting me closer though.

To make things easier on myself, I've embraced the fact the product name is there. 
Title: Re: Featured Product Description
Post by: olgri on February 20, 2013, 11:07:40 AM
I have updated the code in the post above - worked for me (Joomla 2.5.9 & VM 2.0.18a).

another solution can be CSS modification. Add the following to your template css file:

.featured-view .spacer h3 {display:none;}
Title: Re: Featured Product Description
Post by: olgri on February 20, 2013, 19:18:07 PM
oh... actually.... none of the code above will work on your website, sorry  :(
but if you could post your modules/mod_virtuemart_product/tmpl/default.php file contents here, I might be able to tell you what needs to be modified to make it work.

PS: cute bags!  ;)