Card empty after registration

  • Posts: 13
  • Thank you received: 2
  • Hikashop Essential
7 years 10 months ago #260503

As a guest user I add some product to the card. It direct to checkout and ask for personal data. I press the registration button. After this I'm redirected to the main page of the shop (product listings) and the cart is empty.
The user sync plugin is published. Session management is set to database 30 min. I don't use SSL at all.
If I log out and then add the product to the cad again and then login with my user the cart is cleared again.
If I add something to the card when I'm logged in than it remembers. I log out, and log in again and it is in the cart. It is OK like this.

I think if there is something in the card the registration should preserve it.

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

  • Posts: 13
  • Thank you received: 2
  • Hikashop Essential
7 years 10 months ago #260517

I've disabled checkout legacy mode at the advanced configuration menu, and it started to work well.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 10 months ago #260515

Hi,

You can also download the install package on our website again and install it again on your website it should help with these issues as it will add patches for that.

Last edit: 7 years 10 months ago by nicolas.
The following user(s) said Thank You: danidek

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

  • Posts: 13
  • Thank you received: 2
  • Hikashop Essential
7 years 10 months ago #260543

Hi,

Thanks! I've downloaded it, but the latest is 3.0.0 what I have on my site as well, so I did not install it again.
Do you think I should reinstall the same version. I installed my first Hikashop few days ago.

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

  • Posts: 200
  • Thank you received: 75
7 years 10 months ago #260557

Hi,

the Hikashop team has fixed a number of things and added several patches over the last few days, so although the version number is still the same, the installation package is not exactly the same as a few days ago. To get these most recent fixes, you can install the latest build version of Hikashop over your current installation. this won't cause any problems.

Kind regards,

The following user(s) said Thank You: danidek

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

  • Posts: 13
  • Thank you received: 2
  • Hikashop Essential
7 years 10 months ago #260575

Thank you! I've used Virtuemart before, but all of it was a waste of time. Hikashop is much better.

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

  • Posts: 228
  • Thank you received: 8
7 years 9 months ago #261443

Hello,

We are using the latest Hikashop Business 3.0.0 version and just downloaded the patched version but this issue when user logs in kept on going. Tried to disable the legacy cart but it broke my website and the bug remained.

Please advice,

Guy.

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

  • Posts: 4748
  • Thank you received: 644
  • MODERATOR
7 years 9 months ago #261465

Hello,

Can you provide some screenshot of your ADVANCED SETTINGS and LEGACY SETTINGS option, in Advanced tab (in your HikaShop Configuration).
Provide if possible an Url link in order to process some tests.
Awaiting news from you .

Regards

Last edit: 7 years 9 months ago by Philip.

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

  • Posts: 228
  • Thank you received: 8
7 years 9 months ago #261545

Hi Philip,

Please see attached the screen shots you've requested.

Part of the message is hidden for the guests. Please log in or register to see it.



Thank you.

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #261561

Hi,

Can you also please provide your HikaShop build number ?
You'll find it in the first setting of the first tab of the configuration.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 228
  • Thank you received: 8
7 years 9 months ago #261634

Hi Jerome,

I was mistaken, we've used essential and not business.
Build number is HikaShop Essential 3.0.0 [1701290210].

Guy.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 9 months ago #261649

Hi,

As your build number shows, you're using the build from the 01/29 so from more than a week ago. So when you said "just downloaded the patched version" two days ago, I don't see how that's possible.
We actually added a second patch for the loss of the cart is some other cases than the one mentioned by danidek, and we think that it should fix your problem.
So please download again the install package on our website and install it on yours and check that the version number changes.
It should then work fine.

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

  • Posts: 228
  • Thank you received: 8
7 years 9 months ago #262045

Hello Nicolas,

