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

#   "Contact Us for More Information" button problem

##

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

Less More

- Posts: 177
- Thank you received: 4
-
-

12 years 10 months ago [\#137794](#137794) by [kchahine](/forum/user/6872-kchahine "View kchahine's Profile")  *["Contact Us for More Information" button problem](/forum/26-product-category-display/864563-contact-us-for-more-information-button-problem#137794 "-- url of the page with the problem -- :   www.salsashoes.com.au/hikashop-menu-for-...uct/274-160805-.html  -- HikaShop version -- : Essential 2.2.3 -- Joomla version -- : 2.5.17  Hi, For one reason or the other, the &quot;Contact Us for More Information&quot; button is not functioning as expected. To start with, once the user click on the button, he/she is prompted to another page to enter details of the message. Once the user click on OK, he/she is prompted to another blank page (no confirmation message or any other sign). Any idea what could be the problem? Also, the page where the user enters details needs to be changed, where can I do so? Any better idea about improving the look of the whole process?  Many thanks in advance.")* was created by *[kchahine](/forum/user/6872-kchahine "View kchahine's Profile")*

-- url of the page with the problem -- : [ www.salsashoes.com.au/hikashop-menu-for-...uct/274-160805-.html](http://www.salsashoes.com.au/hikashop-menu-for-products-listing/product/274-160805-.html)
-- HikaShop version -- : Essential 2.2.3
-- Joomla version -- : 2.5.17

Hi,
For one reason or the other, the "Contact Us for More Information" button is not functioning as expected. To start with, once the user click on the button, he/she is prompted to another page to enter details of the message. Once the user click on OK, he/she is prompted to another blank page (no confirmation message or any other sign). Any idea what could be the problem?
Also, the page where the user enters details needs to be changed, where can I do so?
Any better idea about improving the look of the whole process?

Many thanks in advance.

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

12 years 10 months ago [\#137815](#137815) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *["Contact Us for More Information" button problem](/forum/26-product-category-display/864563-contact-us-for-more-information-button-problem#137815 "-- url of the page with the problem -- :   www.salsashoes.com.au/hikashop-menu-for-...uct/274-160805-.html  -- HikaShop version -- : Essential 2.2.3 -- Joomla version -- : 2.5.17  Hi, For one reason or the other, the &quot;Contact Us for More Information&quot; button is not functioning as expected. To start with, once the user click on the button, he/she is prompted to another page to enter details of the message. Once the user click on OK, he/she is prompted to another blank page (no confirmation message or any other sign). Any idea what could be the problem? Also, the page where the user enters details needs to be changed, where can I do so? Any better idea about improving the look of the whole process?  Many thanks in advance.")*

Hi,

Please edit the file "components/com_hikashop/views/product/tmpl/contact.php" and replace: Code:

&lt;input type="hidden" name="tmpl" value="&lt;?php echo JRequest::getVar('tmpl'); ?&gt;" /&gt;

By: Code:

&lt;?php if(JRequest::getVar('tmpl', '') == 'component') { ?&gt; &lt;input type="hidden" name="tmpl" value="component" /&gt; &lt;?php } ?&gt;

It will fix the problem.

Sorry for the inconvenient.

Regards,

---

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

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

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

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

Less More

- Posts: 177
- Thank you received: 4
-
-

12 years 10 months ago [\#137840](#137840) by [kchahine](/forum/user/6872-kchahine "View kchahine's Profile")  Replied by *[kchahine](/forum/user/6872-kchahine "View kchahine's Profile")* on topic *["Contact Us for More Information" button problem](/forum/26-product-category-display/864563-contact-us-for-more-information-button-problem#137840 "-- url of the page with the problem -- :   www.salsashoes.com.au/hikashop-menu-for-...uct/274-160805-.html  -- HikaShop version -- : Essential 2.2.3 -- Joomla version -- : 2.5.17  Hi, For one reason or the other, the &quot;Contact Us for More Information&quot; button is not functioning as expected. To start with, once the user click on the button, he/she is prompted to another page to enter details of the message. Once the user click on OK, he/she is prompted to another blank page (no confirmation message or any other sign). Any idea what could be the problem? Also, the page where the user enters details needs to be changed, where can I do so? Any better idea about improving the look of the whole process?  Many thanks in advance.")*

Excellent

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

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

Less More

- Posts: 25
- Thank you received: 0
-
-

12 years 8 months ago [\#145393](#145393) by [aleks59](/forum/user/19049-aleks59 "View aleks59's Profile")  Replied by *[aleks59](/forum/user/19049-aleks59 "View aleks59's Profile")* on topic *["Contact Us for More Information" button problem](/forum/26-product-category-display/864563-contact-us-for-more-information-button-problem#145393 "-- url of the page with the problem -- :   www.salsashoes.com.au/hikashop-menu-for-...uct/274-160805-.html  -- HikaShop version -- : Essential 2.2.3 -- Joomla version -- : 2.5.17  Hi, For one reason or the other, the &quot;Contact Us for More Information&quot; button is not functioning as expected. To start with, once the user click on the button, he/she is prompted to another page to enter details of the message. Once the user click on OK, he/she is prompted to another blank page (no confirmation message or any other sign). Any idea what could be the problem? Also, the page where the user enters details needs to be changed, where can I do so? Any better idea about improving the look of the whole process?  Many thanks in advance.")*

Hello,

If the customer submits the “Contact us for more information”-form with incorrect data or empty required fields, he gets the EMPTY form back. All the submitted data gets lost.
Since I have many input fields in my contact form its very inconvenient for the customer to fill the hole form ones again.
Are there any possibilities to display the submitted data after failed submission?
Joomla 2.5.11, Hikashop Business 2.2.2

Thanks in advance.

Aleks

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

12 years 8 months ago [\#145691](#145691) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *["Contact Us for More Information" button problem](/forum/26-product-category-display/864563-contact-us-for-more-information-button-problem#145691 "-- url of the page with the problem -- :   www.salsashoes.com.au/hikashop-menu-for-...uct/274-160805-.html  -- HikaShop version -- : Essential 2.2.3 -- Joomla version -- : 2.5.17  Hi, For one reason or the other, the &quot;Contact Us for More Information&quot; button is not functioning as expected. To start with, once the user click on the button, he/she is prompted to another page to enter details of the message. Once the user click on OK, he/she is prompted to another blank page (no confirmation message or any other sign). Any idea what could be the problem? Also, the page where the user enters details needs to be changed, where can I do so? Any better idea about improving the look of the whole process?  Many thanks in advance.")*

Hi,

We just corrected it on our end.
As temporary fix, you can replace the view "product / contact" 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="" style="float:left"&gt; &lt;h1&gt;&lt;?php if(!empty($this-&gt;product-&gt;images)) { $image = reset($this-&gt;product-&gt;images); $img = $this-&gt;imageHelper-&gt;getThumbnail($image-&gt;file_path, array(50,50), array('default' =&gt; true), true); if($img-&gt;success) { echo '&lt;img src="'.$img-&gt;url.'" alt="" style="vertical-align:middle"/&gt; '; } } echo $this-&gt;product-&gt;product_name; ?&gt;&lt;/h1&gt; &lt;/div&gt; &lt;div class="toolbar" id="toolbar" style="float: right;"&gt; &lt;button class="btn" type="button" onclick="checkFields('hikashop_contact_form');"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;ok.png" alt=""/&gt;&lt;?php echo JText::_('OK'); ?&gt;&lt;/button&gt; &lt;?php if(JRequest::getCmd('tmpl', '') != 'component') { ?&gt; &lt;button class="btn" type="button" onclick="history.back();"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;cancel.png" alt=""/&gt;&lt;?php echo JText::_('HIKA_CANCEL'); ?&gt;&lt;/button&gt; &lt;?php } ?&gt; &lt;/div&gt; &lt;div style="clear:both"&gt;&lt;/div&gt; &lt;/fieldset&gt; &lt;?php $formData = JRequest::getVar('formData',''); if(isset($this-&gt;element-&gt;name) &amp;&amp; !isset($formData-&gt;name)){ $formData-&gt;name = $this-&gt;element-&gt;name; } if(isset($this-&gt;element-&gt;email) &amp;&amp; !isset($formData-&gt;email)){ $formData-&gt;email = $this-&gt;element-&gt;email; } ?&gt; &lt;form action="&lt;?php echo hikashop_completeLink('product'); ?&gt;" id="hikashop_contact_form" name="hikashop_contact_form" method="post"&gt; &lt;dl&gt; &lt;dt&gt;&lt;label for="data[contact][name]"&gt;&lt;?php echo JText::_( 'HIKA_USER_NAME' ); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd&gt; &lt;input type="text" name="data[contact][name]" size="40" value="&lt;?php echo $this-&gt;escape(@$formData-&gt;name);?&gt;" /&gt; &lt;/dd&gt; &lt;dt&gt;&lt;label for="data[contact][email]"&gt;&lt;?php echo JText::_( 'HIKA_EMAIL' ); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd&gt; &lt;input type="text" name="data[contact][email]" size="40" value="&lt;?php echo $this-&gt;escape(@$formData-&gt;email);?&gt;" /&gt; &lt;/dd&gt; &lt;dt&gt;&lt;label for="data[contact][altbody]"&gt;&lt;?php echo JText::_( 'ADDITIONAL_INFORMATION' ); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd&gt; &lt;textarea cols="60" rows="10" name="data[contact][altbody]" style="width:100%;"&gt; &lt;?php if(isset($formData-&gt;altbody)) echo $formData-&gt;altbody; ?&gt; &lt;/textarea&gt; &lt;/dd&gt; &lt;/dl&gt; &lt;input type="hidden" name="data[contact][product_id]" value="&lt;?php echo JRequest::getInt('cid');?&gt;" /&gt; &lt;input type="hidden" name="cid" value="&lt;?php echo JRequest::getInt('cid');?&gt;" /&gt; &lt;input type="hidden" name="option" value="&lt;?php echo HIKASHOP_COMPONENT; ?&gt;" /&gt; &lt;input type="hidden" name="task" value="" /&gt; &lt;input type="hidden" name="ctrl" value="product" /&gt; &lt;input type="hidden" name="redirect_url" value="&lt;?php $redirect_url = JRequest::getString('redirect_url', ''); echo $this-&gt;escape($redirect_url); ?&gt;" /&gt; &lt;?php if(JRequest::getVar('tmpl', '') == 'component') { ?&gt; &lt;input type="hidden" name="tmpl" value="component" /&gt; &lt;?php } ?&gt; &lt;?php echo JHTML::_( 'form.token' ); ?&gt; &lt;/form&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; function checkFields(form){ var varform = document[form]; var nameField = varform.elements['data[contact][name]']; var emailField = varform.elements['data[contact][email]']; var altbodyField = varform.elements['data[contact][altbody]']; if(nameField.value == ''){ alert('".JText::_('SPECIFY_A_NAME')."'); return false; } if(emailField.value == ''){ alert('".JText::_('EMAIL_INVALID')."'); return false; }else{ emailField.value = emailField.value.replace(/ /g,\"\"); var filter = /^([a-z0-9_'&amp;\.\-\+])+\@(([a-z0-9\-])+\.)+([a-z0-9]{2,10})+$/i; if(!emailField &#124;&#124; !filter.test(emailField.value)){ alert('".JText::_('EMAIL_INVALID')."'); return false; } } if(altbodyField.value == ''){ alert('".JText::_('PLEASE_FILL_ADDITIONAL_INFO')."'); return false; } window.hikashop.submitform('send_email', 'hikashop_contact_form'); } &lt;/script&gt;

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

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

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

Less More

- Posts: 25
- Thank you received: 0
-
-

12 years 8 months ago [\#145772](#145772) by [aleks59](/forum/user/19049-aleks59 "View aleks59's Profile")  Replied by *[aleks59](/forum/user/19049-aleks59 "View aleks59's Profile")* on topic *["Contact Us for More Information" button problem](/forum/26-product-category-display/864563-contact-us-for-more-information-button-problem#145772 "-- url of the page with the problem -- :   www.salsashoes.com.au/hikashop-menu-for-...uct/274-160805-.html  -- HikaShop version -- : Essential 2.2.3 -- Joomla version -- : 2.5.17  Hi, For one reason or the other, the &quot;Contact Us for More Information&quot; button is not functioning as expected. To start with, once the user click on the button, he/she is prompted to another page to enter details of the message. Once the user click on OK, he/she is prompted to another blank page (no confirmation message or any other sign). Any idea what could be the problem? Also, the page where the user enters details needs to be changed, where can I do so? Any better idea about improving the look of the whole process?  Many thanks in advance.")*

Thanks for the fix!

Although the $formData remains empty the javaScript does the job. for the time being it will be sufficient.

Regards,

Aleks

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

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

[](#top)
