News:

Support the VirtueMart project and become a member

Main Menu

Featured Product Description

Started by krumz, February 17, 2013, 01:30:16 AM

Previous topic - Next topic

krumz

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.

krumz

#1
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.


olgri

#2
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

krumz

#3
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. 

olgri

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;}

olgri

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!  ;)