Customer.b2b? object no longer returning boolean?

Topic summary

A bug has been identified with the customer.b2b? Liquid object in Shopify’s new customer accounts system. Previously, this object returned a boolean value (true or false) to indicate whether a customer was a B2B customer. As of April 11, 2023, it now returns CompanyLocation instead of the expected boolean.

Impact:

  • Theme functionality relying on this boolean check is broken
  • Affects stores that have migrated to Shopify Plus with B2B features
  • Multiple users have confirmed experiencing the same issue

Status: The discussion remains open with users seeking a fix or workaround to restore the boolean functionality needed for conditional theme logic.

Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

As stated, the customer.b2b? object no longer returns a boolean.

We are using the new customers.

I believe this to be a bug that we just noticed yesterday 4/11/2023.

https://shopify.dev/docs/api/liquid/objects/customer#customer-b2b?

Example code:

b2b = {{ customer.b2b? }}

This used to return true or false.

Now it is returning CompanyLocationDrop

Hi, I am seeing this too. We have just migrated to Shopify Plus and B2B. We have some key theme functionally that requires us to test if a customer is b2b so our site is essentially broken now after migrating form our old solution.

Hoping we can find a fix for this soon.