Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Adding HTML for Affilliate website to my Checkout_confirmation page

    OK... I think I have a solution!

    1. CREATE A NEW FOLDER called checkout_success in the following path:

    includes/templates/YOUR-TEMPLATE-NAME/checkout_success

    2. FTP a COPY of the common tpl_footer.php file to your local machine:

    includes/templates/template_default/common/tpl_footer.php

    3. Open it for EDITING, using a plain text editor.

    4. Right at the BOTTOM of that file, paste the following:
    Code:
    <script language="javascript" src="https://scripts.affiliatefuture.com/AFFunctions.js"></script>
    <script language="javascript">
    
    var merchantID = xxxx ;
    var orderValue = '<?php echo $order_summary['commissionable_order'];?>';
    var orderRef = '<?php echo $order_summary['order_number'];?>';
    var payoutCodes = '';
    var offlineCode = '';
    
    AFProcessSaleV2(merchantID, orderValue, orderRef,payoutCodes,offlineCode);
    
    </script>
    (Remember to re-insert your merchantID and any other stuff you removed when posting the data on this forum)

    5. SAVE the file on your hard drive.

    6. FTP it to:

    includes/templates/YOUR-TEMPLATE-NAME/checkout_success

    So you now have it as follows:

    includes/templates/YOUR-TEMPLATE-NAME/checkout_success/tpl_footer.php
    20 years a Zencart User

  2. #12
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Adding HTML for Affilliate website to my Checkout_confirmation page

    Just to explain why the folder checkout_success is relevant here...

    As the affiliate code is ONLY valuable at checkout_success, creating and naming a folder provides a SPECIFIC PAGE OVER-RIDE for the tpl_footer.php inside it. (In this case, the page is - you guessed it - checkout_success)

    ALL other "pages" on your site will continue to use tpl_footer in the common folder.

    Additionally, (according to drbyte) you need to put the ZC variables...
    Code:
    <?php echo $order_summary['commissionable_order'];?>
    <?php echo $order_summary['order_number'];?>
    ... into tpl_footer.php for them to work. Apparrently, putting them elsewhere won't help, and they won't work!
    20 years a Zencart User

  3. #13
    Join Date
    Mar 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding HTML for Affilliate website to my Checkout_confirmation page

    Thanks for all of the information provided
    I will set this up over the next few days and test.

    Cheers

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v138a Is adding input fields to checkout_confirmation appropriate?
    By Jhedron in forum General Questions
    Replies: 0
    Last Post: 25 Apr 2012, 02:56 AM
  2. Adding text to checkout_confirmation checkout_payment
    By CAguy in forum General Questions
    Replies: 6
    Last Post: 18 Apr 2011, 04:35 PM
  3. Display html as website's first page
    By mtkya in forum Basic Configuration
    Replies: 2
    Last Post: 2 Apr 2008, 06:26 PM
  4. Inserting price on non-zen html page on website
    By davemehta in forum General Questions
    Replies: 11
    Last Post: 17 Jun 2007, 03:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR