Hello, I'm running v1.9x with paypal payments. I have the following Javascript that I copied from my tracking software. I need to put it on the thanks.php/thanks.htm pages. Alex, can you please help me out be showing me what to modify to replace it with the actual price of the transaction, so the amounts in my tracking are correct? PHP: <script language=JavaScript><!-- agent_dom = 4079; agent_conv = 408; agent_csum = 25.00; //--> </script> <script language=JavaScript src="https://stats.agentinteractive.com/stats.js" type="text/javascript"></script> I need to add this javascript to my thanks redirected page and then also replace the 25.00 with the actual amount of the sale. I can not upgrade to the newest version, because I have other scripts that require aMember to remain the same. I would really appreciate your help on this, as I know you or somebody else can probably shed some light on this. Thanks, Brian
I tried adding this to the tracking javascript in the thanks.htm template: PHP: <script language=JavaScript><!-- agent_id = 4079; agent_trk_id = 408; agent_amount = {$payment.amount|default:"0.0"}; //--> </script> <script language=JavaScript src="https://stats.agentinteractive.com/stats.js" type="text/javascript"></script> By adding your code in the tracking javascript of my thanks.html template, it does not place the amount. It just prints that whole string to the screen. I did test it by putting your code in the html, and it simply prints out "0.0" instead of the $5.00 amount that it should. Any help would be appreciated. Am I doing it completely wrong? Here is a copy of my thanks.html template, and it does not work as is: Code: {assign var="title" value="Member Account Created"} {include file="header.html"} <center> <script language=JavaScript><!-- agent_id = 4079; agent_trk_id = 408; agent_amount = {$payment.amount|default:"0.0"}; //--> </script> <script language=JavaScript src="https://stats.agentinteractive.com/stats.js" type="text/javascript"></script> <div class=hdr>{$title}</div> <br> <div align="center"> <center> <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="70%" id="AutoNumber1"> <tr> <td width="100%" bgcolor="#CCCCCC"> <b>Congratulations! your member account has been created.</b> </center> </td> </tr> <tr> <td width="100%">Please <a href="{$config.root_url}/member.php">login</a> to your Member's Account with the User ID and Password you chose during sign-up, to continue to download your software. <p>Once logged in, you may click the links in your "<i>Active Subscriptions</i>" console to download your software. <p><font color="red"><b>Reminder:</b></font> Your account comes with free 6 months access to the Member's Area. During your 6 months of acitive membership, you can login 24 hours a day, to access your downloads, get support via our Trouble Ticket System, purchase more software/ plug-ins or renew your expired Member Account status. <p><small>{$payment.amount}</small></td> </tr> </table> </center> </div> <p> <p> <p> <p> </center> {include file="footer.html"} So, when I view the source of this page, after making a payment, it just prints out the {$payment.amount|default:"0.0"} inside my javascript instead of putting something like $15.00.
Hmm, there is no easy ways to fix it. Ask affiliate script authors if there are other methods of integraion (may be hidden image instead of JS?)
Other Codes? Alex, The above code for the Product Price is exactly what I'm looking for. What code do I use to insert the Product Name? Would it be {$payment.item_name}? Is there a list somewhere with all the optional codes that we can use to place variable information for tracking scripts? - Alan