To make Shopify require a company name at checkout, you can set Company name to Required in Shopify's checkout form options. That setting applies broadly to applicable consumer checkouts, however, and Shopify says it does not require B2B customers to enter the field. If you run a mixed B2C and wholesale store, use a conditional checkout validation that blocks only an identified wholesale flow when Company name is empty.
This guide shows how to define that rule, configure the verified CartBlock fields, write a useful error, and test B2B and consumer orders separately.
Verified September 21, 2026: The current CartBlock rule builder exposes Company name with Any, Not any, Is empty, Is not empty, Partially contains, and Partially does not contains. The reviewed interface does not show regex or text-normalization controls. This tutorial uses Is empty only.
Should you use Shopify's native company-name setting?
Shopify lets you set the company-name checkout field to Don't include, Optional, or Required under Settings > Checkout > Customer information. Use Required when every applicable checkout should collect a company name.
That global choice is a poor fit for a store that serves both consumers and businesses. A consumer may not have a company name, while a wholesale order may need one for fulfillment, invoicing, or account matching. Shopify also documents two limits that matter here:
- Customer-information requirements do not require B2B customers to enter the field.
- Requiring company name can remove some accelerated checkout options, including Apple Pay.
For a mixed store, leave the native field optional and use conditional checkout validation only when a verified signal identifies the order as wholesale or B2B.
Choose a reliable B2B signal before building the rule
The company field cannot identify a wholesale order by itself. If the field is empty, the rule still needs another condition that says the order belongs to your business flow.
Choose one signal your store already maintains:
| B2B signal | When it fits | Check before launch |
|---|---|---|
Customer tag such as wholesale
|
Approved wholesale accounts sign in before ordering | Every eligible customer has the tag and guest checkout cannot use wholesale terms |
| Product or collection | Wholesale-only products are separated from retail products | Retail customers cannot add those products accidentally |
| Cart threshold | A documented wholesale program begins at a fixed amount or quantity | Large consumer orders should not be classified as wholesale |
| Shopify B2B company/location identity | You use Shopify's native B2B company accounts | Confirm that the installed rule exposes this identity; do not substitute the address company text |
A customer tag is usually the clearest example for an account-based wholesale program because it is assigned before checkout and can be audited. Use the exact signal available in your installed CartBlock version.
Match the signal to how buyers enter your wholesale program. Prefer a customer tag when approved accounts must sign in and your team already maintains account eligibility. Choose a product or collection condition when the wholesale catalog is deliberately separated and the same items should always trigger the rule. A cart-value or quantity threshold works only when your written policy defines that threshold as wholesale; otherwise, a large consumer order can be misclassified.
If you use Shopify B2B, structured company or company-location identity is stronger than address text, but only use it when your installed rule exposes that data. Never replace it with a test for whether the shopper typed something into the company field. For a deeper account-based example, see customer-tag rules for wholesale orders.
Do not treat text entered into Company name as proof that a shopper is an approved B2B customer. It is address data, not an approval or authentication control.
How to require a company name for wholesale orders with CartBlock
Keep Shopify’s company field optional, then block checkout only when a verified B2B signal is present and Company name is empty.
The example below blocks checkout when both statements are true:
- The signed-in customer has the
wholesaletag. - Company name is empty.
In logic form:
Customer tag matches wholesale AND Company name is empty → block checkout
The exact tag operator can vary by the condition selected in the current rule builder. Read the generated rule summary before activating it.
Before you start
Prepare four things before you build the validation:
- Install CartBlock and confirm it is available in Shopify admin.
- Set Shopify’s company-name field to Optional so consumers are not forced to enter business data.
- Choose and verify one B2B scope signal that your store maintains consistently.
- Create or identify one wholesale test customer and one consumer test customer.
Write down the expected behavior for both customers. That small step makes it easier to spot an accidentally broad rule before it affects real orders.
1. Keep the Shopify company field available
In Shopify admin, go to Settings > Checkout and find Customer information. Set Company name to Optional, then save.
This keeps the field available to business buyers without forcing consumer customers to invent a value. If your store already requires the field for every applicable checkout, decide whether the global setting still matches your policy before adding another validation.
2. Create a checkout validation in CartBlock
Open CartBlock from Shopify admin, create a checkout validation rule, and give it a precise internal name such as Wholesale orders require company name.
Write the invalid state before selecting conditions. For this example: “Block checkout when a wholesale-tagged customer leaves company name empty.” This helps prevent reversed logic.
3. Add the wholesale scope condition
Select the verified condition that identifies your wholesale flow. For a customer-tag workflow, choose the customer-tag condition and your exact wholesale tag.
Test the tag's spelling and capitalization against a real customer record. If a guest can reach wholesale products or pricing, decide whether to require login or use a different scope signal; an absent customer tag cannot reliably identify an anonymous buyer.
4. Add Company name with Is empty
Add Company name as the checkout-field condition and choose Is empty.
Join this condition to the wholesale signal with AND. Using OR would block every wholesale customer regardless of whether a company was entered, as well as consumer customers who leave the optional field blank.
The current CartBlock interface also lists partial-text operators, but they are unnecessary for a presence requirement. It does not show regex or normalization controls, so do not claim that this rule standardizes capitalization, strips whitespace, or verifies a legal business name.
5. Write a corrective error message
Tell the buyer what is missing and where to fix it:
Enter your company name in the address details to continue with this wholesale order.
Avoid messages such as “Company could not be verified.” An empty-field rule checks presence only. It does not validate a company registry, tax number, account status, or authority to buy for that business.
6. Review, save, and activate
Read the saved summary as an invalid-state sentence:
Block when customer is wholesale and company name is empty.
Confirm that the conditions use AND, the rule targets the intended checkout flow, and the custom message appears where a buyer can act on it. Then activate the rule according to the controls in your installed version.
Test the company-name requirement at Shopify checkout
Use separate test customers and record the result for each case. The broader Shopify checkout validation troubleshooting guide can help isolate rule status, condition logic, and checkout-path issues if a result differs from your test plan.
| Test case | Expected result |
|---|---|
| Wholesale-tagged customer, company name empty | Checkout is blocked with the corrective message |
| Wholesale-tagged customer, company name entered | Checkout can continue |
| Consumer customer, company name empty | Checkout can continue |
| Consumer customer, company name entered | Checkout can continue |
| Guest with wholesale-only product | Follows the documented guest policy; does not silently bypass wholesale controls |
| Customer with similar but incorrect tag | Treated according to the exact configured match |
| Accelerated checkout | Tested separately for field availability and validation behavior |
| Pickup or split-delivery order | Every supported delivery path produces the documented result |
Shopify's validation API can target delivery-address and billing-address company fields separately. A checkout can also contain multiple delivery groups. Confirm which company field CartBlock's Company name input evaluates in every path you support; the reviewed label does not identify delivery versus billing scope.
Repeat the test on mobile and desktop. If wholesale buyers can order in more than one market or language, verify the rule and message in each supported experience.
Monitor the rule after launch
Validation should be reviewed after activation, not treated as a one-time setting. During the first week, ask support and sales teams to flag wholesale buyers who see the message unexpectedly or cannot find the company field. Audit approved accounts that lack the expected customer tag, and confirm that guests cannot receive wholesale pricing while bypassing the identity condition.
Retest the matrix after checkout settings, markets, themes, wholesale apps, or CartBlock rules change. If you localize checkout, translate the corrective message and verify it remains specific enough for the buyer to act. Keep a short change log with the rule name, scope signal, error message, test date, and owner so future edits can be checked against the intended policy.
Common company-name validation mistakes
Requiring a company name from every consumer
A global requirement adds friction for shoppers who are buying personally. Keep the field optional unless every applicable order has a real business requirement.
Using OR between scope and empty-field conditions
The intended invalid state requires both conditions. OR logic expands the rule and can block valid consumer carts.
Confusing address text with a Shopify B2B company
Shopify B2B companies and company locations are structured account records. The company-name address field is plain checkout data. A shopper typing a business name does not create or confirm a Shopify B2B company relationship.
Promising format or legal-name verification
The verified CartBlock interface supports an empty-field check and partial text matching. It does not expose regex or normalization in the reviewed flow. Presence alone cannot confirm spelling, legal registration, or tax identity.
Forgetting guest and express checkout
A customer-tag rule depends on identity, and accelerated checkouts can handle fields differently. Test both instead of assuming the storefront cart result covers every checkout path.
Frequently asked questions
Can Shopify natively require a company name at checkout?
Yes. Under Settings > Checkout > Customer information, Shopify lets you mark Company name as required. Shopify says those customer-information requirements do not make B2B customers enter the field, and requiring company name can hide some accelerated checkout options.
How do I require a company name only for wholesale customers?
Keep the native company field optional, identify wholesale orders with a reliable condition such as an approved customer tag, and block checkout only when that condition and Company name is empty are both true.
Does a company name prove that the buyer is a business?
No. It only records text entered in an address field. Use Shopify B2B company accounts, your wholesale approval process, or another verified system when you need business identity or eligibility checks.
Can CartBlock validate the legal company name with regex?
The rule builder reviewed for this guide does not show regex or normalization controls for Company name. Its visible operators include empty, non-empty, any, not-any, and partial-text checks. Use Is empty for this workflow and a dedicated verification process for legal identity.
What if my wholesale buyers use guest checkout?
Do not scope the rule only by customer tag if the buyer might be anonymous. Require wholesale customers to sign in, or use another verified signal that is present during checkout and cannot also describe an ordinary consumer order.
Make the requirement match the buying flow
A good Shopify company-name checkout rule is narrow: it identifies the wholesale flow, checks whether the field is empty, and gives the buyer a direct correction. Consumer orders stay unaffected, while business orders arrive with the address detail your team needs.
Explore CartBlock on the Shopify App Store to review current compatibility, then compare the steps above with the rule builder installed on your store before activation.

Install Now