[Skip to main content](#vessel-content)

#   product contact button with popup form?

##

- **[ido.san](/forum/user/7700-ido-san "View ido.san's Profile")**
- [![ido.san's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7700-ido-san "View ido.san's Profile") Topic Author
- [ Offline](/forum/user/7700-ido-san)

Less More

- Posts: 63
- Thank you received: 1
-
-

14 years 1 week ago [\#70456](#70456) by [ido.san](/forum/user/7700-ido-san "View ido.san's Profile")  *[product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#70456 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")* was created by *[ido.san](/forum/user/7700-ido-san "View ido.san's Profile")*

Hello everyone,
I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form.
Where should I put the php code to it?
What files need to edit?
If someone has an idea easier to love?
![:-)](/media/kunena/emoticons/9.png ":-)") Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 week ago [\#70491](#70491) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#70491 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

Hi,

To do that, you have to edit the view "product / show_default" in HikaShop &gt; Display &gt; Views and make the modifications inside the div "hikashop_product_contact_main".
The content of the contact form is in the view "product / contact".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ido.san](/forum/user/7700-ido-san "View ido.san's Profile")**
- [![ido.san's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7700-ido-san "View ido.san's Profile") Topic Author
- [ Offline](/forum/user/7700-ido-san)

Less More

- Posts: 63
- Thank you received: 1
-
-

14 years 1 week ago [\#70493](#70493) by [ido.san](/forum/user/7700-ido-san "View ido.san's Profile")  Replied by *[ido.san](/forum/user/7700-ido-san "View ido.san's Profile")* on topic *[Re: product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#70493 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

so if i want just the button on click will popup in the same screen a contact form inside i just need to edit here? "product / show_default" HikaShop &gt; Display &gt; Views.?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 week ago -  14 years 1 week ago [\#70494](#70494) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#70494 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

Yes, and some things in the "product / contact" view, to close the popup onClick on a button.

You can use this code instead of the code in the "if(){}" in the "product / show_default" view: Code:

&lt;a class="modal" title="&lt;?php echo JText::_('CONTACT_US_FOR_INFO')?&gt;" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('product&amp;task=contact&amp;cid=' . $this-&gt;row-&gt;product_id.'&amp;tmpl=component');?&gt;"&gt; &lt;button class="btn" type="button" onclick="return false"&gt; &lt;?php echo JText::_('CONTACT_US_FOR_INFO');?&gt; &lt;/button&gt; &lt;/a&gt;

Last edit: 14 years 1 week ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ido.san](/forum/user/7700-ido-san "View ido.san's Profile")**
- [![ido.san's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7700-ido-san "View ido.san's Profile") Topic Author
- [ Offline](/forum/user/7700-ido-san)

Less More

- Posts: 63
- Thank you received: 1
-
-

14 years 1 week ago [\#70495](#70495) by [ido.san](/forum/user/7700-ido-san "View ido.san's Profile")  Replied by *[ido.san](/forum/user/7700-ido-san "View ido.san's Profile")* on topic *[Re: product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#70495 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

thank u !!!

this code that you gave that what i need to do to create the pop up + the form inside ?
if it's okay for you to right the codes that i need to insert to paste the regular form in hika to a pop up form on click the button ... it will be great to all hika shop members.. ![:-)](/media/kunena/emoticons/9.png ":-)") ?
(sorry my ability un php/javascript is not good )

milion of thankssss..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 week ago -  14 years 1 week ago [\#70499](#70499) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#70499 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

In "Product / contact", replace the code before the "&lt;form&gt;" tag by: Code:

&lt;div id="hikashop_product_contact_&lt;?php echo JRequest::getInt('cid');?&gt;_page" class="hikashop_product_contact_page"&gt; &lt;fieldset&gt; &lt;div class="toolbar" id="toolbar" style="float: right;"&gt; &lt;button class="btn" type="button" onclick="submitform('send_email');"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;ok.png"/&gt;&lt;?php echo JText::_('OK'); ?&gt;&lt;/button&gt; &lt;button class="btn" type="button" onclick="window.top.SqueezeBox.close();"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;cancel.png"/&gt;&lt;?php echo JText::_('HIKA_CANCEL'); ?&gt;&lt;/button&gt; &lt;/div&gt; &lt;/fieldset&gt; &lt;div class="iframedoc" id="iframedoc"&gt;&lt;/div&gt; &lt;?php $close = JRequest::getString('box',''); if($close == 'close'){ $js = 'window.top.SqueezeBox.close();'; echo '&lt;html&gt;&lt;head&gt;&lt;script type="text/javascript"&gt;'.$js.'&lt;/script&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;'; } ?&gt;

And it will work fine.

Last edit: 14 years 1 week ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ido.san](/forum/user/7700-ido-san "View ido.san's Profile")**
- [![ido.san's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7700-ido-san "View ido.san's Profile") Topic Author
- [ Offline](/forum/user/7700-ido-san)

Less More

- Posts: 63
- Thank you received: 1
-
-

14 years 1 week ago [\#70503](#70503) by [ido.san](/forum/user/7700-ido-san "View ido.san's Profile")  Replied by *[ido.san](/forum/user/7700-ido-san "View ido.san's Profile")* on topic *[Re: product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#70503 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

ok i will do it and let you know

Again as always, great support, fast and courteous! It makes all the difference between you and others in my opinion. Of course, in many levels above

Thank you and I will give you a Recommendations in joomla days that I go, Forums ,jed, etc. ...

have a nice day.. ![:-)](/media/kunena/emoticons/9.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[itbloke](/forum/user/26166-itbloke "View itbloke's Profile")**
- [![itbloke's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/26166-itbloke "View itbloke's Profile")
- [ Offline](/forum/user/26166-itbloke)

Less More

- Posts: 1
- Thank you received: 0
-
-

13 years 1 month ago [\#124995](#124995) by [itbloke](/forum/user/26166-itbloke "View itbloke's Profile")  Replied by *[itbloke](/forum/user/26166-itbloke "View itbloke's Profile")* on topic *[product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#124995 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

Hello,
I also would loike to add tyhis function ality to my shop. However I am having trouble adding the code to the "product_show_default page.
I am unsure where to add it as when I have tried I get a 500 error on the product page.
THe bit I do not understand is exactly how I needs to be added to the area where the "If () {}" statement is.

Could you pelase post the change as it should lok?

CHeers
Mark

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#125132](#125132) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#125132 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

Hi,

The idea is to replace the line Code:

echo $this-&gt;cart-&gt;displayButton(JText :: _('CONTACT_US_FOR_INFO'), 'contact_us', $params, hikashop_completeLink('product&amp;task=contact&amp;cid=' . $this-&gt;row-&gt;product_id.$url_itemid), 'window.location=\'' . hikashop_completeLink('product&amp;task=contact&amp;cid=' . $this-&gt;row-&gt;product_id.$url_itemid) . '\';return false;');

By: Code:

?&gt; &lt;a class="modal" title="&lt;?php echo JText::_('CONTACT_US_FOR_INFO')?&gt;" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('product&amp;task=contact&amp;cid=' . $this-&gt;row-&gt;product_id.'&amp;tmpl=component');?&gt;"&gt; &lt;button class="btn" type="button" onclick="return false"&gt; &lt;?php echo JText::_('CONTACT_US_FOR_INFO');?&gt; &lt;/button&gt; &lt;/a&gt; &lt;?php

Be careful, the code work good with Joomla 1.5 and 2.5 but the popup in Joomla 3.x could not work very well depending the template you are using.
The post of Xavier have 11 months old.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[feliperozo13](/forum/user/36134-feliperozo13 "View feliperozo13's Profile")**
- [![feliperozo13's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36134-feliperozo13 "View feliperozo13's Profile")
- [ Offline](/forum/user/36134-feliperozo13)

Less More

- Posts: 5
- Thank you received: 0
-
-

11 years 8 months ago [\#190559](#190559) by [feliperozo13](/forum/user/36134-feliperozo13 "View feliperozo13's Profile")  Replied by *[feliperozo13](/forum/user/36134-feliperozo13 "View feliperozo13's Profile")* on topic *[product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#190559 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

Hello, first at all excuse me for my english. I have insert the Contact us for more information button pop up code and works correctly. But now, I want to add in the form contact a Subjet that includes the code of the product. I will have more than 200 products so I have to know the product specifically that the client is interesting in. Thanks for your help. Any ideas?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 8 months ago [\#190583](#190583) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#190583 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

Hi,

You can edit the preload part of the "A contact request has been made" email (contact_request.preload.php) via the menu System &gt; Emails for business edition or via FTP, but be careful if doing the edition via ftp, when updating the changes will be lost.

So in the preload part of the email you can add something like that: Code:

$this-&gt;mailer-&gt;subject = 'Contact request for product: '.$data-&gt;product-&gt;product_code;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[snevgi](/forum/user/38077-snevgi "View snevgi's Profile")**
- [![snevgi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38077-snevgi "View snevgi's Profile")
- [ Offline](/forum/user/38077-snevgi)

Less More

- Posts: 10
- Thank you received: 3
-
-

6 years 6 months ago [\#317086](#317086) by [snevgi](/forum/user/38077-snevgi "View snevgi's Profile")  Replied by *[snevgi](/forum/user/38077-snevgi "View snevgi's Profile")* on topic *[product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#317086 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

Hello,

I would like to use the same form as a lightbox pop up. Since this post is more than 5 years old, wondering if there is any easier way of doing it now? Or do I have to modify the file like suggested 5 years ago?

If file needs to be modified, how can I make pop up as a full page lightbox? Please advise (sorry I have no coding experience!!). Thanks in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

6 years 6 months ago [\#317087](#317087) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#317087 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

Hi,

You would still need to edit the view file like suggested 5 years ago.
Which file to edit will depend on which contact button you want to change as there is both the button on the product details page and on the product listing.
To find which view file to edit, you can temporarily activate the "Display view files" setting of the HikaShop configuration and look at the page where you want to change the button:
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)
Now supposing that you use the "default" product layout and that you're talking about the contact button on the product page, it's still the file product / show_default.php that you'll want to edit.
There you can replace the code: Code:

&lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=contact&amp;cid=' . (int)$this-&gt;element-&gt;product_id . $this-&gt;url_itemid); ?&gt;" class="&lt;?php echo $css_button; ?&gt;"&gt;&lt;?php echo JText::_('CONTACT_US_FOR_INFO'); ?&gt;&lt;/a&gt;

by:
Code:

&lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=contact&amp;tmpl=component&amp;cid=' . (int)$this-&gt;element-&gt;product_id . $this-&gt;url_itemid); ?&gt;" class="modal &lt;?php echo $css_button; ?&gt;" rel="{handler: 'iframe', size: {x: 760, y: 480}}"&gt;&lt;?php echo JText::_('CONTACT_US_FOR_INFO'); JHtml::_('behavior.modal'); ?&gt;&lt;/a&gt;

Note however that this might not work based on the template you're using.
Please also note that our support is to help you with the setup of your shop, not to do custom development work for free.
If you need more custom development work in the future you can use our contact form to discuss that with us:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[snevgi](/forum/user/38077-snevgi "View snevgi's Profile")**
- [![snevgi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38077-snevgi "View snevgi's Profile")
- [ Offline](/forum/user/38077-snevgi)

Less More

- Posts: 10
- Thank you received: 3
-
-

6 years 6 months ago [\#317477](#317477) by [snevgi](/forum/user/38077-snevgi "View snevgi's Profile")  Replied by *[snevgi](/forum/user/38077-snevgi "View snevgi's Profile")* on topic *[product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#317477 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

Hi Nicolas,

Thanks a lot for your time and help. As per your note, your solution did not work probably due to the template I am using as per your concern.

And sorry I did not realise that such a small feature which should be a part of basic hikashop functionality would fall under custom job category.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile")
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

5 years 5 months ago [\#332612](#332612) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#332612 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

The modal solution didn't work with the template we're currently working with either but we found that we could simply add the following to the code Nicolas provided previously and the contact button then uses the same styling already loaded for the product image modals.

&lt;a **rel="shadowbox"** href ... and so forth

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

- [ ![ScreenShot2021-05-13at6.36.16PM.png](/forum/attachment/52726) ](/forum/attachment/52726 "...t6.36.16PM.png") [ ](/forum/attachment/52726?download=1 "...t6.36.16PM.png")

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

5 years 5 months ago [\#332623](#332623) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[product contact button with popup form?](/forum/4-how-to/70456-product-contact-button-with-popup-form#332623 "Hello everyone, I want the contact button on the product will be able to click the Headline and will Appear pop up inside him will be contact form. Where should I put the php code to it? What files need to edit? If someone has an idea easier to love? :-) Thank you.")*

Hi,

Another alternative, when you don't use shadowbox for the image popup could be to use a modals ( [ extensions.joomla.org/extension/modals/](https://extensions.joomla.org/extension/modals/) ) tag to generate the popup.
So it would be: Code:

{modal &lt;?php echo hikashop_completeLink('product&amp;task=contact&amp;tmpl=component&amp;cid=' . (int)$this-&gt;element-&gt;product_id . $this-&gt;url_itemid); ?&gt;}&lt;?php echo JText::_('CONTACT_US_FOR_INFO'); ?&gt;{/modal}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwNDU2LXByb2R1Y3QtY29udGFjdC1idXR0b24td2l0aC1wb3B1cC1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.602 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
