News:

Looking for documentation? Take a look on our wiki

Main Menu

How to remove "product details" button in the product layout page?

Started by DH, September 13, 2012, 21:32:15 PM

Previous topic - Next topic

DH

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]
---------------------------------------
PHP v5.3.1          |  Apache v2.2.41
MySQL v5.1.41   |  XAMPP 1.7.3
phpMyAdmin v3.2.4
Windows 7 SP1 Professional
---------------------------------------

vigier

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.

DH

That really works! You are genius, guy! Thanks a million!

Ahaha, DH is a happy camper.
---------------------------------------
PHP v5.3.1          |  Apache v2.2.41
MySQL v5.1.41   |  XAMPP 1.7.3
phpMyAdmin v3.2.4
Windows 7 SP1 Professional
---------------------------------------