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

#   Shopping Cart not merging on different sessions

##

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

Less More

- Posts: 25
- Thank you received: 0
-
-

15 years 6 months ago -  15 years 6 months ago [\#16113](#16113) by [hoken](/forum/user/934-hoken "View hoken's Profile")  *[Shopping Cart not merging on different sessions](/forum/3-bug-report/16113-shopping-cart-not-merging-on-different-sessions#16113 "Hi, I am noticing issues where items saved for a user are not merged with new items on a new session. Here are the steps where I can consistently reproduce. Would really appreciate any help!  1. Navigate to demo product page:  2. Register a new user 3. Add an item to shopping cart 4. Log out 5. Add a different item to the shopping cart 6a. Login again. (go to step 7) 6b. (Alternate Step) Proceed to Checkout and login again 7. Check Shopping Cart  - At this point the shopping cart will either only have items added from step 3 (scenario 6a) or only items added in step 5 (scenario 6b). Is there any way to fix it so the items will merge when user logins again?  Thanks!")* was created by *[hoken](/forum/user/934-hoken "View hoken's Profile")*

Hi, I am noticing issues where items saved for a user are not merged with new items on a new session. Here are the steps where I can consistently reproduce. Would really appreciate any help!

1. Navigate to demo product page:

2. Register a new user
3. Add an item to shopping cart
4. Log out
5. Add a different item to the shopping cart
6a. Login again. (go to step 7)
6b. (Alternate Step) Proceed to Checkout and login again
7. Check Shopping Cart

- At this point the shopping cart will either only have items added from step 3 (scenario 6a) or only items added in step 5 (scenario 6b). Is there any way to fix it so the items will merge when user logins again?

Thanks!

Last edit: 15 years 6 months ago by [hoken](/forum/user/934-hoken "View hoken's Profile").

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

15 years 6 months ago [\#16122](#16122) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Shopping Cart not merging on different sessions](/forum/3-bug-report/16113-shopping-cart-not-merging-on-different-sessions#16122 "Hi, I am noticing issues where items saved for a user are not merged with new items on a new session. Here are the steps where I can consistently reproduce. Would really appreciate any help!  1. Navigate to demo product page:  2. Register a new user 3. Add an item to shopping cart 4. Log out 5. Add a different item to the shopping cart 6a. Login again. (go to step 7) 6b. (Alternate Step) Proceed to Checkout and login again 7. Check Shopping Cart  - At this point the shopping cart will either only have items added from step 3 (scenario 6a) or only items added in step 5 (scenario 6b). Is there any way to fix it so the items will merge when user logins again?  Thanks!")*

When you login hikashop checks whether or not you have a cart in your anonymous session. If yes, it links it to your user account. If not, it uses the last cart you had while logged in.
When you logout, the new anonymous session does not keep the cart.
That behavior should be consistent unless you have the problem on that thread: [ www.hikashop.com/en/support/forum/4-how-...ml?limit=20&amp;start=20](http://www.hikashop.com/en/support/forum/4-how-to/3477-cart-resets-when-user-logins.html?limit=20&start=20) (there is also the solution there)
In that case, the behavior might be different based on whether you login from within hikashop or from joomla.

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

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