News:

Support the VirtueMart project and become a member

Main Menu

Remove the 'product details' button

Started by Fabianb, August 08, 2013, 12:50:32 PM

Previous topic - Next topic

Fabianb

Hi all,

I could not find the solution how to remove the 'product details' button. Take a look at my website: http://www.roadboxx.com/cars/sedan Btw, I changed the 'product details' to 'car details'. Although it's still the same button.  :P
I want it removed because it takes up too much space. You can already click on the image and the title, so the button is unnecessary.

Can anyone help?

Maxim Pishnyak

You able to customize different types of VM pages. Look in Template forum section (sticked threads).
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

WirelessBrain

I was able to remove the 'product details' button by editing this file: \mywebsite\templates\mytemplate\html\com_virtuemart\category\default.php
I commented out the div containing the button on line 252 by adding <!--   -->

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

WirelessBrain

How did you get the image to link to the details page?
On my site when you click on the image it expands / enlarges the image!

jenkinhill

In the current VM versions (now at 2.0.22d) the default action is for the product image on the category pages to link direct to product details. If yours does not do that then you have either an old VM version or you are using template overrides which have not been updated.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

WirelessBrain

Quote from: jenkinhill on September 14, 2013, 16:32:34 PM
In the current VM versions (now at 2.0.22d) the default action is for the product image on the category pages to link direct to product details. If yours does not do that then you have either an old VM version or you are using template overrides which have not been updated.

Thank you jenkinhill, it was an override in the template.