VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Fabianb on August 08, 2013, 12:50:32 PM

Title: Remove the 'product details' button
Post by: Fabianb on August 08, 2013, 12:50:32 PM
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 (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?
Title: Re: Remove the 'product details' button
Post by: Maxim Pishnyak on August 08, 2013, 23:47:07 PM
You able to customize different types of VM pages. Look in Template forum section (sticked threads).
Title: Re: Remove the 'product details' button
Post by: WirelessBrain on September 14, 2013, 15:09:05 PM
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> -->
Title: Re: Remove the 'product details' button
Post by: WirelessBrain on September 14, 2013, 15:11:50 PM
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!
Title: Re: Remove the 'product details' button
Post by: 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.
Title: Re: Remove the 'product details' button
Post by: WirelessBrain on September 14, 2013, 23:45:12 PM
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.