bbishop Posted April 3, 2012 Share Posted April 3, 2012 Hi I am trying to set up affiliate futures js code on the complete.tpl using the following code: {if $ispaid} <script src="http://scripts.affiliatefuture.com/AFFunctions.js"></script> {literal} <script> var merchantID = xxxx; var orderValue = '{/literal}{$amount}{literal}'; var orderRef = '{/literal}{$ordernumber}{literal}'; var payoutCodes = ''; var offlineCode = ''; AFProcessSaleV2(merchantID, orderValue, orderRef,payoutCodes,offlineCode); </script> {/literal} {/if} This works as intended however I need to populate the payoutCodes section in the js. The affiliate payouts are based on the products bought. The type of business we are in means we only ever sell one product at a time though and we need to be able to display the product id as the payoutCodes variable. I am unable to find a variable in the order template documentation that would display this though. Does anyone have any suggestions? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted April 5, 2012 Share Posted April 5, 2012 Add a {debug} to your template, that will display all available variables for you. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.