I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.
I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate
Here is the code I am testing
public function onAfterProductUpdate(&$product) {
$product->my_field = 'test';
//I need to add correct $this->save($product) method here
}
Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.
Any help greatly appreciated.
TIA
/DM