"Contact Us For More Information" Format

  • Posts: 174
  • Thank you received: 4
  • Hikashop Business
12 years 1 week ago #122848

-- url of the page with the problem -- : salsashoes.com.au
-- HikaShop version -- : 2.2.1 (Essential)
-- Joomla version -- : 2.5

I enabled the "Contact Us for More Information" button on the product page, when user clicks on this button he is directed to a new page to send his inquiry. I was wondering if this behaviour can be changes for a popup form instead of a new page! if so, how?
Many thanks.

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

  • Posts: 2334
  • Thank you received: 403
12 years 1 week ago #122852

Hi there,

I think it's possible by editing the view show_default of product.
However, it will require some good php skills because the way the button is generated now doesn't allow an easy modification to open a popup. If you feel confident enough I can give you some keys to do so :).
Or you can ask on our commercial jobs forum for someone to do it.

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

  • Posts: 174
  • Thank you received: 4
  • Hikashop Business
12 years 1 week ago #122878

It would be good to give me some pointer, I understand PhP well enough to reverse any damage I might do while trying :-)

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 week ago #122885

Hi,
I think that you'll probably find your answer through this thread :

You can use this code instead of the code in the "if(){}" in the "product / show_default" view:
<a class="modal" title="<?php echo JText::_('CONTACT_US_FOR_INFO')?>" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop_completeLink('product&task=contact&cid=' . $this->row->product_id.'&tmpl=component');?>">
<button class="btn" type="button" onclick="return false">
<?php echo JText::_('CONTACT_US_FOR_INFO');?>
</button>
</a>

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

  • Posts: 174
  • Thank you received: 4
  • Hikashop Business
12 years 1 week ago #122911

Do you mean this section of 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);
			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->row->product_id.$url_itemid), 'window.location=\'' . hikashop_completeLink('product&task=contact&cid=' . $this->row->product_id.$url_itemid) . '\';return false;');
		}
		?>
	</div>

Last edit: 12 years 1 week ago by Jerome. Reason: [code] is nice

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
12 years 1 week ago #122923

Yes


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: kchahine

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

Time to create page: 0.082 seconds
Powered by Kunena Forum