Skip to main content

"Contact Us For More Information" Format

More
13 years 3 weeks ago #122848 by kchahine
-- 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.

More
13 years 3 weeks ago #122852 by Eliot
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.

More
13 years 3 weeks ago #122878 by kchahine
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.

More
13 years 3 weeks ago #122885 by Mohamed Thelji
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.

More
13 years 3 weeks ago - 13 years 3 weeks ago #122911 by kchahine
Do you mean this section of the code:
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: 13 years 3 weeks ago by Jerome. Reason: [code] is nice

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

More
13 years 3 weeks ago #122923 by Jerome
Yes

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: kchahine

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

Time to create page: 0.203 seconds
Powered by Kunena Forum