Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Update customer account group_id in customer_address_save_before observer
 
Swil
Jr. Member
 
Total Posts:  17
Joined:  2009-06-19
 

Hi,

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.

Swil

Sorry - I think I posted this in the wrong category - I created a new post in the programming questions section

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top