Zen Cart Logo
Forums / General Questions / How to run a script upon purchase?

How to run a script upon purchase?

Locked

Views: 1,032

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
6 Feb 2009, 4:06 PM
#1
djex avatar

djex

New Zenner

Join Date:
Feb 2009
Posts:
2
Plugin Contributions:
0

How to run a script upon purchase?

Hi,

I sell software that requires personalized licenses and am looking to incorporate the following functionality. Upon a successful purchase (all through PayPal for the time being) I would like to automatically run a script--the license key generator. Basically, after payment was received I need to execute some custom PHP code that needs to have access to the order details.

FWIW I know PHP and mySQL, the problem is that I can't figure out where to hook this into the Zen Cart code. This has to be possible since ZC changes the order status to [Processing] and sends out an admin email upon payment, but I can't figure out where that happens either.

Thanks for any suggestions!

-- dj!

6 Feb 2009, 4:26 PM
#3
djex avatar

djex

New Zenner

Join Date:
Feb 2009
Posts:
2
Plugin Contributions:
0

Re: How to run a script upon purchase?

Thanks so much, that appears to be what I'm looking for. In all honesty I came across that thread during my search but I somehow missed how that applied to my problem the first time around. :blush:

Take care,

-- dj!