- Posts: 14
- Thank you received: 0
How can i disable the contact on product page
12 years 2 weeks ago #171234
by cms4biz
How can i disable the contact on product page was created by cms4biz
-- url of the page with the problem -- :
raddtp.nl/anatomie/i
-- HikaShop version -- : 2.3.2.
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : FF31
I want to disable the contact button on a product page.
In the view show_tabular.php of product i found out that this button can be disable by a setting.
Code:
if (hikashop_level(1) && ($contact == 2 || ($contact == 1 && !empty ($this->element->product_contact)))) {
$empty = '';
$params = new HikaParameter($empty);
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=' . $this->element->product_id.$url_itemid), 'window.location=\'' . hikashop_completeLink('product&task=contact&cid=' . $this->element->product_id.$url_itemid) . '\';return false;');
}
Where can i find this setting.
-- HikaShop version -- : 2.3.2.
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : FF31
I want to disable the contact button on a product page.
In the view show_tabular.php of product i found out that this button can be disable by a setting.
Code:
if (hikashop_level(1) && ($contact == 2 || ($contact == 1 && !empty ($this->element->product_contact)))) {
$empty = '';
$params = new HikaParameter($empty);
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=' . $this->element->product_id.$url_itemid), 'window.location=\'' . hikashop_completeLink('product&task=contact&cid=' . $this->element->product_id.$url_itemid) . '\';return false;');
}
Where can i find this setting.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 2 weeks ago #171244
by Mohamed Thelji
Replied by Mohamed Thelji on topic How can i disable the contact on product page
Hello,
You'll just have to use the "Display a contact button on the product page" option through "Hikashop->System->Configuration->Main".
You'll just have to use the "Display a contact button on the product page" option through "Hikashop->System->Configuration->Main".
Please Log in or Create an account to join the conversation.
Time to create page: 0.213 seconds