What you set up
- One line per domain in a plain box: acme.com|Wholesale. The group is its name or its number. Up to 100 lines. The page lists your customer groups to copy from.
What happens
- When a customer registers (any registration that uses the shop's customer model), the e-mail domain is compared with your list in any letter case. A domain also covers its sub domains (mail.acme.com); a name that only ends the same (notacme.com) does not match.
- The customer is moved to the group at once, so the first order already gets the group's prices.
Safe
- Lines are checked when saved: a bad domain or an unknown group stops the save and names the line. A rule whose group was deleted does nothing.
- Switch it off and new customers stay in the default group. No database tables.
Good to know
- It works at registration only. Existing customers are not moved, and the e-mail is not verified, so do not use it to give access to anything private: anyone can type an address at a domain they do not own.
- Tested on 2.3, 3.0, 4.0 and 4.1 with the real admin installer and the real customer model, 44 to 49 checks each. Not checked through the storefront registration form or the One Page Checkout.