I have a custom table which holds membership numbers and there corresponding membership type. For example number: 10001, membership_type: Gold.

I have an observer which checks a customers input and assigns the customer to a group based on the membership number the have entered.

In the admin panel I have a member section which lists all membership number and their type in a grid.

What I would like to do is:

  • When a membership number in the admin panel is deleted or membership type changed, i'd like to update the customer whose membership was amended and change their assigned customer group automatically.



1 Answer 1


So I assume that you have a model set-up nicely for this memebership table.

Now what you can do is use the event.


Then on these events loop through the customers attached and make the appropriate updates.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.