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

#   change wishlist redirection

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

14 years 3 weeks ago [\#69069](#69069) by [gamederek](/forum/user/9550-gamederek "View gamederek's Profile")  *[change wishlist redirection](/forum/4-how-to/69069-change-wishlist-redirection#69069 "I add things to our wishlists and the wishlist automatically redirects to a page with the wishlist. Isn't is supposed to operate more like the cart? How do I configure it so it doesn't behave this way?")* was created by *[gamederek](/forum/user/9550-gamederek "View gamederek's Profile")*

I add things to our wishlists and the wishlist automatically redirects to a page with the wishlist. Isn't is supposed to operate more like the cart? How do I configure it so it doesn't behave this way?

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

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

Less More

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

14 years 3 weeks ago [\#69181](#69181) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: change wishlist redirection](/forum/4-how-to/69069-change-wishlist-redirection#69181 "I add things to our wishlists and the wishlist automatically redirects to a page with the wishlist. Isn't is supposed to operate more like the cart? How do I configure it so it doesn't behave this way?")*

Hi gamederek,

Edit your file: "yourSite\components\com_hikashop\controllers\product.php", and try to replace the code: Code:

switch($redirectConfig){ [...] } if(empty($url)){ global $Itemid; if(isset($from_id))$cart_id = $from_id; if(JRequest::getInt('new_'.$cart_type.'_id',0)!= 0 &amp;&amp; JRequest::getInt('delete',0) == 0)$cart_id = JRequest::getInt('new_'.$cart_type.'_id',0); $cart = $class-&gt;get($cart_id,false,$cart_type); if(!empty($cart) &amp;&amp; (int)$cart_id != 0){ $url = 'cart&amp;task=showcart&amp;cart_type=wishlist&amp;cart_id='.$cart_id.'&amp;Itemid='.$Itemid; }else{ $url = 'cart&amp;task=showcarts&amp;cart_type=wishlist&amp;Itemid='.$Itemid; } $url = hikashop_completeLink($url,false,true); } $this-&gt;setRedirect($url);

By: Code:

switch($redirectConfig){ case 'ask_user': $url = JRequest::getVar('return_url',''); if(!empty($url)){ $url=base64_decode(urldecode($url)); } if(JRequest::getInt('popup')){ if(strpos($url,'?')){ $url.='&amp;'; }else{ $url.='?'; } $url.='popup=1&amp;cart_type=wishlist&amp;cart_id='.$cart_id; } JRequest::setVar('cart_type','wishlist'); break; case 'stay': $stay = 1; break; case 'checkout': case 'stay_if_cart': $module = JModuleHelper::getModule('hikashop_cart',false); if($module != null){ $stay = 1; } break; default: break; } if(empty($url)){ global $Itemid; if(isset($from_id))$cart_id = $from_id; if(JRequest::getInt('new_'.$cart_type.'_id',0)!= 0 &amp;&amp; JRequest::getInt('delete',0) == 0)$cart_id = JRequest::getInt('new_'.$cart_type.'_id',0); $cart = $class-&gt;get($cart_id,false,$cart_type); if(!empty($cart) &amp;&amp; (int)$cart_id != 0){ $url = 'cart&amp;task=showcart&amp;cart_type=wishlist&amp;cart_id='.$cart_id.'&amp;Itemid='.$Itemid; }else{ $url = 'cart&amp;task=showcarts&amp;cart_type=wishlist&amp;Itemid='.$Itemid; } $url = hikashop_completeLink($url,false,true); } if($stay == 0) $this-&gt;setRedirect($url); else{ echo '&lt;html&gt;&lt;head&gt;&lt;script type="text/javascript"&gt;history.back();&lt;/script&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;'; exit; }

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

14 years 2 weeks ago [\#69945](#69945) by [gamederek](/forum/user/9550-gamederek "View gamederek's Profile")  Replied by *[gamederek](/forum/user/9550-gamederek "View gamederek's Profile")* on topic *[Re: change wishlist redirection](/forum/4-how-to/69069-change-wishlist-redirection#69945 "I add things to our wishlists and the wishlist automatically redirects to a page with the wishlist. Isn't is supposed to operate more like the cart? How do I configure it so it doesn't behave this way?")*

The code you were referring to does not exist in this file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY5MDY5LWNoYW5nZS13aXNobGlzdC1yZWRpcmVjdGlvbj90bXBsPW1hcmtkb3du) 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: 86316
- Thank you received: 14276
-
-

14 years 2 weeks ago [\#69952](#69952) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: change wishlist redirection](/forum/4-how-to/69069-change-wishlist-redirection#69952 "I add things to our wishlists and the wishlist automatically redirects to a page with the wishlist. Isn't is supposed to operate more like the cart? How do I configure it so it doesn't behave this way?")*

It's that code that you need to replace by the second piece of code that Xavier proposed:
Code:

global $Itemid; if(isset($from_id))$cart_id = $from_id; if(JRequest::getInt('new_'.$cart_type.'_id',0)!= 0 &amp;&amp; JRequest::getInt('delete',0) == 0)$cart_id = JRequest::getInt('new_'.$cart_type.'_id',0); $cart = $class-&gt;get($cart_id,false,$cart_type); if(!empty($cart) &amp;&amp; (int)$cart_id != 0){ $url = 'cart&amp;task=showcart&amp;cart_type=wishlist&amp;cart_id='.$cart_id.'&amp;Itemid='.$Itemid; }else{ $url = 'cart&amp;task=showcarts&amp;cart_type=wishlist&amp;Itemid='.$Itemid; } $url = hikashop_completeLink($url,false,true); $this-&gt;setRedirect($url);

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

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

[](#top)
