Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    2
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: How to run a script upon purchase?


  3. #3
    Join Date
    Feb 2009
    Posts
    2
    Plugin Contributions
    0

    Default 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.

    Take care,

    -- dj!

 

 

Similar Threads

  1. Replies: 3
    Last Post: 25 Sep 2013, 10:11 PM
  2. E-mail notice upon purchase?
    By dubbemiah in forum General Questions
    Replies: 2
    Last Post: 13 Mar 2010, 09:02 PM
  3. Free Item Contingent upon the Purchase of another item-How to setup?
    By everest in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 15 May 2008, 01:19 AM
  4. Product Purchase, Run CGI
    By Stevai in forum General Questions
    Replies: 2
    Last Post: 29 Dec 2006, 02:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg