-- HikaShop version -- : HikaShop Essential: 2.3.0
-- Joomla version -- : 3.2
Hi,
I want to display "Contact us for more information" button in Product Display under Category layout. So this button will show under Price or Add to Cart button.
I have copied this code and pasted under "listing-img-title.php"
<div id="hikashop_product_contact" >
<?php
if (hikashop_level(1) && ($contact == 2 || ($contact == 1 && !empty ($this->element->main->product_contact)))) {
$params = @$this->params;
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&Itemid='.$Itemid;
}
echo $this->cart->displayButton(
JText::_('CONTACT_US_FOR_INFO'),
'contact_us',
$params,
''.hikashop_completeLink('product&task=contact&cid=' . $variant->product_id.$url_itemid),
'window.location=\'' . hikashop_completeLink('product&task=contact&cid=' . $variant->product_id.$url_itemid) . '\';return false;'
);
}
?>
</div>
But it's showing error:
C:\xampp\htdocs\hikashop\components\com_hikashop\views\product\tmpl\listing_img_title.php on line 87 Notice: Undefined variable: contact in C:\xampp\htdocs\hikashop\components\com_hikashop\views\product\tmpl\listing_img_title.php on line 87
How to fix this?
Thanks