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!
You are not logged in.
If you remove or customer.tags == ‘wholesale’ do you see the message when logged in as a b2b customer?
or customer.tags == ‘wholesale’
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.
customer.b2b?
or customer.tags contains 'wholesale'
tags