Hi I would like to set a different announcement bar once the customer logged in. is this possible?
Hi,
Of course it’s possible, in liquid code, check if the customer is logged in and then write some more codes to change the announcement bar. Easy.
Hi! Can you help me with some code to achieve this? thank you
@andra0412 , Hope you are doing well.
Yes, this is possible. YOu can check by adding some conditions to check if the customer is logged in or not and display the content based on that. please refer to the below code for a better understanding.
{% if customer %}
{# Customer is logged in #}
Welcome back, {{ customer.first_name }}!
{# Add your custom content for logged-in customers here #}
{% else %}
New to our store? Sign up now to get exclusive offers!
{% endif %}