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

#   Message after adding to wishlist wrong

##

- **[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 5 months ago [\#159914](#159914) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Message after adding to wishlist wrong](/forum/41-wishlist/868648-message-after-adding-to-wishlist-wrong?start=20#159914 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Minor problem that I have found, can it be fixed?  After adding a product to the wishlist the pop-up message says it's been added to the 'cart' not the 'wishlist'  Solution please.  thanks")*

Hi,

I have reproduced the issue on my end and correct it. Thanks for the report.
To make it working, thanks to edit the file "components/com_hikashop/controllers/cart.php" and replace the function "delete()" by: Code:

function delete(){ //delete a cart with the id given $cart_id = JRequest::getInt('cart_id','0'); $cart_type = JRequest::getString('cart_type','cart'); $cartClass = hikashop_get('class.cart'); $cartClass-&gt;cart_type = $cart_type; $cartInfo = $cartClass-&gt;loadCart($cart_id); $currUser = hikashop_loadUser(true); if($cartInfo != null &amp;&amp; $currUser-&gt;user_cms_id == $cartInfo-&gt;user_id){ $app = JFactory::getApplication(); if($app-&gt;getUserState(HIKASHOP_COMPONENT.'.'.$cart_type.'_id') == $cart_id){ $app-&gt;setUserState(HIKASHOP_COMPONENT.'.'.$cart_type.'_id', '0'); } $cartClass-&gt;delete($cart_id, 'old'); } $this-&gt;showcarts(); }

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

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

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

Less More

- Posts: 611
- Thank you received: 13
-

12 years 5 months ago -  12 years 5 months ago [\#161358](#161358) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Message after adding to wishlist wrong](/forum/41-wishlist/868648-message-after-adding-to-wishlist-wrong?start=20#161358 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Minor problem that I have found, can it be fixed?  After adding a product to the wishlist the pop-up message says it's been added to the 'cart' not the 'wishlist'  Solution please.  thanks")*

Hi I have had to re-install after issues with your new release and now have this problem back again, as you did not put here how you fixed it can you advise so I can do this myself. (the wishlist issue)

thanks

Last edit: 12 years 5 months ago by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg2ODY0OC1tZXNzYWdlLWFmdGVyLWFkZGluZy10by13aXNobGlzdC13cm9uZz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 5 months ago [\#161361](#161361) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Message after adding to wishlist wrong](/forum/41-wishlist/868648-message-after-adding-to-wishlist-wrong?start=20#161361 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Minor problem that I have found, can it be fixed?  After adding a product to the wishlist the pop-up message says it's been added to the 'cart' not the 'wishlist'  Solution please.  thanks")*

Hi,

> as you did not put here how you fixed it

The topic:
[ hikashop.com/forum/wishlist/868648-messa...-wrong.html?start=20](https://hikashop.com/forum/wishlist/868648-message-after-adding-to-wishlist-wrong.html?start=20) #159914

Was actually explaining how to solve the issue ![;)](/media/kunena/emoticons/24.png ";)") So you just have to:

> edit the file "components/com\_hikashop/controllers/cart.php" and replace the function "delete()" by:

the code given in the previous post.

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

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

Less More

- Posts: 611
- Thank you received: 13
-

12 years 5 months ago [\#161516](#161516) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Message after adding to wishlist wrong](/forum/41-wishlist/868648-message-after-adding-to-wishlist-wrong?start=20#161516 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Minor problem that I have found, can it be fixed?  After adding a product to the wishlist the pop-up message says it's been added to the 'cart' not the 'wishlist'  Solution please.  thanks")*

Hi, Sorry but there is 2 errors here, The 'delete' now works thanks to your code it is the 'wishlist' error further up the post that has got broken again after you fixed it by going in to my back end (pardon the pun)

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg2ODY0OC1tZXNzYWdlLWFmdGVyLWFkZGluZy10by13aXNobGlzdC13cm9uZz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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 5 months ago [\#161545](#161545) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Message after adding to wishlist wrong](/forum/41-wishlist/868648-message-after-adding-to-wishlist-wrong?start=20#161545 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Minor problem that I have found, can it be fixed?  After adding a product to the wishlist the pop-up message says it's been added to the 'cart' not the 'wishlist'  Solution please.  thanks")*

Hi,

Sorry, the other modification was to replace the function "notice()" in "components/com_hikashop/views/checkout/view.html.php" by: Code:

function notice() { global $Itemid; $url_itemid=''; if(!empty($Itemid)) { $url_itemid='&amp;Itemid='.$Itemid; } jimport('joomla.html.parameter'); $class = hikashop_get('helper.cart'); $this-&gt;assignRef('url_itemid',$url_itemid); $this-&gt;assignRef('cartClass',$class); $config =&amp; hikashop_config(); $this-&gt;assignRef('config',$config); $cart_type = JRequest::getVar('cart_type',''); if(!empty($cart_type)){ $app = JFactory::getApplication(); $app-&gt;setUserState(HIKASHOP_COMPONENT.'.popup_cart_type',$cart_type); } }

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

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

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