If the user is not logged into their account, I need to display a login button. If he has already logged in, display the menu.
How to check if a user is logged in or not in a twig file?
If the user is not logged into their account, I need to display a login button. If he has already logged in, display the menu.
How to check if a user is logged in or not in a twig file?
You wrote nothing concrete, so I'll show in cart section to display a login button when user is logged out.
You have to handle it (logged in or logged out state) in controller file and examine it in twig file.
modify catalog/controller/checkout/cart.php
modify catalog/view/theme/journal3/template/checkout/cart.twig
After modification in files maybe you have to refresh modifications on admin site (Extensions \ Modifications \ Refresh button)