I have created a customer_address_save_before observer that gets invoked when needed.
When the address change the customer wants to make complies to certain criteria, I want to set the customer group_id to a some value.
I use $customer->setData(’group_id’, $value) to change the group.
Through some log statements, I can see the codeline is executed, but when I check later on, the group_id is still the old value.
I am overlooking something, but don’t know what.
Any help would be greatly appreciated.
Sorry - I think I posted this in the wrong category - I created a new post in the programming questions section