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

#   Multi wishlist but no multi cart

##

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

Less More

- Posts: 200
- Thank you received: 75
-
-

7 years 2 months ago [\#311178](#311178) by [GW](/forum/user/33851-gw "View GW's Profile")  *[Multi wishlist but no multi cart](/forum/41-wishlist/898322-multi-wishlist-but-no-multi-cart#311178 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.11  Hi,  we would like users to have only one cart, but they are allowed to have multiple wishlists. In the configuration we've switched &quot;Enable multi carts&quot; to NO and &quot;Enable multi wishlists&quot; to YES, but this doesn't work entirely. Users can move products to different wishlists, the problem is that there is no way to access the different wishlists as the listing page is inaccessible, both the &quot;Cart listing&quot; menu item with wishlist selected and in the user cpanel &quot;Wishlists&quot; will not redirect to a listing but directly to only one wishlist.  We can see in the sourcecode this is because both multicart and multiwishlist must be true to be able to see the wislist listing page. This means at the moment you only have 3 options: multicart/multiwishlist, multicart/singlewishlist or singlecart/singlewishlist. We would like to propose making the configuration settings &quot;Enable multi carts&quot; and &quot;Enable multi wishlists&quot; independent of each other so the option singlecart/multiwishlist is also possible.  We've had a look at the code and the changes appear to be only a few to make this work:  Thanks.")* was created by *[GW](/forum/user/33851-gw "View GW's Profile")*

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.11

Hi,

we would like users to have only one cart, but they are allowed to have multiple wishlists.
In the configuration we've switched "Enable multi carts" to NO and "Enable multi wishlists" to YES, but this doesn't work entirely. Users can move products to different wishlists, the problem is that there is no way to access the different wishlists as the listing page is inaccessible, both the "Cart listing" menu item with wishlist selected and in the user cpanel "Wishlists" will not redirect to a listing but directly to only one wishlist.

We can see in the sourcecode this is because both multicart and multiwishlist must be true to be able to see the wislist listing page. This means at the moment you only have 3 options: multicart/multiwishlist, multicart/singlewishlist or singlecart/singlewishlist.
We would like to propose making the configuration settings "Enable multi carts" and "Enable multi wishlists" independent of each other so the option singlecart/multiwishlist is also possible.

We've had a look at the code and the changes appear to be only a few to make this work: Code:

In views/user/view.html.php change line 82 from if($config-&gt;get('enable_multicart') &amp;&amp; $config-&gt;get('enable_multiwishlist', 1)) to if($config-&gt;get('enable_multiwishlist', 1))

Code:

In controllers/cart.php change line 196 from if($cart_type == 'wishlist' &amp;&amp; $multi_cart) to if($cart_type == 'wishlist')

Code:

In views/cart/view.html.php change line 423 from if($cart-&gt;cart_type == 'wishlist' &amp;&amp; $multi_cart) to if($cart-&gt;cart_type == 'wishlist')

Code:

And perhaps a small mistake we found on line 285, instead of $multi_wishlist = (int)$config-&gt;get('enable_wishlist', 1); should this be $multi_wishlist = (int)$config-&gt;get('enable_multiwishlist', 1);

Thanks.

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

7 years 2 months ago [\#311219](#311219) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Multi wishlist but no multi cart](/forum/41-wishlist/898322-multi-wishlist-but-no-multi-cart#311219 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.11  Hi,  we would like users to have only one cart, but they are allowed to have multiple wishlists. In the configuration we've switched &quot;Enable multi carts&quot; to NO and &quot;Enable multi wishlists&quot; to YES, but this doesn't work entirely. Users can move products to different wishlists, the problem is that there is no way to access the different wishlists as the listing page is inaccessible, both the &quot;Cart listing&quot; menu item with wishlist selected and in the user cpanel &quot;Wishlists&quot; will not redirect to a listing but directly to only one wishlist.  We can see in the sourcecode this is because both multicart and multiwishlist must be true to be able to see the wislist listing page. This means at the moment you only have 3 options: multicart/multiwishlist, multicart/singlewishlist or singlecart/singlewishlist. We would like to propose making the configuration settings &quot;Enable multi carts&quot; and &quot;Enable multi wishlists&quot; independent of each other so the option singlecart/multiwishlist is also possible.  We've had a look at the code and the changes appear to be only a few to make this work:  Thanks.")*

Hi,

Thank you for your feedback. I can confim the 3 patchs. I've added them on our end.

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

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