News:

Looking for documentation? Take a look on our wiki

Main Menu

VM 3.0 - How do I get rid of the "Product details" button?

Started by cypresstwist, January 10, 2015, 19:21:32 PM

Previous topic - Next topic

cypresstwist

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.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

cypresstwist

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>