SegmentRocket – Customer Groups for WooCommerce
SegmentRocket sorts your WooCommerce customers into groups. Automatic groups fill themselves from rules, such as “3 or more orders in the last year” or “email ends with acme.co.uk”, and stay up to date as people shop. Manual groups hold exactly who you add. You can then give each group its own prices, show or hide products for it, and limit coupons to it.
SegmentRocket needs a licence. Buy a licence.
1. Install and activate
- Go to Plugins → Add New → Upload Plugin, choose the SegmentRocket zip and click Install Now, then Activate. WooCommerce must be active.
- You’ll be asked for your licence key. Paste the key from your purchase email and click Activate License. You can change it later from the Change License link on the Plugins screen.
- Open WooCommerce → Customer Groups.
As soon as it’s activated, the plugin reads your existing paid orders and customer accounts in the background, then checks every group. Member counts fill in over the next few minutes (a small shop is done in a minute or two). You can follow progress, or rebuild everything, under Customer Groups → Settings → Rebuild.
2. Your first groups
Five starter groups are created for you. Edit or delete them as you like.
| Group | Who is in it |
|---|---|
| Regular customers | 3 or more orders in the last 12 months. |
| Haven’t ordered in a while | Ordered before, but not in the last 90 days. |
| Signed up, never ordered | Has an account but hasn’t placed an order. |
| New customers | First order in the last 30 days. |
| Big spenders | Spent 500 or more in total (in your shop’s currency). |
Nothing changes on your shop until you give a group a discount, a coupon or a members-only product.
3. Automatic groups and rules
- Click Add group. Give it a name, a colour and, if you like, a description (only staff see it).
- Under Who joins, choose Automatic.
- Choose whether customers must match all of these rules or any of these rules.
- Pick a rule type from the list and click Add rule. Add as many as you need.
- Click How many match? to see how many customers match right now, then Create group.
The group fills in the background. Customers then join and leave by themselves: their groups are checked when they order, when an order is refunded or cancelled, when they register or update their account, and every night for everyone (so time-based rules like “90 days since last order” stay right).
Rules you can use
| Rule | Notes |
|---|---|
| Number of orders | At least / more than / at most / less than / exactly a number, ever or in the last X days. |
| Total spent | Refunds are taken off. Ever or in the last X days. |
| Average order value | Over all counted orders. |
| Days since last order | Only customers who have ordered. “More than 90” = haven’t ordered in a while. |
| Days since first order | “At most 30” = new customers. |
| Has an account but has never ordered | Optionally only people who signed up at least X days ago. |
| Has bought any of these products | Search for products or variations. |
| Has bought from any of these categories | Sub-categories are included. |
| Has an account | Yes, or No for guest checkouts only. |
| Days since signing up | Accounts only. |
| User role is any of | For example Customer or Subscriber. |
| Workplace is any of | One per line. Matches the Workplace field (not case-sensitive). See section 6. |
| Email address ends with any of | One per line, for example nhs.net or @acme.co.uk. Subdomains match too. |
| Billing company contains any of | Not case-sensitive. |
| Billing country is any of | Choose countries. |
| Postcode starts with any of | One per line, for example LE1 or NG. Spaces are ignored. |
| Town or city is any of | One per line. |
Untick Active to pause a group. A paused group keeps its settings but counts as empty, so its prices, products and coupons don’t apply.
4. Manual groups and adding people by hand
Choose Manual under Who joins for a group that holds only the people you add, for example a partner company’s staff list.
- Add by email: open the group’s Members screen, paste email addresses (one per line, or separated by commas) and click Add to group. Addresses the shop hasn’t seen yet are added as guest customers, so they can use the group’s coupons at checkout with that email and join up with their account if they register later.
- From a user’s profile: on Users → Edit user, tick or untick groups under Customer groups.
Automatic groups can be adjusted by hand too. Adding someone by hand keeps them in the group even if the rules stop matching. Removing someone from an automatic group keeps them out, so the rules don’t add them straight back; use Let the rules decide again to undo that.
5. The Members screen
Click a group’s member count, or Members, to see who’s in it with their workplace, number of orders, total spent and last order date. You can:
- Filter by Added by rules, Added by hand or Kept out, and search by name, email or workplace.
- Select people and choose Remove, Let the rules decide again or Keep in the group even if rules stop matching.
- Click Export CSV for a spreadsheet of the group.
The Users screen also has a Customer groups column and a filter, and each user’s profile shows their orders, total spent and groups.
6. The Workplace field and workplace groups
To offer staff deals to a partner workplace, go to Customer Groups → Settings → Workplace field:
- Ask customers for their workplace: No, optional or required.
- Field label: for example “Workplace” or “Employer”.
- Choices: one per line to show a drop-down, or leave empty to let customers type it.
- Show it on: the registration form, My Account → Account details and the checkout (both the classic checkout and the Checkout block).
Staff can always set a customer’s workplace on their user profile. A workplace group usually matches any of: Workplace is “Acme Ltd”, Email address ends with acme.co.uk, Billing company contains “Acme”. The email rule is the hardest to fake.
7. Group pricing
Group prices are for logged-in members, so prices never change halfway through checkout. Members see them across the shop, product pages, basket, mini basket and checkout (classic and block).
A discount for a group
Edit the group and scroll to Group pricing:
- Discount: a percentage off the normal price (0 = no discount).
- Applies to: every product, products in chosen categories (sub-categories included) or chosen products.
- Sale items: tick to leave products already on sale alone. Otherwise members get whichever is lower: the sale price or their group price.
- Price label: optional text shown after the price, such as “Staff price”.
Set prices on a product
Edit a product and open the Customer groups tab in the Product data box. Enter a price for any group. For variable products, enter group prices on each variation under Variations. Leave a box empty to use the group’s discount (if it has one).
Which price wins
- For each group, a set price on the product comes first; otherwise the group’s discount applies if the product is in scope.
- A member of several groups gets the lowest of their group prices.
- A group price never raises a price: if the normal or sale price is lower, that’s what they pay.
Members see the normal price struck through. Each order line records which group’s price was used.
8. Showing and hiding products
- On a product: in the Customer groups tab, use Only show to (only these groups can see and buy it) or Hide from (these groups can’t).
- On a category: under Products → Categories, edit a category and set the same two fields. They apply to every product in the category and its sub-categories.
A hidden product is left out of the shop, category pages, search, product blocks, related products, upsells and cross-sells. Its own page shows “not found”, and it can’t be added to the basket. Guests count as being in no group, so “Only show to” products are hidden from them. Staff who can edit products always see everything.
9. Group coupons
Edit any coupon under Marketing → Coupons and open Usage restriction:
| Setting | What it does |
|---|---|
| Customer groups | Only members of these groups can use the coupon. Leave empty for anyone. |
| Exclude customer groups | Members of these groups can’t use it, for example to keep a welcome offer from regular customers. |
| Apply automatically | Adds the coupon to the basket by itself for members of the chosen groups. If a shopper removes it, it isn’t added back until they next log in. |
| Show in My offers | Lists the coupon in members’ My Account (see section 10). |
Anyone else who tries the code sees “Sorry, this coupon is only available to selected customers.” (you can change this in Settings). WooCommerce’s own restrictions, such as minimum spend, expiry and usage limits, still apply.
Guests can use a group coupon when their checkout email belongs to a group member (switch this off in Settings if you prefer). The check happens again with the email typed at checkout, so a guest who isn’t a member has the coupon removed before the order is placed. This works on the classic checkout and the Checkout block.
The Coupons list has a Groups column and a group filter.
10. My offers and emailing a group
My offers
Members see a My offers tab in My Account listing the group coupons they can use now, with the discount, minimum spend, end date and an Add to basket button. Expired and used-up coupons are left out. Change the tab’s name or switch it off in Settings. To show the same list on any page, use the shortcode [customer_groups_offers].
Email a coupon to a group
- Publish the coupon and choose its groups.
- In the Email to a customer group box on the right, choose a group and edit the subject and message. Placeholders:
{first_name},{code},{offer},{expiry},{expiry_line},{site_name}. - Tick These customers have agreed to marketing emails and click Save and send.
Emails go out in the background in small batches using your WooCommerce email design. People who can’t use the coupon (for example an excluded group, or they’ve used it up) are skipped. The box shows how many were sent.
11. Settings
| Setting | Notes |
|---|---|
| Orders that count | Default Processing and Completed. Changing it rebuilds the history. |
| Leave out these roles | Default Administrator and Shop manager; these accounts are never put in groups. |
| Workplace field | See section 6. |
| Message for people outside the group | Shown when someone tries a group coupon they can’t use. |
| Guests | Let guests use group coupons when their checkout email belongs to a member. |
| My offers tab | On or off, and its name. |
| Uninstall | Tick to delete all groups and data when the plugin is deleted. Off by default. |
| Rebuild | Re-reads every past order and account, then checks every group. Use it after importing orders. |
12. Without a licence
If the licence isn’t active, SegmentRocket fails safe: groups keep updating, but group coupons can’t be used by anyone, products limited to groups are hidden from everyone, and group prices are off. Nothing is ever opened up to everyone by mistake. A notice in the admin explains this, with a link to activate.
13. For developers
grouprocket_is_in_group( $group_id, $user_id_or_email = null ); // null = current shopper grouprocket_get_customer_groups( $user_id_or_email = null ); // array of group IDs grouprocket_get_groups(); // all groups grouprocket_customer_id( $user_id_or_email = null ); grouprocket_get_customer( $customer_id ); // orders, total spent, workplace…
Actions: grouprocket_member_added and grouprocket_member_removed ($group_id, $customer_id, $source). Filters: grouprocket_rule_definitions with grouprocket_rule_match_{type} for your own rules, grouprocket_group_price, grouprocket_hidden_product_ids, grouprocket_customer_may_use_coupon, grouprocket_can_email_customer (hook in a marketing-consent check) and grouprocket_coupon_error.
14. Questions
A group shows 0 members right after installing.
It’s still reading your order history in the background. Refresh in a few minutes, or use Settings → Rebuild → Rebuild now on a small shop.
Why don’t I see group prices when I’m logged in?
Shop staff (administrators and shop managers) are left out of groups, and the admin always shows normal prices. Test with a customer account, or in a private window.
Will my page cache show one customer’s prices to another?
Most caching plugins don’t cache pages for logged-in customers, which is when group prices show. If yours does, turn that off for logged-in users.
Does it work with HPOS and the block checkout?
Yes, it supports High-Performance Order Storage and the Cart and Checkout blocks.
What happens to a coupon if I delete its group?
It stops being limited to that group.