Raikoug
Raikoug

Reputation: 357

Prestashop run script after purchase of a precise item

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

Answers (1)

yenshirak
yenshirak

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

Related Questions