Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Mar 2009
    Posts
    9
    Plugin Contributions
    0

    Default Adding HTML for Affilliate website to my Checkout_confirmation page

    Hello

    I am new to Zencart. One of my first tasks is to add HTML code from affilliatefuture.co.uk. I need to add this into my order confirmation page.
    My problem is that when I download the page it is just in PHP and cannot see where I would add the code.
    Am I missing something such as a related HTML page or am I trying to edit the wrong information.

    When I checkout the URL is /index.php?main_page=checkout_confirmation

    I have downloaded the checkput_confirmation.php file to try and edit?

    Any help if anyone has set code up in their confirmation code would be grateful

    Cheers

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

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

    As far as I am aware, any tracker code for affiliates should be part of the checkout_success process - ie: tracker invokes AFTER payment has been made...

    I know that the tracker for JROX (free affiliate software for 50 affiliates - bypassing commercial affiliate programs' crippling fees!) is added to a "custom" footer.php that is then in turn placed in a new directory called "checkout_success".

    Look for posts on JROX JAM integration code for further ideas.
    19 years a Zencart User

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    The template file for your checkout_confirmation page is in tpl_checkout_confirmation_default.php. That's the appropriate place to add your affiliate HTML.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    The JROX approach is non-standard. Somehow it works even though structure is odd and HTML are broken. I suspect that it was written for an earlier version of Zen Cart and is somehow limping along, but there's no guarantee that it will continue to work in the newly restructured Zen Cart 2.0.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

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

    Kuroi... why would this be checkout_confirmation and not checkout_success? (as is the case with jrox)

    My thinking is that at checkout_confirmation, the cart has not yet ensured payment is received... It's not a good idea to have commissions calculated at a point where there could be no cash transacted?

    What if checkout_confirmation progresses to payment gateway - and shopper then abandons the purchase?

    Your thoughts... ?
    19 years a Zencart User

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    Schoolboy, you are correct. I picked up the reference to checkout_confirmation from the original post and carried it forward without thinking. It should be tpl_checkout_success_default.php. My bad. Apologies for the confusion.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

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

    Tx Kuroi... now how do we help clarkeyi insert it... ?

    clarkeyi - if you are there... Show us the affiliatefuture html code (remove any sensitive data by replacing it with xxxxxxxx or something, but make sure we can interpret its structure.)
    19 years a Zencart User

  8. #8
    Join Date
    Mar 2009
    Posts
    9
    Plugin Contributions
    0

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

    Thanks for the advice. Hopefully it is just a case of adding it to tpl_checkout_success_default.php

    The code is below:

    html>
    <head>
    </head>
    <body>

    Your website code here. Add this code beneath.
    <script language="javascript" src="https://scripts.affiliatefuture.com/AFFunctions.js"></script>
    <script language="javascript">

    var merchantID = xxxx ;
    var orderValue = 'ORDER_VALUE';
    var orderRef = 'ORDER_REF';
    var payoutCodes = '';
    var offlineCode = '';

    AFProcessSaleV2(merchantID, orderValue, orderRef,payoutCodes,offlineCode);

    </script>

    </body>
    </html>


    Thanks

  9. #9
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

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

    OK, the bit that's relevant is:

    Code:
    <script language="javascript" src="https://scripts.affiliatefuture.com/AFFunctions.js"></script>
    <script language="javascript">
    
    var merchantID = xxxx ;
    var orderValue = 'ORDER_VALUE';
    var orderRef = 'ORDER_REF';
    var payoutCodes = '';
    var offlineCode = '';
    
    AFProcessSaleV2(merchantID, orderValue, orderRef,payoutCodes,offlineCode);
    
    </script>
    You don't need the HTML headers or the closing tags - just the bit I show above.

    It's probably just a case of pasting that code right at the bottom of the tpl_checkout_success_default.php file .

    But I don't know how ZC is going to "parse" the ORDER_VALUE and ORDER_REF data.... ??? It may need ZC's specific references here...

    Kuroi--- you're the guru in this dept!
    19 years a Zencart User

  10. #10
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

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

    This thread may help you with the PARSING challenge!

    http://www.zen-cart.com/forum/showthread.php?t=112649
    19 years a Zencart User

 

 
Page 1 of 2 12 LastLast

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