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

#   Cart resets when user logins

##

- **[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: 86323
- Thank you received: 14283
-
-

15 years 5 months ago [\#16530](#16530) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart resets when user logins](/forum/4-how-to/3477-cart-resets-when-user-logins?start=40#16530 "Hi there,  I don't know if this behavior is intended or if something is wrong with my setup. If I browse the site as a guest and add let's say 8 items in my cart, if I then login, the cart is empty or returns to the last state I had as a logged in visitor.  Is there a way to change this? It would be devastating for a user that searches for a great amount of time the right products and characteristics for him, adds them to the cart and then chooses to login and loose everything.  Great product, great support, thanks in advance.  Iosif")*

Yes. That's the normal behavior. Once the session expires, the cart is reseted. Thus, the products are lost. One solution to implement in the future could be to add cookies to the user browser in order to store his cart so that it could still be retrieved.

For the cart, you could try that instead:
CART_EMPTY="&amp;nbsp;"

It will still be considered as empty by the browser and won't display anything. But HikaShop won't consider it empty and will still put around the divs necessary for the refresh of the cart.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NzctY2FydC1yZXNldHMtd2hlbi11c2VyLWxvZ2lucz9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[didero](/forum/user/1276-didero "View didero's Profile")**
- [![didero's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1276.jpg)](/forum/user/1276-didero "View didero's Profile")
- [ Offline](/forum/user/1276-didero)

Less More

- Posts: 66
- Thank you received: 3
-
-
-
- [](http://www.1968dewinkel.nl)
-

15 years 5 months ago [\#16534](#16534) by [didero](/forum/user/1276-didero "View didero's Profile")  Replied by *[didero](/forum/user/1276-didero "View didero's Profile")* on topic *[Re: Cart resets when user logins](/forum/4-how-to/3477-cart-resets-when-user-logins?start=40#16534 "Hi there,  I don't know if this behavior is intended or if something is wrong with my setup. If I browse the site as a guest and add let's say 8 items in my cart, if I then login, the cart is empty or returns to the last state I had as a logged in visitor.  Is there a way to change this? It would be devastating for a user that searches for a great amount of time the right products and characteristics for him, adds them to the cart and then chooses to login and loose everything.  Great product, great support, thanks in advance.  Iosif")*

Ok Thank you. Maybe that's an option for next time. I have used the nonbreakingspace here and there already (views, language files etc.). As I mentioned before I find the whole procedure of logging off and on while loosing the products added to the cart rather confusing for a customer. If that could be solved in a future release with a cookie session excellent.

Will that mean that version 1.5.0 that I have downloaded this afternoon will be the final version?

Does not belong here but in the meantime I was thinking of a new feature. A wish list where customers could place products that they buy frequently. From that wish list they can add the products directly to the shopping cart. Will post that later.

---

[ ](http://www.didero.nl)[ www.didero.nl](http://www.didero.nl)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NzctY2FydC1yZXNldHMtd2hlbi11c2VyLWxvZ2lucz9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

15 years 5 months ago [\#16536](#16536) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart resets when user logins](/forum/4-how-to/3477-cart-resets-when-user-logins?start=40#16536 "Hi there,  I don't know if this behavior is intended or if something is wrong with my setup. If I browse the site as a guest and add let's say 8 items in my cart, if I then login, the cart is empty or returns to the last state I had as a logged in visitor.  Is there a way to change this? It would be devastating for a user that searches for a great amount of time the right products and characteristics for him, adds them to the cart and then chooses to login and loose everything.  Great product, great support, thanks in advance.  Iosif")*

Unless we find another big bug which needs to be corrected immediately, yes ![:)](/media/kunena/emoticons/3.png ":)")

That's already in the todo list. That's in part why we save the cart in the database. Wish lists will just be carts with another type in the cart table...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NzctY2FydC1yZXNldHMtd2hlbi11c2VyLWxvZ2lucz9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/register) 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.076 seconds

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