VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: cypresstwist on January 10, 2015, 19:21:32 PM

Title: VM 3.0 - How do I get rid of the "Product details" button?
Post by: cypresstwist on January 10, 2015, 19:21:32 PM
In the "Latest Products" in need to get rid of the "Product details" button. Using Joomla 2.5, VM 3.0.2, default template.

http://i.imgur.com/SQsI8MH.png

Any idea what file I need to edit to delete that button?
Thank you in advance.
Title: Re: VM 3.0 - How do I get rid of the "Product details" button?
Post by: GJC Web Design on January 10, 2015, 19:37:34 PM
components\com_virtuemart\sublayouts\products.php
Title: Re: VM 3.0 - How do I get rid of the "Product details" button?
Post by: cypresstwist on January 10, 2015, 19:45:22 PM
Thank you so much for your prompt reply. It worked.

Just in case someone else is looking for the same thing, what I did was delete the following code from components\com_virtuemart\sublayouts\products.php

<div class="vm-details-button">
<?php // Product Details Button
$link = empty($product->link)? $product->canonical:$product->link;
echo JHtml::link($link.$ItemidStr,vmText::'COM_VIRTUEMART_PRODUCT_DETAILS' ), array ('title' => $product->product_name'class' => 'product-details' ) );
//echo JHtml::link ( JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id , FALSE), vmText::_ ( 'COM_VIRTUEMART_PRODUCT_DETAILS' ), array ('title' => $product->product_name, 'class' => 'product-details' ) );
?>

</div>