Check if already login

Questions & AnswersCategory: QuestionsCheck if already login
Alessio asked 5 years ago

Is it possible to create a rule to check if the user is already logged in?
I would like to put an alert to remind the user to login before he starts to customize the object so he can save it later.
Thanks!

1 Answers
Expivi WS Staff answered 5 years ago

It should be possible with some custom work in the theme.
In; views / webshop / pages / order-confirm.twig (line 60) you can see how it works.
You have a check; {% if not (customer)%} to {% endif%} , between which you can put everything that needs to be shown or executed (by putting <script> in between)

Scroll to Top