Change url for "Contact Us" button

  • Posts: 8
  • Thank you received: 0
11 years 9 months ago #89058

I have downloaded the Fox Contact extension for use as my primary "Contact Us" page and module in my HikaShop. I would like to override the url in my "Contact Us" button which is located beneath the "Add To Cart" button in my template, and currently brings users to the default Hikashop "Contact" page. Could you please tell me where to find the file in which I can update the url to my custom "Contact Us" page. Thank you.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #89135

To edit the url of the "contact button", you have to edit the view "product / show default", the url is in the code:

	<div id="hikashop_product_contact_main" class="hikashop_product_contact_main">
		<?php
		$contact = $this->config->get('product_contact',0);
		if (hikashop_level(1) && ($contact == 2 || ($contact == 1 && !empty ($this->element->product_contact)))) {
			$empty = '';
			$params = new HikaParameter($empty);
			echo $this->cart->displayButton(JText :: _('CONTACT_US_FOR_INFO'), 'contact_us', $params, hikashop_completeLink('product&task=contact&cid=' . $this->row->product_id), 'window.location=\'' . hikashop_completeLink('product&task=contact&cid=' . $this->row->product_id) . '\';return false;');
		}
		?>
	</div>

The following user(s) said Thank You: signsasrx

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

  • Posts: 8
  • Thank you received: 0
11 years 9 months ago #89222

Thank you for the fast reply. I am not sure where to insert the new url into that code that you pasted above. Also, will I have to post it in a specific format, or just simply type the url into the code? Thanks.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #89380

You have to replace the two "hikashop_completeLink('product&task=contact&cid=' . $this->row->product_id)" by you url, and you can just type your url in the code.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum