I want to execute my code once when a customer is loaded in the admin area, I use the customer_load_after
event to do that, the problem, I have the method is triggered three times, and I only need one.
I tried to use a flag protected $_firstTime
, and I tried to put it in a contructor too, but nothing works because the class is instantiated every time.
didn't work either:
the
register/registry
customer_load_before
I'm specifing in the oberser <type>singleton</type>
But nothing works.
any idea?