- This topic has 1 reply, 2 voices, and was last updated 13 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Custom Function at Checkout
Tagged: checkout, custom function, IPN
Hi there,
I was wondering if there’s an easy way to kick off a custom PHP function on the Thank You page.
The way I envision this is:
1.) custimer makes payment
2.) upon success, he’s redirected to the Thank You Page
3.) encrypted download link is displayed
4.) my function is being triggered and does stuff
I’m not sure which file I should be looking at for this – or if in fact there’s a better way to do this (say via a hook).
Thank you
When a customer lands on the “Thank You” page the following function from “eStore_includes3.php” file will get executed:
function eStore_process_PDT_payment_data
This is what processes the PDT data. You can add your code inside this function and it will get triggered off when someone lands on the Thank You page. Remember, You need to use PayPal PDT for this to work.