Check if already login

Questions & AnswersCategory: QuestionsCheck if already login
Alessio asked 2 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.

1 Answers
Expivi TW Staff answered 2 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