Forum OpenACS Development: Ecommerce product callbacks

Collapse
Posted by Dave Bauer on
I am wondering if there exists, or someone has implemented a way to run code or a callback when a certain ecommerce product is purchased.

Does ecommerce support this, or has someone done a custom implementation?

Collapse
Posted by Torben Brosten on
When there is a sale of a product, there is an option to email a notification to emails in ec_products.email_on_purchase_list . One could probably add something at that point in the code. If you designate a reserved fieldname in the ec_custom product fields to flag when to make the call, then others can benefit from the extended code as well.

cheers,

Torben