Is the liquid object customer.b2b? really working?

I am logged in as B2B customer. I am apply a condition on product page to see if it detect a B2B customer logged in or not but it’s not wokring

{% if customer.b2b? or customer.tags == ‘wholesale’ %}

Welcome, Wholesale Customer!


{% else %}

You are not logged in.

{% endif %}

If you remove or customer.tags == ‘wholesale’ do you see the message when logged in as a b2b customer?

1 Like

customer.b2b? works as expected. As @Liam-Shopify mentioned try removing the tag part, or updating it to or customer.tags contains 'wholesale'. The tags property is an array.