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

#   Carts are displayed instead of Wishlists

##

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

Less More

- Posts: 69
- Thank you received: 11
-
- [](http://likandevelopment.com)
-

13 years 9 months ago -  13 years 9 months ago [\#85317](#85317) by [likandev](/forum/user/9788-likandev "View likandev's Profile")  *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#85317 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")* was created by *[likandev](/forum/user/9788-likandev "View likandev's Profile")*

Joomla 2.5.
Hikashop 2.0.0

I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.

Currently, if I go to:

http://localhost/made/index.php?option=com_hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart_type=wishlist&amp;Itemid=512&amp;lang=es

It will show CARTS, not WISHLISTS. --&gt; Note that the cart_type var is specifying "wishlist".

I checked the code and, on line #279 of front_End../views/cart/view.html.php I see the following code.
Code:

if(empty($cart_type)){ if (is_object( $menu )) { $cart_type = $menu-&gt;params-&gt;get('cart_type'); JRequest::setVar('cart_type',$cart_type); } } if(empty($cart_type)){ $cart_type = JRequest::getString('cart_type','cart'); }

I thought the order is causing HS to always set the cart type to "cart". I changed the order of the to IFs to:
Code:

if(empty($cart_type)){ $cart_type = JRequest::getString('cart_type','cart'); } if(empty($cart_type)){ if (is_object( $menu )) { $cart_type = $menu-&gt;params-&gt;get('cart_type'); JRequest::setVar('cart_type',$cart_type); } }

This worked and I was able to get my carts and wishlist displaying according to the cart_type specified.

Q: is this the correct thing to do to get it fixed?

---

Eduardo Chongkan - Likan Development
[ ](http://likandevelopment.com)[ likandevelopment.com](http://likandevelopment.com)

Last edit: 13 years 9 months ago by [likandev](/forum/user/9788-likandev "View likandev's Profile"). Reason: Added Joomla and HS versions

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

13 years 9 months ago [\#85403](#85403) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#85403 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

Hi,

Thanks for the report.
You should better use this correction: Code:

if(empty($cart_type)){ if (is_object( $menu ) &amp;&amp; !empty($menu-&gt;params-&gt;get('cart_type'))) { $cart_type = $menu-&gt;params-&gt;get('cart_type'); JRequest::setVar('cart_type',$cart_type); }else{ $cart_type = JRequest::getString('cart_type','cart'); } }

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

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

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

Less More

- Posts: 69
- Thank you received: 11
-
- [](http://likandevelopment.com)
-

13 years 9 months ago [\#85542](#85542) by [likandev](/forum/user/9788-likandev "View likandev's Profile")  Replied by *[likandev](/forum/user/9788-likandev "View likandev's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#85542 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

I tried it but it returns:

Fatal error: Can't use method return value in write context in ..components/com_hikashop/views/cart/view.html.php on line 281

---

Eduardo Chongkan - Likan Development
[ ](http://likandevelopment.com)[ likandevelopment.com](http://likandevelopment.com)

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

13 years 9 months ago [\#85600](#85600) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#85600 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

Yes, my mistake. Code:

if(empty($cart_type)){ if (is_object( $menu )) { $cart_type = $menu-&gt;params-&gt;get('cart_type'); } if(!empty($cart_type){ JRequest::setVar('cart_type',$cart_type); }else{ $cart_type = JRequest::getString('cart_type','cart'); } }

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

13 years 9 months ago -  13 years 9 months ago [\#86482](#86482) by [ricalex](/forum/user/5814-ricalex "View ricalex's Profile")  Replied by *[ricalex](/forum/user/5814-ricalex "View ricalex's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#86482 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

Hey, thanks a lot, I also used your fix (switching the order) and it worked. Please post if you encounter any bugs and I will do the same.

Last edit: 13 years 9 months ago by [ricalex](/forum/user/5814-ricalex "View ricalex's Profile").

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

13 years 9 months ago [\#86483](#86483) by [ricalex](/forum/user/5814-ricalex "View ricalex's Profile")  Replied by *[ricalex](/forum/user/5814-ricalex "View ricalex's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#86483 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

Bug encountered, when I click on the wishlist ID, it shows a blank list. Any Ideas?

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

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

Less More

- Posts: 69
- Thank you received: 11
-
- [](http://likandevelopment.com)
-

13 years 9 months ago [\#86484](#86484) by [likandev](/forum/user/9788-likandev "View likandev's Profile")  Replied by *[likandev](/forum/user/9788-likandev "View likandev's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#86484 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

It doesn't happen to me, I click on the ID / Name, and it takes me to the wishlist details.

I ended up using my code, not Xavier's because I didn't have time that day to wait for the fix, since it worked I didn't test Xavier's last suggestion.

What code are you using?

---

Eduardo Chongkan - Likan Development
[ ](http://likandevelopment.com)[ likandevelopment.com](http://likandevelopment.com)

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

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

13 years 9 months ago [\#86552](#86552) by [ricalex](/forum/user/5814-ricalex "View ricalex's Profile")  Replied by *[ricalex](/forum/user/5814-ricalex "View ricalex's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#86552 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

I used your idea, just switching stuff around. the Id not working is a bummer though....I hope an admin can help.

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

13 years 9 months ago [\#86725](#86725) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#86725 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

Have you tried my latest given code ?

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

13 years 9 months ago [\#86733](#86733) by [ricalex](/forum/user/5814-ricalex "View ricalex's Profile")  Replied by *[ricalex](/forum/user/5814-ricalex "View ricalex's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#86733 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

I tried your latest code on line 279 and it's giving me a HTTP Error 500

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

13 years 9 months ago [\#86735](#86735) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#86735 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

Can you give me this 500 error ?

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

13 years 9 months ago [\#86736](#86736) by [ricalex](/forum/user/5814-ricalex "View ricalex's Profile")  Replied by *[ricalex](/forum/user/5814-ricalex "View ricalex's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#86736 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

this is how the code looks in the site:

$menu = $menus-&gt;getItem($Itemid);
}
}
if(empty($cart_type)){
if (is_object( $menu )) {
$cart_type = $menu-&gt;params-&gt;get('cart_type');
}
if(!empty($cart_type){
JRequest::setVar('cart_type',$cart_type);
}else{
$cart_type = JRequest::getString('cart_type','cart');
}
}
$pageInfo = new stdClass();
$pageInfo-&gt;filter = new stdClass();
$pageInfo

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

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

Less More

- Posts: 69
- Thank you received: 11
-
- [](http://likandevelopment.com)
-

13 years 9 months ago -  13 years 9 months ago [\#86880](#86880) by [likandev](/forum/user/9788-likandev "View likandev's Profile")  Replied by *[likandev](/forum/user/9788-likandev "View likandev's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#86880 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

You have a syntax error, missing ")" on the second IF

Use this code: (Xavier's)
Code:

if(empty($cart_type)){ if (is_object( $menu )) { $cart_type = $menu-&gt;params-&gt;get('cart_type'); } if(!empty($cart_type)) { JRequest::setVar('cart_type',$cart_type); }else{ $cart_type = JRequest::getString('cart_type','cart'); } }

I also recommend you to use a good IDE or editor, one that points syntax errors.

I use Aptana, but I think Notepad++ also works.

---

Eduardo Chongkan - Likan Development
[ ](http://likandevelopment.com)[ likandevelopment.com](http://likandevelopment.com)

Last edit: 13 years 9 months ago by [likandev](/forum/user/9788-likandev "View likandev's Profile").

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

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

13 years 8 months ago [\#88516](#88516) by [ricalex](/forum/user/5814-ricalex "View ricalex's Profile")  Replied by *[ricalex](/forum/user/5814-ricalex "View ricalex's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#88516 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

Thanks, I added the code that was missing, but it's still not working for me.

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

13 years 8 months ago [\#88560](#88560) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#88560 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

The correction will be in the next release which should arrive soon.
Thanks to wait for it, and then tell us if the problem is solved.

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

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

Less More

- Posts: 15
- Thank you received: 2
-
-

13 years 8 months ago [\#88604](#88604) by [ricalex](/forum/user/5814-ricalex "View ricalex's Profile")  Replied by *[ricalex](/forum/user/5814-ricalex "View ricalex's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#88604 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

Thanks. I will let you know.

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

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

Less More

- Posts: 84
- Thank you received: 1
-
-

13 years 7 months ago [\#93028](#93028) by [goloon](/forum/user/12468-goloon "View goloon's Profile")  Replied by *[goloon](/forum/user/12468-goloon "View goloon's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#93028 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

I'm experiencing some of these problems as well. Wishlist list page shows cart list. Is there a solid fix/update for this?

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

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

Less More

- Posts: 84
- Thank you received: 1
-
-

13 years 7 months ago [\#93036](#93036) by [goloon](/forum/user/12468-goloon "View goloon's Profile")  Replied by *[goloon](/forum/user/12468-goloon "View goloon's Profile")* on topic *[Carts are displayed instead of Wishlists](/forum/3-bug-report/77414-carts-are-displayed-instead-of-wishlists#93036 "Joomla 2.5. Hikashop 2.0.0  I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.  Currently, if I go to:  http://localhost/made/index.php?option=com&#95;hikashop&amp;ctrl=cart&amp;task=showcarts&amp;cart&#95;type=wishlist&amp;Itemid=512&amp;lang=es  It will show CARTS, not WISHLISTS. --&gt; Note that the cart&#95;type var is specifying &quot;wishlist&quot;.  I checked the code and, on line #279 of front&#95;End../views/cart/view.html.php I see the following code.  I thought the order is causing HS to always set the cart type to &quot;cart&quot;. I changed the order of the to IFs to:  This worked and I was able to get my carts and wishlist displaying according to the cart&#95;type specified.  Q: is this the correct thing to do to get it fixed?")*

ok, downloaded the todays latest version and seems to work fine now. Thanks.

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

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

[](#top)
