kasprzak Posted October 15, 2013 Share Posted October 15, 2013 Hi, I want to enable my clients who decide to support a third-party non profit organisation to have a 10% discount on all my store's products for a year. To do so I have to make a cms page that will link them to the third-party's site, where they can do their payment (the payment gate provider would not let another company to install their payment gate on my site). So the payment gate there (on the third-party's site) can redirect the clients back to the store and to some specific page on my site after succesfull payment. It may be standard validation.php installed along with my own payment module or something else. Now how to add a voucher for such specific client? I need it to work instantly so that the client gets the discount right after his payment is done? I guess this should be some php file stored actually in any folder of the server, right? I should capture the data - e-mail adress would actually be enough - then look for that e-mail in my customers database (adding a new one if necesarry) and then add a nev voucher with appropriate expiration date set. How to do that? Can anyone help? Link to comment Share on other sites More sharing options...
Recommended Posts