There seems to be still an issue where the liquid customer object is blank even after logging in.
This creates some issues with code that displays content depending on if a customer is logged in.
From simple things like menu icons to b2b information.
I found other people talking about it without getting a solution or response.
Example old forums
I couldn’t find anything here about this problem but it seems to still persist till today.
Is there a better solution to this than use the old customer accounts for the time beeing?
Hi @Christian_Schneider
Do you use a custom theme or one of the Shopify themes? I tried to replicate this issue on my end and I couldn’t.
I changed the version of customer accounts to the new one which is Customer accounts
Hello @Eugene_Kasimov
Good question.
We use a customised version of the Local theme.
To test this I added a clean Local theme without changes and a Dawn theme to the store and tested the same code you used, just to be sure:
Both themes show the same Issue. I tested different browsers: edge, chrome, opera & firefox. I’ve also gotten a friend of mine who hasn’t interacted with the store to test this. She confirmed the issue.
Testing this on a different store with the same theme has no problems.
No apps were installed on both stores during the tests.
Now the other thing I should mention is that this worked fine for me for months and stopped working two-three weeks ago while no one was working on this store at the time.(Its a side project and I am the only person assigned to it)
The strange thing is it worked until last friday for my boss and stopped working on monday.
It seems the bug only appears after time or a trigger and does not appear right away.
So, as far as I understand this issue appears only on one store, is it correct? As you mentioned, when you tested the same themes on another store there was no issue.