E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2012, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Mon, 11 Oct 2010 20:29:36 GMT Fri, 10 Feb 2012 17:34:32 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #8 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 Mon, 11 Oct 2010 20:29:36 GMT E-junkie Discussions; E-junkieGuru Post #7 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 Mon, 11 Oct 2010 05:50:05 GMT
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&client_id={CID}&txn_id=' . htmlspecialchars($_GET["txn_id"]) . '" height="200px" width="100%">Download now ›</a>';
?>

You can see it at http://www.educationalrap.com/purchase-complete]]>
E-junkie Discussions; Robbie
Post #6 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 Wed, 3 Feb 2010 00:18:50 GMT E-junkie Discussions; E-junkieGuru Post #5 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 Tue, 2 Feb 2010 06:45:02 GMT
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&client_id=CID&txn_id=' . htmlspecialchars($_GET["txn_id"]) . '" 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.]]>
E-junkie Discussions; Robbie
Post #4 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 Thu, 10 Apr 2008 17:16:54 GMT
I know you can use <?php echo $_GET['first_name']; ?> 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?txn_id=XXXXXXXXX&d_id=XXXXXXX, but d_id isn't available in the string.

Help please!]]>
E-junkie Discussions; rockthenroll
Post #3 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 Mon, 11 Feb 2008 06:09:15 GMT 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 :)]]>
E-junkie Discussions; austin457
Post #2 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 Mon, 28 Jan 2008 02:46:26 GMT http://www.e-junkie.com/ej/help.redirection.php>.]]> E-junkie Discussions; E-JunkieExpert Post #1 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 http://www.e-junkie.com/bb/topic/1622/pg/0#post15815 Mon, 28 Jan 2008 02:45:33 GMT E-junkie Discussions; GuestUser