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

#   \[SOLVED\]cancel button and redirect to another page

##

- **[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")**
- [![alain.roger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5399.png)](/forum/user/5399-alain-roger "View alain.roger's Profile") Topic Author
- [ Offline](/forum/user/5399-alain-roger)

Less More

- Posts: 192
- Thank you received: 1
-
-
- [](http://www.korcule-kolieska.sk)
-

14 years 10 months ago -  14 years 10 months ago [\#36906](#36906) by [alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")  *[\[SOLVED\]cancel button and redirect to another page](/forum/4-how-to/36906-solved-cancel-button-and-redirect-to-another-page#36906 "Hi,  i would like to user a particular article as control panel for users. it's not that i'm not satisfied with your control panel, it's just i have several components and plug-ins which i would like to centralize on 1 single page...something like Amazon does for user account.  therefore i would like to know if it's possible to redirect user when he clicked on cancel button (for example in addresses or order lists) to another page ?  thank a lot,  A.")* was created by *[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")*

Hi,

i would like to user a particular article as control panel for users. it's not that i'm not satisfied with your control panel, it's just i have several components and plug-ins which i would like to centralize on 1 single page...something like Amazon does for user account.

therefore i would like to know if it's possible to redirect user when he clicked on cancel button (for example in addresses or order lists) to another page ?

thank a lot,

A.

---

*What does not kill you, makes you stronger.*

Last edit: 14 years 10 months ago by [alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile").

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

- **[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")**
- [![alain.roger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5399.png)](/forum/user/5399-alain-roger "View alain.roger's Profile") Topic Author
- [ Offline](/forum/user/5399-alain-roger)

Less More

- Posts: 192
- Thank you received: 1
-
-
- [](http://www.korcule-kolieska.sk)
-

14 years 10 months ago [\#37040](#37040) by [alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")  Replied by *[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")* on topic *[Re: cancel button and redirect to another page](/forum/4-how-to/36906-solved-cancel-button-and-redirect-to-another-page#37040 "Hi,  i would like to user a particular article as control panel for users. it's not that i'm not satisfied with your control panel, it's just i have several components and plug-ins which i would like to centralize on 1 single page...something like Amazon does for user account.  therefore i would like to know if it's possible to redirect user when he clicked on cancel button (for example in addresses or order lists) to another page ?  thank a lot,  A.")*

Hi Nicolas,

could you tell me if it's possible or not to do what i request previously ?

thx.

---

*What does not kill you, makes you stronger.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2OTA2LXNvbHZlZC1jYW5jZWwtYnV0dG9uLWFuZC1yZWRpcmVjdC10by1hbm90aGVyLXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

14 years 10 months ago [\#37043](#37043) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: cancel button and redirect to another page](/forum/4-how-to/36906-solved-cancel-button-and-redirect-to-another-page#37043 "Hi,  i would like to user a particular article as control panel for users. it's not that i'm not satisfied with your control panel, it's just i have several components and plug-ins which i would like to centralize on 1 single page...something like Amazon does for user account.  therefore i would like to know if it's possible to redirect user when he clicked on cancel button (for example in addresses or order lists) to another page ?  thank a lot,  A.")*

Hi,

All HikaShop view could be override.
In the backend, go into "Display =&gt; Views" and use the filter "user".
You will find "user / cpanel".

You can override it as you wish and if you want to use another page, you can redirect the user to another one.

Hope it would help you.

Regards,

---

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

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

- **[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")**
- [![alain.roger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5399.png)](/forum/user/5399-alain-roger "View alain.roger's Profile") Topic Author
- [ Offline](/forum/user/5399-alain-roger)

Less More

- Posts: 192
- Thank you received: 1
-
-
- [](http://www.korcule-kolieska.sk)
-

14 years 10 months ago -  14 years 10 months ago [\#37053](#37053) by [alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")  Replied by *[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")* on topic *[Re: cancel button and redirect to another page](/forum/4-how-to/36906-solved-cancel-button-and-redirect-to-another-page#37053 "Hi,  i would like to user a particular article as control panel for users. it's not that i'm not satisfied with your control panel, it's just i have several components and plug-ins which i would like to centralize on 1 single page...something like Amazon does for user account.  therefore i would like to know if it's possible to redirect user when he clicked on cancel button (for example in addresses or order lists) to another page ?  thank a lot,  A.")*

Thx Jerome for info, but what is the best way to load it as the content i must load into yourcpanel.hp is in fact an article content ?

would a simple JRoute will be enough ?
i tried something like: Code:

JRoute::_('index.php?option=com_content&amp;view=article&amp;id=18&amp;Itemid=324');

and got blank page ![:-(](/media/kunena/emoticons/22.png ":-(")

---

*What does not kill you, makes you stronger.*

Last edit: 14 years 10 months ago by [alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2OTA2LXNvbHZlZC1jYW5jZWwtYnV0dG9uLWFuZC1yZWRpcmVjdC10by1hbm90aGVyLXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

14 years 10 months ago [\#37066](#37066) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: cancel button and redirect to another page](/forum/4-how-to/36906-solved-cancel-button-and-redirect-to-another-page#37066 "Hi,  i would like to user a particular article as control panel for users. it's not that i'm not satisfied with your control panel, it's just i have several components and plug-ins which i would like to centralize on 1 single page...something like Amazon does for user account.  therefore i would like to know if it's possible to redirect user when he clicked on cancel button (for example in addresses or order lists) to another page ?  thank a lot,  A.")*

JRoute give you the url but you have to use $app-&gt;redirect() for redirection.

Something like: Code:

$app =&amp; JFactory::getApplication(); $url = JRoute::_('index.php?option=com_content&amp;view=article&amp;id=18&amp;Itemid=324', false); $app-&gt;redirect( $url );

---

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

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

- **[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")**
- [![alain.roger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5399.png)](/forum/user/5399-alain-roger "View alain.roger's Profile") Topic Author
- [ Offline](/forum/user/5399-alain-roger)

Less More

- Posts: 192
- Thank you received: 1
-
-
- [](http://www.korcule-kolieska.sk)
-

14 years 10 months ago [\#37086](#37086) by [alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")  Replied by *[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")* on topic *[Re: cancel button and redirect to another page](/forum/4-how-to/36906-solved-cancel-button-and-redirect-to-another-page#37086 "Hi,  i would like to user a particular article as control panel for users. it's not that i'm not satisfied with your control panel, it's just i have several components and plug-ins which i would like to centralize on 1 single page...something like Amazon does for user account.  therefore i would like to know if it's possible to redirect user when he clicked on cancel button (for example in addresses or order lists) to another page ?  thank a lot,  A.")*

Thx Jerome,

i discovered that doing this when user clicked on cancel button, the response time is longer than normal.
Is there a better way to do that ?

i was thinking to speed up things to directly into cpanel.php to write the code which is in article but as my website should soon be translated into several languages i don't know how i will translate the content of cpanel.php.

---

*What does not kill you, makes you stronger.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2OTA2LXNvbHZlZC1jYW5jZWwtYnV0dG9uLWFuZC1yZWRpcmVjdC10by1hbm90aGVyLXBhZ2U/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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

14 years 10 months ago [\#37181](#37181) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: cancel button and redirect to another page](/forum/4-how-to/36906-solved-cancel-button-and-redirect-to-another-page#37181 "Hi,  i would like to user a particular article as control panel for users. it's not that i'm not satisfied with your control panel, it's just i have several components and plug-ins which i would like to centralize on 1 single page...something like Amazon does for user account.  therefore i would like to know if it's possible to redirect user when he clicked on cancel button (for example in addresses or order lists) to another page ?  thank a lot,  A.")*

The redirect is your best bet I would say if you want to handle multiple languages. It sure takes a bit more time to display the page but not that much.

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

- **[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")**
- [![alain.roger's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5399.png)](/forum/user/5399-alain-roger "View alain.roger's Profile") Topic Author
- [ Offline](/forum/user/5399-alain-roger)

Less More

- Posts: 192
- Thank you received: 1
-
-
- [](http://www.korcule-kolieska.sk)
-

14 years 10 months ago [\#37184](#37184) by [alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")  Replied by *[alain.roger](/forum/user/5399-alain-roger "View alain.roger's Profile")* on topic *[Re: cancel button and redirect to another page](/forum/4-how-to/36906-solved-cancel-button-and-redirect-to-another-page#37184 "Hi,  i would like to user a particular article as control panel for users. it's not that i'm not satisfied with your control panel, it's just i have several components and plug-ins which i would like to centralize on 1 single page...something like Amazon does for user account.  therefore i would like to know if it's possible to redirect user when he clicked on cancel button (for example in addresses or order lists) to another page ?  thank a lot,  A.")*

thank for your feedback.
i did it like that.

---

*What does not kill you, makes you stronger.*

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

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