Skip to content

How to put trade customers into a customer group automatically on BigCommerce

In short: BigCommerce lets you create a Trade customer group with its own prices, but it does not decide who goes in it. Out of the box it does not choose a group from an email domain, a country or what someone has spent. Someone sets each customer’s group by hand, or a rule does it. A rule reads like this: when a customer account is created, if the email ends in acme.com, set their group to Trade. Usher is an app that runs rules like that for you.

The rest of this page shows both routes, so you can judge whether the by-hand one is enough for your store.

What a customer group is for

A customer group gives a set of customers their own discounts, price lists and access to categories. A trade or wholesale group is the common case: retail customers see retail prices, and trade customers see theirs once they are logged in. Customer Groups come with BigCommerce Plus and above.

A new trade customer sees retail prices until their group is set, so the wait between signing up and being sorted is also the wait for their first trade order.

Set a customer’s group by hand

  1. In your control panel, go to Customers, then Customer Groups, and select Create a customer group. Name it Trade, and set its discounts, price list or category access.
  2. Go to Customers, then View, and open the customer.
  3. Choose Trade in the Customer Group field and save.

Repeat steps 2 and 3 for every trade account, and check for new ones as often as you are happy for trade customers to wait. For a few accounts a month this is a fair way to work, and it lets you look at each business before you approve it.

It stops working when sign-ups arrive overnight, or when the person who remembers to check is on holiday. A developer can close the gap with a store/customer/created webhook that calls the customers API and sets customer_group_id. That works, and you then own the code, the retries and the question of what happens when someone moves a customer by hand afterwards.

Set the group with a Usher rule

  1. Install Usher from the BigCommerce Marketplace. The install guide has the steps.
  2. On the Rules tab, select Create a rule and use the Trade accounts template. It starts as: when a customer account is created, set their group.
  3. Under If, add a condition: email domain ends with acme.com, using the company’s own domain. Ends with matches acme.com and mail.acme.com, and does not match notacme.com. Add a second condition, such as country, if you want the rule narrower.
  4. Under Then, choose the Trade group. If it does not exist yet, select New customer group and Usher creates it in BigCommerce.
  5. Save. Usher says how many existing customers match and lets you apply the rule to them now, or only to new accounts.

From then on, a customer who signs up with a matching email is in Trade before they reach the catalogue, and the Activity tab records which rule did it. If you later move a customer to another group yourself, Usher leaves them there. If two group rules match the same customer, the one higher in the list wins.

A rule matches one domain. For a second company, add another rule with their domain.

What a rule cannot do

Usher reads email domain, country, current group and order history. It cannot see a company name or a VAT number, so a buyer who signs up with a personal email address does not match a domain rule. For those, set the group by hand, or use an order-history rule on the Pro plan, such as moving anyone whose lifetime spend passes a figure you choose.

Usher also does not check that a business is genuine. The rule goes by the domain, so use it for domains you already trust.

Usher stores customer ids and numbers only. Email addresses are read when the rule runs, compared and dropped, which the privacy page covers in full.

Last updated