I'm sorry for the confusion. Just downloaded the latest version for Hikashop Essentials (HikaShop Essential 3.0.0 [1702111017]) and downloaded it and the problem remains. I'm still getting a message for "cart is empty" after login :(

Please advice,

Guy.

Last edit: 7 years 9 months ago by theguy.

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

  • Posts: 4748
  • Thank you received: 644
  • MODERATOR
7 years 9 months ago #262135

Hello,

Please provide an Url link to better understand your issue, because on our side we can't reproduce your issue with last build.
And in Checkout tab, add some configuration page screenshot, in order to see all your configuration part (Checkout workflow, Checkout, Shipping & Payment, Login & Registration parts)

Note : You can use our Contact us form if needed to provide it, just think to use this topic subject in the message subject.
Awaiting news from you.

Regards

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

  • Posts: 228
  • Thank you received: 8
7 years 9 months ago #262138

Hello,

I've sent you all the credentials via Contact Us.

Thank you,

Guy.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 9 months ago #262149

Hi,

I've done a test on your website but I wasn't able to reproduce the issue.
Here is what I did:
- I went to your website with a clean slate (not logged in, browser cache cleared, in Chrome's anonymous mode).
- I added that product to the cart :
monosnap.com/file/kKas4SpT32OAYUw52TrjeRlIsz4iSG
- I clicked on the "proceed to checkout" button of your cart module
- I was redirected to the first step of the checkout where I saw my cart, and clicked on next
- I was then directed to the second step where I saw the login form of the HikaShop checkout
- I used the login credentials you provided and click on the login button
- I was logged in successfully, and could see the address form and I still had my cart:
monosnap.com/file/BhgrkHsLynm2XGpAknjy98E17UmF59

So it seems that the problem is fixed on your website as far as I can see. Or maybe you're able to reproduce the problem with a different set of instructions. In which case, we would need to know them to be able to move forward.

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

  • Posts: 228
  • Thank you received: 8
7 years 9 months ago #262210

Hi Nicolas,

You've tested the order process with the super user credentials. I did so too and got the same results you did. But, try using the test user I've created

This message contains confidential information
and you'll see the empty cart message. This goes for cases in which I've tried to register to the website and got the same empty cart results.

Another bug I've just encountered is the amount set to product when adding to the cart. No matter what number I insert (by hand in the amount box or by clicking the plus and minus buttons) I get one item added to the cart.

Something is not ticking right... :huh:

Guy.

Last edit: 7 years 9 months ago by Philip.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 9 months ago #262258

Hi,

Great, I was able to reproduce the problem now.
So I went in your backend in order to understand why it worked for some accounts and not others.
And here is the answer:
monosnap.com/file/axUdX1zN3K8eGnWsHONdi58r93oEC3
In the menu Customers of HikaShop, you can see all the user accounts that HikaShop sees on your website.
And the test user account isn't in there.
So that means that the synchronization of the users wasn't done for that user account.

The synch is run in two places:
- each time you install/update HikaShop, it will run the synchronization.
- when a new user is created, the HikaShop user synchronization plugin will run the synchronization process for that new user.

This means that unless you deactivated the plugin, this situation shouldn't normally happen and I could see that the plugin was activated.
So I've run the install process of the latest build of HikaShop in order to run a synchronization manually but while I now had the test user in HikaShop, I still only had 5 entries instead of 6 while Joomla had 6.
So I've checked more closely the Joomla user manager and I could see that you had two user accounts with the same email address.
That should actually not be possible in Joomla as there is a unique key check to prevent two accounts with the same email address, and HikaShop also has such check in place. So it appears that this was removed from your Joomla which is why it doesn't work properly when you do your tests with an email address you already used for a previous account. And that's why we couldn't see the problem when registering on your website, since we were using another email address which wasn't already in there, or we were logging in with a user account which was synchronized.
So it's actually not a bug of HikaShop 3. It's normal that it works like that on your website as your Joomla users database has been modified in a way it shouldn't normally and such case should not happen normally.

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

  • Posts: 228
  • Thank you received: 8
7 years 9 months ago #262262

Hi Nicolas,

Thank you very much for the thural inspection. This website was given to me by the client already built to add the shop so any modification to the users database was not done by me.

I can confirm that after changing the email address of test user it worked fine.

I'm still left with two issues:
1. New user registration still reproduces the same "empty cart" error after registration. I've tried to set the user "New User Account Activation" to none but it did not solve the issue. I did check to see that the user was added to Hikashop's users and it indeed was there.
2. New bug - Setting amount for an item is not working and I get only one item added to the cart no matter what.

Sorry for the long process. It's painful for me as well. I've been using Hikashop for a long time and in many of my projects and never encountered this many issues :(

Guy.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 9 months ago #262263

Hi,

1. I've created a new user on the checkout and didn't had the problem. My cart was still there after clicking on the activation link.
So I don't see how that's possible. Please make sure you're using a new email address you didn't already use for your tests.

2. Please open a new thread for new problems. This is apparently an issue with the legacy add to cart. You could try to turn off the add to cart legacy setting of the HikaShop configuration, that should definitely solve the problem albeit it will require some CSS fine tuning after that.

HikaShop 3 is a major release, the biggest since the first version, with many changes, a whole new add to cart and checkout systems, etc. We've done our best to fix them as much as possible, but as an early adopter of the new version, you're getting the bugs no one found yet.

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

Time to create page: 0.094 seconds
Powered by Kunena Forum