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

#   Display a contact button on the product page

##

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#7561](#7561) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  *[Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7561 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")* was created by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")*

Nicolas,

I have installed the new version released just today on my development site and enabled the new "Display a contact button on the product page" feature, but do not see a contact button on any product pages. I chose the option "For all products".

Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.

Regards,
Ed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1NjEtZGlzcGxheS1hLWNvbnRhY3QtYnV0dG9uLW9uLXRoZS1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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
-
-

15 years 8 months ago [\#7563](#7563) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7563 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

Did you edit the file show of the view product ? Because if you did so, you won't see it as that feature was added in that view.

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#7564](#7564) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7564 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

That was it. I did have to modify that view because the product_code was not being hidden with the template I'm using. There may have been other changes, but that's the obvious one that popped up when I switched to the lastest version.

The contact button and form now display, but there is a problem with the form.

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/HikaShopContactForm.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/HikaShopContactForm.jpg "&#91;img")

- [ ![HikaShopContactForm.jpg](/forum/attachment/451) ](/forum/attachment/451 "...ontactForm.jpg") [ ](/forum/attachment/451?download=1 "...ontactForm.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1NjEtZGlzcGxheS1hLWNvbnRhY3QtYnV0dG9uLW9uLXRoZS1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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
-
-

15 years 8 months ago [\#7572](#7572) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7572 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

The width of the email and name fields are too big. We've reduced them and uploaded a new package of HikaShop. You can either update or edit the view to reduce their size.

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#7689](#7689) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7689 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

Nicolas,

I just now downloaded the latest 1.4.5 zip file (Business Version) and the field lengths have indeed been fixed. The problem I see now is that no email is sent when using the Hikashop contact form. I get the following error when OK is clicked after filling the form fields.

Webpage error details

Message: Object expected
Line: 615
Char: 1
Code: 0
URI: [ xxxxx.com/xxxxx/dvd-catalog-new/product/contact/cid-2054](http://xxxxx.com/xxxxx/dvd-catalog-new/product/contact/cid-2054)

(Dev website and path replace with xxxx)

Regards,
Ed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1NjEtZGlzcGxheS1hLWNvbnRhY3QtYnV0dG9uLW9uLXRoZS1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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
-
-

15 years 8 months ago [\#7691](#7691) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7691 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

Would it be possible for us to test the problem ?

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#7693](#7693) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7693 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

Certainly - Try [ here](http://highdesertvideo.com/hdv_development/dvd-catalog-new/product/show/cid-2078/name-2010-08-20/category_pathway-10).

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago -  15 years 8 months ago [\#7696](#7696) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7696 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

Seems to work when logged in but not for unregistered visitor. At least I didn't get the error and Your Request Has Been Sent was returned.

Email received but with no reference to product information. Subject line - A contact request has been made for the product ''

Ed

Last edit: 15 years 8 months ago by [hdracing](/forum/user/742-hdracing "View hdracing's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1NjEtZGlzcGxheS1hLWNvbnRhY3QtYnV0dG9uLW9uLXRoZS1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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
-
-

15 years 8 months ago [\#7699](#7699) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7699 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

I got the email A contact request has been made for the product '2010-08-20'
The problem though is that you should have been the one receiving the email ![:)](/media/kunena/emoticons/8.png ":)")
You need to change the line
$mailer-&gt;addRecipient(array($element-&gt;email));
to:
$mailer-&gt;addRecipient(array($config-&gt;get('from_email')));
in the file components/com_hikahsop/controllers/product.php

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#7705](#7705) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7705 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

Well, I made the change and ran another test. When logged in, it works and the email returned did have the product name this time. I still get the same error and no email when not logged in. I tried with both IE and FF with the same results.

It worked for you without being logged in?

Ed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1NjEtZGlzcGxheS1hLWNvbnRhY3QtYnV0dG9uLW9uLXRoZS1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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
-
-

15 years 8 months ago [\#7707](#7707) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7707 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

Yes. I'm not logged in and it worked.
Could you try to replace the text "submitbutton" to "submitform" in the file components/com_hikashop/views/product/tmpl/contact.php ?

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

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile") Topic Author
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 8 months ago [\#7713](#7713) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: Display a contact button on the product page](/forum/4-how-to/7561-display-a-contact-button-on-the-product-page#7713 "Nicolas,  I have installed the new version released just today on my development site and enabled the new &quot;Display a contact button on the product page&quot; feature, but do not see a contact button on any product pages. I chose the option &quot;For all products&quot;.  Is there a companion setting that must be configured to make this work? (couldn't find any documentation on this feature yet) I'm using the standard Joomla contact component but also have Contact Enhanced installed although not currently being used.  Regards, Ed")*

That Fixed It! ![;)](/media/kunena/emoticons/11.png ";)")

Thanks
Ed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1NjEtZGlzcGxheS1hLWNvbnRhY3QtYnV0dG9uLW9uLXRoZS1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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.354 seconds

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

[](#top)
