In Liquid:
{% if customer %}
When using an admin account to log in, it often fails to be recognized — this condition doesn’t execute, meaning it is treated as if no user is logged in.
In Liquid:
{% if customer %}
When using an admin account to log in, it often fails to be recognized — this condition doesn’t execute, meaning it is treated as if no user is logged in.
Hi @Lily43546546 Admin != customer.
They are different words for a reason.
Admin accounts accessing the shopify admin are NOT customers on purpose.
Either
We are a newly registered account, not an admin account. Initially, the system could recognize the customer upon login, but after a while, Liquid fails to retrieve the customer information even though the login status remains active, and we can still access the shopping cart directly.