Hey guys ok its probably an easy fix but all methods i try give ,me a t string error..
this is the code im using and works as is
$db = JFactory::getDBO();
$db->setQuery("SELECT custom_value FROM #__virtuemart_product_customfields WHERE virtuemart_product_id=".$product->virtuemart_product_id." and virtuemart_custom_id=29 ;");
$db->query();
$result = $db->loadResult();
echo "<div class=\"YourClass1\">Name: ".$result."</div>";
The above snippet is working perfect for me.. What i want to fo is replace the part "Name: " with an image and i am struggling.. can some one help me please.
Thank you