NEWDiscoverShipGoal– turn cart progress into bigger baskets
All articles

Customize shipping methods for tagged customers or B2B buyers

Use Shopify customer tags or B2B buyer details in ShipWith to customize shipping methods for signed-in customers. ShipWith can hide, show only, rename, or reorder methods that Shopify already provides. It does not create shipping rates, change prices, or apply shipping discounts.

Which conditions can be combined

You do not choose a Function input when you create the rule. Add your conditions, and ShipWith picks a Function input that supports all of them. If a condition you need is greyed out under Can't be combined with your existing conditions, no single input supports it together with the conditions already on the rule.

  • Customer tag works with Standard input, Shipping input, Attribute input, Customer input, and Address input.
  • Customer company names and Customer is a company work with Standard input, Shipping input, Customer input, and Address input. They cannot be combined with conditions that only Attribute input supports.
  • A Shipping method condition, which limits the rule's actions by the currently available method title, moves the rule to Shipping input.
  • Customer country moves the rule to Customer input. Customer order history works with Customer input and Address input.
  • Detailed destination fields move the rule to Address input. Address conditions are evaluated against each delivery group's own address.

The condition picker is the current source of truth for every other condition you need. To see which input the rule uses, open the Advanced card on the rule page.

Read Choose the right Function input type for your rule for more about each input.

Recipe: hide a method from tagged customers

This example hides Cash on delivery from customers tagged Wholesale or B2B.

  1. Create a shipping rule.
  2. Under When the rule runs, select When set conditions are met.
  3. Add Customer tag has any of.
  4. In Customer tags, enter Wholesale, press Enter, enter B2B, and press Enter again. Each tag appears as a chip. The condition matches when the customer has at least one configured tag; tag matching is case-insensitive.
  5. Under Actions, select Hide specific delivery method(s).
  6. In Delivery method titles, enter Cash on delivery and press Enter. Action title targets match any part of a delivery method title, case-insensitively.
  7. Set Status to Live and select Save. Check that the rule page shows no This rule is not running at checkout banner.

At checkout, the action hides matching methods only when the signed-in customer has Wholesale or B2B. Use Customer tag does not have any of when the rule should match a signed-in customer who has none of the configured tags. That negative condition does not match a guest because no customer record is available.

To keep only named methods instead, choose Show only specific delivery method(s) and enter every title that may remain visible. Any other eligible method in that delivery group is hidden.

Recipe: show selected methods to B2B buyers

This example keeps Freight and Business delivery for any buyer checking out for a B2B company.

  1. Create a shipping rule.
  2. Under When the rule runs, select When set conditions are met.
  3. Add Customer is a company is true.
  4. Under Actions, select Show only specific delivery method(s).
  5. In Delivery method titles, add Freight and Business delivery as separate chips.
  6. Set Status to Live and select Save. Check that the rule page shows no This rule is not running at checkout banner.

Customer is a company checks whether Shopify provides a purchasing company for the checkout. It does not inspect the shipping address's company field. The buyer must sign in as a B2B customer and check out on behalf of a company for this condition to match.

Limit a rule to named B2B companies

Use Customer company names when different companies need different delivery methods. ShipWith checks the B2B purchasing company's name from Shopify. It does not currently check the company location name or the destination address's company field.

The available operators are:

  • is and is not: exact, case-insensitive company-name matching. Enter each allowed name and press Enter to create a separate Company names chip. Pasting names on separate lines also creates separate chips. Commas stay inside one company name. ShipWith stores the exact-match list as one company name per line, which matters when reviewing or editing an exported rule.
  • contains, does not contain, and starts with: case-insensitive text matching against one entered value. These operators use a text field instead of multi-name chips.
  • is empty and is not empty: do not require a value. is empty also matches when Shopify does not provide a purchasing company, so combine it with Customer is a company is true when the rule must be limited to B2B buyers.

For example, to hide Local pickup for buyers from either Northwind Traders or Contoso:

  1. Add Customer is a company is true and Customer company names is in the same condition group. Conditions in one group use AND.
  2. Add Northwind Traders and Contoso as separate Company names chips.
  3. Select Hide specific delivery method(s) and add Local pickup under Delivery method titles.
  4. Activate and save the rule. Check that the rule page shows no This rule is not running at checkout banner.

Test signed-in, guest, and nonmatching checkouts

Test with the same products and destination so that Shopify supplies comparable delivery methods.

  1. Sign in as a customer with a matching tag, or as a B2B customer checking out for a matching company. Confirm the expected hide or show-only result.
  2. Sign in as a customer without the tag, or use a B2B company with a different name. Confirm that the rule does not change the methods.
  3. Repeat as a guest. Customer tag, Customer is a company is true, and a nonempty company-name match do not match a guest checkout.
  4. For a Customer tag does not have any of rule, confirm separately that a signed-in customer without those tags matches while a guest does not.
  5. If Shopify splits the cart into multiple delivery groups, inspect every group. Customer and B2B details are shared across the checkout, but ShipWith applies the action independently to the methods Shopify provides in each group.

ShipWith cannot restore or show a method that Shopify did not provide in that delivery group.

Check priority and action scope

Lower Priority numbers run first among active rules using the same Function input. Actions inside a rule run from top to bottom. Shopify does not guarantee the order of rules that use different Function inputs. To keep dependent rules in order, open each rule's Advanced card, make sure they use the same Function input (change it there if a shared input supports all their conditions), and give them distinct priorities.

Customer tag and B2B conditions normally make all methods in a matching delivery group eligible. The selected action then narrows that set:

  • Hide specific delivery method(s) hides eligible methods whose title or handle contains one of the configured Delivery method titles values.
  • Show only specific delivery method(s) hides eligible methods whose title or handle does not contain one of those values.
  • Hide all delivery methods hides every eligible method. Use it carefully because a matching delivery group can be left without a delivery method.
  • A Shipping method condition, which moves the rule to Shipping input, limits eligibility to methods whose current titles match that condition before the action's own targets are applied.

If a result is unexpected, first confirm the customer is signed in, a B2B buyer is checking out for the intended company, the Shopify customer tags or company name match the configured value, and the rule is Live with no This rule is not running at checkout banner. Then check earlier rules and actions on the same Function input, including hides and Ignore previous rules.