Cart resets when user logins

  • Posts: 45
  • Thank you received: 0
13 years 11 months ago #3477

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

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 11 months ago #3487

Hi,

That should not happen. We specifically added code in the hikashop user plugin to avoid such issue. That could happen only if you use an old version of HikaShop or if you unpublished the hikashop user plugin.

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
13 years 11 months ago #3502

Hi,

the plugin is published and I am using 1.4.0. Just to be clear, this only happens if the user logins using Joomla's login module not if he logins in the checkout page.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 11 months ago #3505

Maybe the problem is that the plugin file wasn't updated because of access rights issues when you did the update ? Could you post the file plugins/user/hikashop.php as a zip, so that we can see if you have the good version of that file ?

Also, do you use the standard joomla login module ? Using other login modules could be a problem if they don't trigger the user plugins.

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
13 years 11 months ago #3508

Hi,

I didn't do an upgrade, it is a clean install. And yes I am using the default Joomla login module, the only difference that I can see is that it opens in a rokbox.

You can check in my test site, I have emailed you the address in the other conversation we had.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 11 months ago #3511

I looked at the joomla login module and it's indeed the normal joomla module.
The only remaining way to check on that problem will be to put traces in the plugin's code. Could you provide an FTP access to your website so that we can add traces to it ?

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
13 years 11 months ago #3513

Sure, just give my a little time to ask for a login to setup.

Would you like admin access in Joomla until then?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 11 months ago #3515

Why not. I could check your php config and the plugins you have...It may give us some insight on the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
13 years 11 months ago #3516

Hi,

you are now an admin, I will email you FTP details later.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 11 months ago #3558

I don't know what happened on your website but I'm not able to reproduce the problem anymore although I didn't change anything yet. Does it work on your end too now ?

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
13 years 11 months ago #3580

Hi,

it is still happening when I test it. Cleared cookies and stuff. I select a few products as a guest and then after logging in the cart is empty. Maybe it is saved somewhere in the database as admin?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 11 months ago #3581

I tried on both IE, Firefox and chrome, without reseting the cookies, with the cookies reseted, etc. I cannot reproduce the problem anymore.

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
13 years 11 months ago #3584

OK I guess the sessions are somehow broken with the 'admin' user, I will try with another user.

Thanks for all your help!

Please Log in or Create an account to join the conversation.

  • Posts: 47
  • Thank you received: 0
13 years 6 months ago #15615

Hi Nicolas,

I am having the same issue here, at first i used a standard joomla login in a modal popup, because this didn't work i've now changed this to the standard joomla user login page without modal, but the cart also resets when using this.

I hope it's easy to fix.. If you need me to provide FTP and/or admin access please let me know :)

Thanks :)

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #15617

Could you check that the user plugin of hikashop is published ? It keeps the cart in the session during the login procedure so if it's unpublished it won't keep the cart.
If that's OK, you should try to switch your session handler in the configuration of joomla and try again.

Please Log in or Create an account to join the conversation.

  • Posts: 47
  • Thank you received: 0
13 years 6 months ago #15622

Yes, i have checked that, also i've tried to change the session handler from database to APC, but if i do this i cannot login to the backend anymore (probably because APC is disabled on my server because it caused serious performance issues)

I have re-enabled the login box on the login/registration page of hikashop, and here it does keep the cart, the problem occurs only with the joomla login.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #15624

You should try with the "none" session handler.

Please Log in or Create an account to join the conversation.

  • Posts: 47
  • Thank you received: 0
13 years 6 months ago #15630

I've tried that now, but unfortunately it still doesn't work, i've also tried it with a different user

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #15631

Do you have the same problem on all the browsers ?

Do you have other extensions user plugins published which could interfere with the process ?

Please Log in or Create an account to join the conversation.

  • Posts: 47
  • Thank you received: 0
13 years 6 months ago #15636

Yes, i've tried with IE, FF and opera

I have the following user plugins:
AcyMailing Tag : Joomla User Information Enabled
HikaShop joomla user account link plugin Enabled
Hikashop AlphaUserPoints Plugin Disabled
User - Joomla! Enabled
HikaShop user synchronization plugin Enabled

Please Log in or Create an account to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum