How can i disable the contact on product page

  • Posts: 14
  • Thank you received: 0
10 years 11 months ago #171234

-- 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.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 11 months ago #171244

Hello,
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.063 seconds
Powered by Kunena Forum