Skip to content

How Customer Targeting Works

Every B2B rule answers two questions: who gets it and which products it covers. This page explains the “who” part, which works the same way across modules.

Collection page for a guest: products at regular prices

Collection page for a wholesale customer with B2B prices

What your customers see on the storefront: a guest on top, a logged-in wholesale customer below.

In the Custom Pricing rule editor, these options are in the Customers card.

Customers card with the seven Apply to customers options

Option in the editor Who matches
All (logged-in and not-logged-in customers) Everyone, including visitors who are not logged in.
Logged-in customers Any customer who is logged in to their account.
Not-logged-in customers Only visitors who are not logged in. A customer stops matching as soon as they log in.
Specific customers Only the customers you pick with Search customers. They must be logged in.
Customer tags Logged-in customers who have at least one of the tags you enter.
All company locations Buyers shopping in a B2B session for any company location, including companies and locations you add later.
Specific company locations Logged-in B2B buyers who are currently buying for one of the company locations you select.

How tags are compared:

  • Capitalization does not matter. Wholesale on the customer matches wholesale in the rule.
  • Spaces around a tag are ignored.
  • One matching tag is enough. You cannot require a customer to have two tags at once.

Customers card with Customer tags selected and tag field

How company locations are compared:

  • With Specific company locations, the editor warns: “Selecting a whole company applies to its current locations only. To include companies and locations added later, choose All company locations.” Choose All company locations if the rule should cover locations you add later.
  • Both company location options need a B2B session. If your store uses classic (legacy) customer accounts, these rules do not apply, because Shopify does not support legacy customer accounts for B2B customers and orders. Switch to new customer accounts to use them.
  • With either company location option, the Markets card shows “Applies in every market.” A company location’s market and catalogs are set in Shopify. Switching an existing rule that limits markets to a company location option shows a warning, and saving removes the market limit.

Not every module offers every option. Use this table to plan which module fits your customer group.

Module Customer options Apply to markets Exclude customers
Custom Pricing, Price List, Volume Pricing All seven options Yes Yes, including company locations
Shipping Rate All except the company location options Yes Yes
Order Limits All except the company location options Yes Yes
Extra Fee, Quantity Increments, Discount Codes All except the company location options No Yes
Buy One Get One All except the company location options No No
Net Terms Logged-in customers, Specific customers, Customer tags, All company locations, Specific company locations No No

Some options also depend on your plan. If an option is locked, the editor shows an upgrade message next to it.

Exclude customers removes customers from a rule even if they match the Apply to customers option. For example, apply a rule to Logged-in customers and exclude the tag retail to give a price to every logged-in buyer except retail accounts.

Exclusions are checked after the main condition, so an excluded customer never gets the rule.

Exclude customers and Exclude products options

In the Custom Pricing rule editor, this is the Markets card. With Specific markets selected, a rule only applies while the shopper is browsing one of the Shopify markets you picked. With All markets, the market is ignored.

Markets card with All markets and Specific markets

A rule with a start date, or an end date set with Set end date, only applies inside that window. In the Custom Pricing rule editor, these fields are in the Schedule and exclusions (optional) card. The editor notes: “Times use the time zone of the browser you are using now, not your store’s time zone. If you work from another time zone, check the dates.”

Schedule card: start date, start time, Set end date

When a customer matches later than expected

Section titled “When a customer matches later than expected”

BSS B2B Solution reads the customer’s login state and tags when the page loads. That has three practical effects:

  • A new tag shows after the next page load. If you, Auto Tags or a registration approval adds a tag, the customer sees the new price after they refresh or open another page. For Net Terms at checkout, adding or removing a tag can take up to 60 seconds to apply.
  • Tags from Auto Tags are added in the background. Tag-based rules only match once Auto Tags has finished tagging the customer. Check Auto Tags > Auto tag history to confirm the tag was added.
  • Guests can be skipped entirely. If Settings > General > B2B rules for logged-in customers only is switched on, B2B scripts only load for logged-in customers. Rules set to All or Not-logged-in customers then do not run for guests. Only Registration Forms and Multiple Currency still load for them.
  1. Create a test customer with the exact tag your rule uses.
  2. Log in as that customer in a private browser window.
  3. Open a product covered by the rule. The B2B price should appear.
  4. Log out and reload. The price should go back to normal, unless the rule applies to everyone.

Related pages: Run retail and wholesale on the same store, How rule priority works, Troubleshooting: B2B prices or rules not showing.