B2B - how to output the Company name the customer is a member of

Topic summary

A developer is building a custom B2B storefront for multiple sub-brands sharing one checkout. They successfully implemented conditional pricing that displays wholesale rates for B2B customers using {% if customer.b2b? == true %}.

Core Issue:
The developer cannot output the company name on the frontend. While the Liquid API reference shows a company object exists, attempting to use {{ company.name }} doesn’t work.

Solution Provided:
Access the company name through the customer object using {{ customer.current_company.name }}. Reference documentation at shopify.dev/docs/themes/pricing-payments/b2b provides additional guidance on B2B theme implementation.

Status:
The original question from 2022 was answered in a later response with the correct Liquid syntax for accessing B2B company information.

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

Hi,

I’m developing a custom storefront for a brand with multiple ‘sub-brands’ a la Gap / Old Navy / Banana Republic etc so that each brand can use the same checkout.

I’m also trying to utilise the new B2B functionality and have managed to create a section on the product pages which simply checks for {% if customer.b2b? == true %} and places the RRP and custom price for that Wholesale customer within this if statement, thereby hiding it from regular retail customers.

Looking at the company object in the API reference guide, I should be able to output {{ company.name }} however, it doesn’t look like this is available. Am I missing something or is this simply not available to the front end?

Thank you,

Geoff

Glad you asked this. Same issue. BTW - figured I’d ask another Shopify user - any good Shopify events you got your eye on? I’m looking that this one https://ecomlivestream.com. Free and a nice lineup of speakers (CoFounders of $1bn+ brands). Any one have anything else on their radar? Are you part of any other communities. I’m new to Shopify ecosystem and looking to network.

Hi - thanks for the heads-up on that event. I’ll have a look.

I don’t have anything else on my radar, just keeping my head down with various projects.

Hi, you’ve probably already found the solution since it’s a post from 2022, but I’ll leave the answer here for others anyway.

I think it should be the following. I think you should access this via the customer object. {{ customer.current_company.name }}

See also this link. It’s quite helpful.
https://shopify.dev/docs/themes/pricing-payments/b2b

1 Like