Customer Segmentation for Magento 2
From €0.00
To €350.00
In stock
Advanced customer segmentation for Magento 2 Community Edition. Create dynamic and manual segments based on customer attributes, order history, cart data, and behaviour patterns. Integrates with Magento's native cart price rule engine. MIT licensed, production-ready with 106 unit tests.
Customer Segmentation for Magento 2
Replace expensive Enterprise Edition segmentation with a powerful, MIT-licensed alternative. Define rich rules that automatically group customers into segments — then use those segments to trigger personalised promotions, targeted discounts, and customer group overrides.
Core Capabilities
- Dynamic Segments — rules evaluated automatically on customer events (login, order placed, cart updated)
- Manual Segments — static customer lists for campaign targeting
- Scheduled Refresh — cron-based daily recalculation or on-demand via CLI
- Real-time Mode — segments updated instantly on every qualifying event
Condition Types
| Category | Available Conditions |
|---|---|
| Customer Attributes | Email, name, date of birth, gender, VAT number, customer group, account creation date, store view |
| Order History | Total orders, lifetime revenue, average order value, first/last order date, items purchased, coupon codes, payment & shipping methods, shipping countries, order status |
| Shopping Cart | Cart subtotal, items count, specific SKUs in cart, active cart flag, days since last cart activity |
| Product Interactions | Viewed categories, purchased SKUs, purchased from categories, wishlist item count |
Admin Interface
- Segment grid with live customer counts and status indicators
- Visual rule builder — no code required
- Preview matching customers before saving
- Matched Customers tab on the edit page
- One-click segment refresh with progress indicator
- Mass actions: Delete, Refresh, Export (CSV / XML)
Cart Price Rule Integration
Use any segment as a condition in Marketing → Cart Price Rules. Combine segments with any other Magento condition type for highly targeted promotions.
REST API
GET /V1/customer-segments— list all segmentsPOST /V1/customer-segments— create segmentPUT /V1/customer-segments/:id— update segmentPOST /V1/customer-segments/:id/refresh— trigger refreshGET /V1/customers/:customerId/segments— get customer's segments
CLI Commands
bin/magento magendoo:customer-segment:refresh --all
bin/magento magendoo:customer-segment:refresh 1 2 3
bin/magento magendoo:customer-segment:refresh 1 --export --format=csv
Installation
composer require magendoo/module-customer-segment
bin/magento setup:upgrade && bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f && bin/magento cache:flush
Requirements
- Magento 2.4.x Community Edition
- PHP 8.1 or higher
- 106 unit tests, 198 assertions — 100% rule-engine coverage
License: OSL-3.0 | View on GitHub