1 / 8
Jan 2008

I would like clients to be directed to my thank you page (hosted on my site) and still get the info available on the e-junkie thank you page. ...Client name, address, biling totals and a invoice Number ect. (all the html code you have to input to make it work) is that possible? Thanks.

  • created

    Jan '08
  • last reply

    Oct '10
  • 7

    replies

  • 1.3k

    views

  • 6

    users

  • 7

    links

14 days later

I know this question has been beat, but I gotta ask anyway.

Can someone please expound a bit more upon EXACTLY how to create the custom thank you page. Ok, I know to use GET, most likely on an HTTPS page, and I know the variables are on the e-junkie page mentioned. But don't I need a path for GET? How about a code snippet as an example.

thanks

I really do like my e-Junkie cart. Help me make it better, plz :slight_smile:

1 month later

This is exactly what I'm attempting to solve for now.



I know you can use <?php echo $GET['firstname']; ?> with PHP, bbut the only available strings to grab from the URL are items after the "&" in the return URL which are: txn_id, first_name and last_name.



I see from the default download page that the link to download a file is:



http://www.e-junkie.com/ecom/df.php?txnid=XXXXXXXXX&d_id=XXXXXXX, but d_id isn't available in the string.



Help please!

1 year later

I use Wordpress with the Exec-PHP Plugin so I can execute PHP code on Pages.



I created a custom Thank You page and typed up a simple thank you note that looks like the other content on our site. To insert the download link in the middle of it, I used the following code (replace "CID" with your actual client ID):



<?php

echo '<iframe width="100%" frameborder="0" src="https://www.e-junkie.com/ecom/rp.php?noredirect=true&clientid=CID&txn_id=' . htmlspecialchars($GET["txnid"]) . '" height="50px"></iframe>';

?>





This doesn't enable you to insert all the transaction data, but I have that sent as an email to every buyer, anyway, so I'm comfortable not showing it on the Thank You page as well. If you want to add more details, customize your Thank You message and increase the height of the iframe (or change to 100%).



You'll probably want to add some minimal CSS code to the top of your Thank You message so it looks like your own page.

Thanks for the suggestion and sample code; I've added it to our Redirection help page. :^)

8 months later

By the way, update on this:



The fixed-height iframe (~50px) in the middle of our custom Thank You page worked until people started checking out with multiple files to download. Rather than choose an arbitrarily large height for the iframe and waste space for most people, I moved the secure link into a fancybox that opens after clicking a large "download" button. Anyone can do it using whatever lightbox/fancybox/colorbox setup for links is in place.



Here's our code:

<?php

echo '<a class="fancybox iframe button" href="https://www.e-junkie.com/ecom/rp.php?noredirect=true&clientid={CID}&txn_id=' . htmlspecialchars($GET["txnid"]) . '" height="200px" width="100%">Download now ›</a>';

?>



You can see it at 4http://www.educationalrap.com/purchase-complete4