Jump to content

Adding AffiliateFuture code to complete.tpl


bbishop

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated