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

#   Cart emptied on log-in

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 10 months ago [\#3640](#3640) by [sholloway](/forum/user/231-sholloway "View sholloway's Profile")  *[Cart emptied on log-in](/forum/3-bug-report/3640-cart-emptied-on-log-in#3640 "An error which has now started occurring (it wasn't there before) is that when a user has added some items to the cart, the cart is emptied on logging in. If the user then adds the same items again...")* was created by *[sholloway](/forum/user/231-sholloway "View sholloway's Profile")*

An error which has now started occurring (it wasn't there before) is that when a user has added some items to the cart, the cart is emptied on logging in. If the user then adds the same items again (or if the user has logged in before adding items in the first place) a further error occurs on pressing 'Next' to pay - the PayPal page comes up saying that the invoice has already been paid. Any ideas? Stephen

URL = [ www.spaldingfasteners.co.uk](http://www.spaldingfasteners.co.uk).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zNjQwLWNhcnQtZW1wdGllZC1vbi1sb2ctaW4/dG1wbD1tYXJrZG93bg==) 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: 86358
- Thank you received: 14293
-
-

15 years 10 months ago [\#3641](#3641) 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 emptied on log-in](/forum/3-bug-report/3640-cart-emptied-on-log-in#3641 "An error which has now started occurring (it wasn't there before) is that when a user has added some items to the cart, the cart is emptied on logging in. If the user then adds the same items again...")*

Do you have the user synchronization plugin published ? If not, that could explain why that happens as in this plugin, there is some code to pass the cart id from the old user session to the new one when the user logs in.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 10 months ago [\#3723](#3723) by [sholloway](/forum/user/231-sholloway "View sholloway's Profile")  Replied by *[sholloway](/forum/user/231-sholloway "View sholloway's Profile")* on topic *[Re: Cart emptied on log-in](/forum/3-bug-report/3640-cart-emptied-on-log-in#3723 "An error which has now started occurring (it wasn't there before) is that when a user has added some items to the cart, the cart is emptied on logging in. If the user then adds the same items again...")*

Hi Nicolas. Thanks. That has cured the first problem, but not the second. Still when hitting 'Next' to go to Paypal the Paypal screen says that the order has already been paid.

Why would the user plugin not be enabled by default on installation, as the site doesn't function without it? Are there any other plugins that should be enabled but may not be? There are quite a lot of plugins now.

Many thanks.

Stephen

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zNjQwLWNhcnQtZW1wdGllZC1vbi1sb2ctaW4/dG1wbD1tYXJrZG93bg==) 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: 86358
- Thank you received: 14293
-
-

15 years 10 months ago [\#3725](#3725) 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 emptied on log-in](/forum/3-bug-report/3640-cart-emptied-on-log-in#3725 "An error which has now started occurring (it wasn't there before) is that when a user has added some items to the cart, the cart is emptied on logging in. If the user then adds the same items again...")*

The user synchronization plugin is published by default when hikashop is installed. The only two reasons it would be unpbulished would be:
you unpublished it yourself
the install process crashed in the middle before being able to publish the plugin (it could be a time out or memory limit because of restrictions on your hosting plan)

There are no reasons other than that.

For your second problem: paypal check that for your paypal account, each order number is unique. If you already used another e-commerce solution before using HikaShop, the id sent you paypal (the order ID in the orders listing) might already have been used by your previous ecommerce solution. The solution is to increase the increase in the database above the maximum order id of your previous software. For example, if you had 5000 orders. Set the auto_increment value of the hikashop_order table to 5001. Here is an example of how to do with phpmyadmin: [ www.electrictoolbox.com/reset-auto-increment-value-mysql/](http://www.electrictoolbox.com/reset-auto-increment-value-mysql/)

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

15 years 10 months ago [\#3729](#3729) by [sholloway](/forum/user/231-sholloway "View sholloway's Profile")  Replied by *[sholloway](/forum/user/231-sholloway "View sholloway's Profile")* on topic *[Re: Cart emptied on log-in](/forum/3-bug-report/3640-cart-emptied-on-log-in#3729 "An error which has now started occurring (it wasn't there before) is that when a user has added some items to the cart, the cart is emptied on logging in. If the user then adds the same items again...")*

Hi Nicolas, thanks. You were exactly right about the order number. Resetting the auto_increment value has fixed the problem.

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

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