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

#   Redirect to custom thank you page from Contact form

##

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

Less More

- Posts: 81
- Thank you received: 2
-
-

9 years 6 months ago [\#266097](#266097) by [iamalive](/forum/user/4244-iamalive "View iamalive's Profile")  *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266097 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")* was created by *[iamalive](/forum/user/4244-iamalive "View iamalive's Profile")*

-- url of the page with the problem -- : [ transmetra.imaufbau.ch/Produkt/datenlogger-145](https://transmetra.imaufbau.ch/Produkt/datenlogger-145)
-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0

Hi
My client would like the contact form to redirect to a thank you page, instead of the current system message.
Can you tell me how I do that, please?

Also Is it possible to have the "OK" and "Cancel" buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. "Send"?

Thanks for your help
Regards
David

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODk1NzYtcmVkaXJlY3QtdG8tY3VzdG9tLXRoYW5rLXlvdS1wYWdlLWZyb20tY29udGFjdC1mb3JtP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

9 years 6 months ago [\#266099](#266099) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266099 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hi,

1. You'll want to change 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

to: 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).'?return_url='.urlencode(hikashop_currentURL()); ?&gt;" class="&lt;?php echo $css_button; ?&gt;"&gt;&lt;?php

in the file "show_default" via the menu Display&gt;Views.

2. For the other changes, you can edit the file "contact" of the view "product" via the menu Display&gt;Views and apply the changes you want to the view. It's just some copy/paste of the code so it should be easy.

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

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

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

Less More

- Posts: 81
- Thank you received: 2
-
-

9 years 6 months ago [\#266164](#266164) by [iamalive](/forum/user/4244-iamalive "View iamalive's Profile")  Replied by *[iamalive](/forum/user/4244-iamalive "View iamalive's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266164 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hi Nicolas

Thanks for your input.

I've changed the code, but am unsure where and how to place the link to the article.

Sadly, I am not a programmer ![:-(](/media/kunena/emoticons/4.png ":-(")

Regards
David

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODk1NzYtcmVkaXJlY3QtdG8tY3VzdG9tLXRoYW5rLXlvdS1wYWdlLWZyb20tY29udGFjdC1mb3JtP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

9 years 6 months ago [\#266172](#266172) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266172 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hi,

You want to change the code hikashop_currentURL() to: Code:

'http://mywebsite.com/my/article/url'

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

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

Less More

- Posts: 81
- Thank you received: 2
-
-

9 years 6 months ago [\#266238](#266238) by [iamalive](/forum/user/4244-iamalive "View iamalive's Profile")  Replied by *[iamalive](/forum/user/4244-iamalive "View iamalive's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266238 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Great! Thanks very much.

I've altered the code as below : 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).'?return_url='.urlencode('https://transmetra.imaufbau.ch/danke'); ?&gt;" class="&lt;?php echo $css_button; ?&gt;"&gt;&lt;?php echo JText::_('CONTACT_US_FOR_INFO'); ?&gt;&lt;/a&gt;

But sadly, it still doesn't lead to the thank you page, just shows the system message ![:-(](/media/kunena/emoticons/4.png ":-(")

What have I done wrong?

- [ ![System-message.png](/forum/attachment/37344) ](/forum/attachment/37344 "...em-message.png") [ ](/forum/attachment/37344?download=1 "...em-message.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODk1NzYtcmVkaXJlY3QtdG8tY3VzdG9tLXRoYW5rLXlvdS1wYWdlLWZyb20tY29udGFjdC1mb3JtP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

9 years 6 months ago [\#266241](#266241) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266241 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hi,

That sounds good though.
Can you make sure that you're editing the view file for your frontend template and not another one ?

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

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

Less More

- Posts: 81
- Thank you received: 2
-
-

9 years 6 months ago [\#266305](#266305) by [iamalive](/forum/user/4244-iamalive "View iamalive's Profile")  Replied by *[iamalive](/forum/user/4244-iamalive "View iamalive's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266305 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

I am using the file you mentioned above

> file "show\_default" via the menu Display&gt;Views

I've made a screenshot of it.

I'm sure I've got the right file.

Regards
David

- [ ![Views.png](/forum/attachment/37352) ](/forum/attachment/37352 "Views.png") [ ](/forum/attachment/37352?download=1 "Views.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODk1NzYtcmVkaXJlY3QtdG8tY3VzdG9tLXRoYW5rLXlvdS1wYWdlLWZyb20tY29udGFjdC1mb3JtP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

9 years 6 months ago [\#266316](#266316) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266316 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hi,

I do see that the change is done on your website.
However, while the return_url parameter is added to the URL of the contact button, it's missing in the contact form on your website:
[ monosnap.com/file/69n73ZiRshaTma60ixjnONnph8jNbF](https://monosnap.com/file/69n73ZiRshaTma60ixjnONnph8jNbF)
As if the line Code:

&lt;input type="hidden" name="redirect_url" value="&lt;?php $redirect_url = JRequest::getString('redirect_url', ''); echo $this-&gt;escape($redirect_url); ?&gt;" /&gt;

had been modified in the file "contact of the view "product".
Could you check on that ?

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

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

Less More

- Posts: 81
- Thank you received: 2
-
-

9 years 6 months ago [\#266331](#266331) by [iamalive](/forum/user/4244-iamalive "View iamalive's Profile")  Replied by *[iamalive](/forum/user/4244-iamalive "View iamalive's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266331 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hi Nicolas

I have modified that file "contact", but only to move the buttons from the top to the bottom and to rename them.

The line you quote is still the same.

I'm enclosing a copy of the modified contact form view as a text file for you to check.

Regards
David

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODk1NzYtcmVkaXJlY3QtdG8tY3VzdG9tLXRoYW5rLXlvdS1wYWdlLWZyb20tY29udGFjdC1mb3JtP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

9 years 6 months ago [\#266427](#266427) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266427 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hi,

I know. In the code I gave you, return_url should be changed by redirect_url

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

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

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

Less More

- Posts: 81
- Thank you received: 2
-
-

9 years 6 months ago -  9 years 6 months ago [\#266447](#266447) by [iamalive](/forum/user/4244-iamalive "View iamalive's Profile")  Replied by *[iamalive](/forum/user/4244-iamalive "View iamalive's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266447 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

That did the trick!
Thanks Nicolas.

Anyway to turn off the system message, which is now supurflous to requirements?

Best regards
David

Last edit: 9 years 6 months ago by [iamalive](/forum/user/4244-iamalive "View iamalive's Profile").

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

9 years 6 months ago [\#266494](#266494) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266494 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hello,

One solution would be to edit the translation and leave a empty string instead.
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)

Regards,

---

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

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

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

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

Less More

- Posts: 81
- Thank you received: 2
-
-

9 years 6 months ago [\#266535](#266535) by [iamalive](/forum/user/4244-iamalive "View iamalive's Profile")  Replied by *[iamalive](/forum/user/4244-iamalive "View iamalive's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#266535 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Good idea - I've created the overrides in that way.

Thanks for all your help, Nicolas.

Best regards
David

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

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

Less More

- Posts: 115
- Thank you received: 0
-
-

9 years 4 months ago [\#270487](#270487) by [joycehoveling](/forum/user/48862-joycehoveling "View joycehoveling's Profile")  Replied by *[joycehoveling](/forum/user/48862-joycehoveling "View joycehoveling's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#270487 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hello Nicolas,

I am having the same issue as David had; the redirect page after submitting a message on the contact form is not working. I've put the code as mentioned above in the show_default view file. In my case:

&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).'?redirect_url='.urlencode('[ www.tweedehandjes.com/bedankt-voor-je-bericht.html](https://www.tweedehandjes.com/bedankt-voor-je-bericht.html)'); ?&gt;" class="&lt;?php echo $css_button; ?&gt;"&gt;&lt;?php

Could you see what's wrong?
Also; after the customer submits a comment, I'd like to get an email notification in my admin email. How can I set this?

Thanks in advance,
regards,
Joyce
[ www.tweedehandjes.com/klantenservice.html](https://www.tweedehandjes.com/klantenservice.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODk1NzYtcmVkaXJlY3QtdG8tY3VzdG9tLXRoYW5rLXlvdS1wYWdlLWZyb20tY29udGFjdC1mb3JtP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

9 years 4 months ago [\#270490](#270490) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#270490 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hi,

1. This only works when you use the contact button from the product details page to access the contact form.
If you access the contact form directly, you don't have the redirect_url parameter in the URL.
So in that case, you would have to create a menu item of the type external URL and enter the full URL to access the contact form with the url_encoded URL in the redirect_url parameter of the external URL.

2. Enter your email address in the setting "Send email for new comments" in the HikaShop configuration.

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

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

Less More

- Posts: 115
- Thank you received: 0
-
-

9 years 4 months ago [\#270551](#270551) by [joycehoveling](/forum/user/48862-joycehoveling "View joycehoveling's Profile")  Replied by *[joycehoveling](/forum/user/48862-joycehoveling "View joycehoveling's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#270551 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hi Nicolas,

I am so sorry but I do not understand... I have created the external url of the page where the customer should be redirected to after submitting the contact form:
[ www.tweedehandjes.com/bedankt-voor-je-bericht](https://www.tweedehandjes.com/bedankt-voor-je-bericht)
Could you please help me&gt; What shoud be the correct code and where do i need the put the code?

Thanks in advance
Regards,
Joyce

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84ODk1NzYtcmVkaXJlY3QtdG8tY3VzdG9tLXRoYW5rLXlvdS1wYWdlLWZyb20tY29udGFjdC1mb3JtP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

9 years 4 months ago [\#270558](#270558) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#270558 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Hi,

No, that's not it.
There is no code to put anywhere.
You just need to put the contact form URL as external URL.
For example: Code:

http://www.tweedehandjes.com/index.php?option=com_hikashop&amp;ctrl=product&amp;task=contact&amp;redirect_url=https%3A%2F%2Fwww.tweedehandjes.com%2Fbedankt-voor-je-bericht.html

That way, when you click on the link of that menu item, it will direct you to the contact page of HikaShop with the redirect_url parameter which will be taken into account by HikaShop after the email is sent.

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

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

Less More

- Posts: 115
- Thank you received: 0
-
-

9 years 4 months ago [\#270606](#270606) by [joycehoveling](/forum/user/48862-joycehoveling "View joycehoveling's Profile")  Replied by *[joycehoveling](/forum/user/48862-joycehoveling "View joycehoveling's Profile")* on topic *[Redirect to custom thank you page from Contact form](/forum/33-customers/889576-redirect-to-custom-thank-you-page-from-contact-form#270606 "-- url of the page with the problem -- :   transmetra.imaufbau.ch/Produkt/datenlogger-145  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0  Hi My client would like the contact form to redirect to a thank you page, instead of the current system message. Can you tell me how I do that, please?  Also Is it possible to have the &quot;OK&quot; and &quot;Cancel&quot; buttons next to the captcha rather than at the top of the form? And presumably The OK button can have a different text, eg. &quot;Send&quot;?  Thanks for your help Regards David")*

Ah! clear, thanks!

Regards,
Joyce

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

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

[](#top)
