Reputation: 357
As title, I would like to run a script after a precise item has been purchased. I searched on web to find some clue on how to start it, but nothing. Thanks a lot
Riccardo
Upvotes: 0
Views: 293
Reputation: 3106
You could create a custom module that is using the actionValidateOrder
hook which is called after the order was created. In the hook you could loop through the ordered products to check whether the specific product was purchased and execute a given code block if the condition is met.
Upvotes: 1