VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: iman on July 02, 2020, 10:13:00 AM

Title: Is there any api function such onAfterSave product
Post by: iman on July 02, 2020, 10:13:00 AM
Hi
Isn't there any api function such onAfterSave product. I need it for some necessary stuffs in my project.
Title: Re: Is there any api function such onAfterSave product
Post by: balai on July 02, 2020, 15:31:08 PM
I am interested as well.
Title: Re: Is there any api function such onAfterSave product
Post by: pinochico on July 02, 2020, 15:45:40 PM
I'm too, because we nedd fix bug in VM after delete some customfields in child product - still visible in DB table on parent.

Then not function correctly 3dParty extension - Customfield4All - thanks balai :)
Title: Re: Is there any api function such onAfterSave product
Post by: Ghost on July 03, 2020, 09:28:06 AM
Haven't tried it but there is plgVmAfterStoreProduct https://dev.virtuemart.net/projects/virtuemart/repository/revisions/10331/entry/trunk/virtuemart/administrator/components/com_virtuemart/models/product.php#L2603
Title: Re: Is there any api function such onAfterSave product
Post by: GJC Web Design on July 03, 2020, 09:44:00 AM
correct - I use

function plgVmAfterStoreProduct($data, $product_data)

in custom/system plugins to e.g. update 3rd party stock systems etc
Title: Re: Is there any api function such onAfterSave product
Post by: balai on July 03, 2020, 11:13:26 AM
Thanks! Will check it out