Question

On completion of an order, I would like to trigger a refresh of a certain Customer Segment. What method could I call to accomplish this? Thanks!

Was it helpful?

Solution

$segment = Mage::getSingleton('enterprise_customersegment/segment')->load($segment_id);
$segment->matchCustomers();
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top