VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: roman5527 on November 23, 2015, 20:55:00 PM

Title: Related roducts
Post by: roman5527 on November 23, 2015, 20:55:00 PM
Hi, how i remove product title from related products ? thanks
Title: Re: Related roducts
Post by: jenkinhill on November 24, 2015, 00:17:20 AM
In the add to cart [popup? Or on the product details page?

http://forum.virtuemart.net/index.php?topic=128401.0

Title: Re: Related roducts
Post by: roman5527 on November 24, 2015, 14:01:47 PM
Joomla : 3.4.5
VM : 3.0.12

on product detail page . thanks
Title: Re: Related roducts
Post by: jenkinhill on November 24, 2015, 15:28:40 PM
You can do that using template overrides, but easiest way is to use a css override.  You can work this out using Firebug  http://forum.virtuemart.net/index.php?topic=116620.0

In VM default template it could be something like   .product-fields-title-wrapper  {display:none;}     (not tested!).
Title: Re: Related roducts
Post by: SnakeFFM on November 24, 2015, 15:29:03 PM
you could do it with 1-2 maybe 3 simple lines of css... just by { display: none; }

Use firebug to get the right element...if you dont know firebug, you should get used to it, as you ll always need it..
Title: Re: Related roducts
Post by: SnakeFFM on November 24, 2015, 15:29:34 PM
Kelvyn is too fast, too furious  8)
Title: Re: Related roducts
Post by: roman5527 on November 24, 2015, 18:43:57 PM
Hi, product title in relative product dint have tag or class. you can see img.
Title: Re: Related roducts
Post by: jenkinhill on November 24, 2015, 18:55:58 PM
That is a commercial template using its own overrides, so you may have to edit the overrides to add a class - or ask the template developer. 
http://forum.virtuemart.net/index.php?topic=108212.0
Title: Re: Related roducts
Post by: roman5527 on November 24, 2015, 19:40:42 PM
Hi, yes this is commercial template.

I see file in template/html/com_virtuemart/sublayout/

this is code : <span class="product-field-display"><?php echo $field->display ?></span>

you can see img.

When I found what does mean $field->display and where i find code which is defined  <?php echo $field->display ?>


thnanks
Title: Re: Related roducts
Post by: roman5527 on November 24, 2015, 19:41:13 PM
img