VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: DH on September 13, 2012, 21:32:15 PM

Title: How to remove "product details" button in the product layout page?
Post by: DH on September 13, 2012, 21:32:15 PM
How to remove "product details" button in the product layout page, so that I could save more space to show more products. Since the product title is also has a link, I want to remove the "product details" button which it seems to me no much necessory.

Any one could help with me? Sorry, i am  newbie for coding, CSS.

[attachment cleanup by admin]
Title: Re: How to remove "product details" button in the product layout page?
Post by: vigier on September 13, 2012, 22:25:50 PM
Pretty sure it's this one:
\components\com_virtuemart\views\category\tmpl\default.php --> In version 2.0.10 it's around line 287:

<p>
<?php // Product Details Button
echo JHTML::link($product->linkJText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details'));
?>

</p>


Make an override for this file, in the override you remove this piece of code and DH is a happy camper.
Title: Re: How to remove "product details" button in the product layout page?
Post by: DH on September 14, 2012, 05:59:00 AM
That really works! You are genius, guy! Thanks a million!

Ahaha, DH is a happy camper.