
Hi community,
I want to show a certain meta-information in the product-detail-page, but only if the user is logged in. This
{% if $sUserLoggedIn %}
....
{% endif %}
doesn't work and I can't find anything about that in the docs. Can anyone point me in the right direction oder just plainly tell me how I can check the user logged in status in the twig?
Thanks in advance!
MKFS
Answers
well i did this by looking for the customer group and comparing it to a "whitelist" set in the plugin configuration
i'm actually not quite sure of you can check for a "being logged in"
{% if context.customer %}
Shopware Cache need to be disabled