How can I use an image button instead of the text in the following code
JHTML::link ($product->link, JText::_ ('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name, 'class' => 'product-details'))
in HTML it is rendering as <a href="blah blah">Product details
How to use the image instead of Product details in HREF tag in above php code
JHTML::link ($product->link, JText::_ ('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name, 'class' => 'product-details'))
$productis a PHP object, and JHTML is used by joomla! framework to output linksActually your code:
is equal to plain HTML
JText is used to output words and phrases based in a language INI file based in language/LANGUAGE_ID/folder. For english language and virtuemart component your string is located in /language/en-GB/en-GB.com_virtuemart.ini
in order to use an image link try