trigger email on shipping change

Hello all.

I'm working on an integration between CSCart and a third party system. So far so good. Now, whenever I create or edit a record in the shipment_items or shipments table I want to trigger an email alerting the user as to their shipment status. Is there a hook for this?

Also, is the developer documentation available as a download so I don't have to pester anyone here?


Review the code in fn.cart.php related to the fn_update_shipment() and related routines. There is probably a PHP hook there you can use to detect if there's been a change (you want one before the DB is updated) and either set a flag in the Registry for use later or send your email from there.