News:

Looking for documentation? Take a look on our wiki

Main Menu

Button product url

Started by sssnako, March 05, 2012, 15:28:57 PM

Previous topic - Next topic

sssnako

Hi!
I want in the detail view create a button with the text "go to product homepage". The link should be the product_url.
How can I make it?
I use Joomla 1.7.3 and VM 2.0.2
Thank you

SamF

Quote from: sssnako on March 05, 2012, 15:28:57 PM
I want in the detail view create a button with the text "go to product homepage". The link should be the product_url.

Detail view is a product home page, isn't it? The product URL points to this page.

If you mean the link from the product list in category view, the "button" is already there:

Code (\com_virtuemart\category\tmpl\default.php about line 282) Select

<?php
echo JHTML::link($product->linkJText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details'));
?>



If you want a custom text, change "COM_VIRTUEMART_PRODUCT_DETAILS=Product details" in language file \language\en-GB\en-GB.com_virtuemart.ini.