Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jun 2007
    Posts
    11
    Plugin Contributions
    0

    Default Integrating Post Affiliate to Zen Cart

    I have a really great Affiliate Program (with the most helpful guys I've come across) and I am trying to integrate it to Zen Cart.

    The following code needs to be placed in the "checkout_success" page:

    <script id="pap_x2s6df8d" src="http://www.capeinfo.co.za/affiliate/scripts/sale.js" type="text/javascript"></script>
    <script type="text/javascript"><!--
    var TotalCost="XXXXXX";
    var OrderID="XXXXXX";
    var ProductID="XXXXXX";
    papSale();
    --></script>

    The TotalCost is the Sub-Total (minus Tax & Shipping) since that is what affiliate payments are based on.

    Where is the best place to put this and what are the codes that need to replace XXXXXX?

    I have tried it there (and similar code on the index page), and impressions and click-throughs are being registered, but I can;t work out what needs to replace the XXXXXX's to register costs.

    I am an absolute novice at doing this myself, but Zen Cart seems to be a great product so far, and your tutorials and help are outstanding.

    Thanks for a fantastic job!

  2. #2
    Join Date
    Jun 2007
    Location
    Orange County
    Posts
    55
    Plugin Contributions
    0

    Default Re: Integrating Post Affiliate to Zen Cart

    Hey,
    I know this is old but here is some help.

    var TotalCost="'.$totalCost.'";
    var OrderID="'.$orderId.'";
    var ProductID="";

    I dont know the ProductID variable.

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

    Default Re: Integrating Post Affiliate to Zen Cart

    Here is the integration code for ANOTHER affiliate software package called JAM by JROX.

    Your affiliate team may be able to work out what needs to be done.

    PHP Code:
    ##########################################
    ## START JAM INTEGRATION WITH ZEN CART ##
    ## ZC Integration code by DrByte 8/2006 ##
    ##########################################
    if ((int)$orders_id 0) {
    $JAM $db->Execute("select class, value from " TABLE_ORDERS_TOTAL " where orders_id = '".(int)$orders_id."' AND class in ('ot_coupon', 'ot_gv', 'ot_subtotal', 'ot_group_pricing')");
    while (!
    $JAM->EOF) {
    switch (
    $JAM->fields['class']) {
    case 
    'ot_subtotal':
    $order_subtotal $JAM->fields['value'];
    break;
    case 
    'ot_coupon':
    $coupon_amount $JAM->fields['value'];
    break;
    case 
    'ot_group_pricing':
    $group_pricing_amount $JAM->fields['value'];
    break;
    case 
    'ot_gv':
    $gv_amount $JAM->fields['value'];
    break;
    }
    $JAM->MoveNext();
    }
    $commissionable_order = ($order_subtotal $gv_amount $coupon_amount $group_pricing_amount);
    $commissionable_order number_format($commissionable_order,2,'.','');
    echo 
    "<script language=\"JavaScript\" type=\"text/javascript\" src=\"https://www.sa-shop.co.uk/jamaffiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>

    </table>"
    ;
    }
    #######################################
    ## END JAM INTEGRATION WITH ZEN CART ##
    #######################################

    ?> 
    Furthermore, you may need to consider the following:-

    With JAM, the integration code is NOT put into the chackout success page, but into a CUSTOM tpl_footer.php page.

    You may need to do something similar. (But don't take my word for it... this is what we do for JAM JROX)

    You make a COPY of tpl_footer from:-

    includes/templates/template_default/common/tpl_footer.php

    and place this copy in

    /public_html/includes/templates/YOUR_TEMPLATE/checkout_success/tpl_footer.php

    (So you create a page over-ride FOLDER called checkout_success, in your overrides folder)

    You paste your affiliate integration code at the BOTTOM of this custom tpl_footer.php file .
    20 years a Zencart User

  4. #4
    Join Date
    Feb 2005
    Location
    New Jersey
    Posts
    646
    Plugin Contributions
    0

    Default Re: Integrating Post Affiliate to Zen Cart

    Hi Capeinfo,

    Did you ever get this to work? I can't get the one I'm using to work right and I'm looking for another one.

    Thanks,
    Kelly

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Integrating Post Affiliate to Zen Cart

    Grab the free version of JROX JAM - okay, so it only permits a max of 50 affiliates, which is what you'd probably want anyway (until you're making big bucks by which time the paid version of JROX JAM is negligible).

    (I have the paid version), and it is exceptional affiliate software - by far the best I've ever used.

    The beauty of it is that YOU manage your affiliate program and don't have to pay affiliate hosts the lion's share of your margin!

    It's quite easy to install and set up, and as schoolboy shows above, the integration code is written for you...

    ... easy as pie!

  6. #6
    Join Date
    Feb 2005
    Location
    New Jersey
    Posts
    646
    Plugin Contributions
    0

    Default Re: Integrating Post Affiliate to Zen Cart

    That is the one I'm using. I can't get it to work right and I've posted numerous times but the replies were vague and didn't help fix my issue.

    I don't mind buying it. But not if I can't get it to work.

    Thanks,
    Kelly

  7. #7
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Integrating Post Affiliate to Zen Cart

    What's not working, Kelly?

    I found it a long (but straightforward) process to install and set up, but my Jrox works perfectly on zencart 1.3.8a .

  8. #8
    Join Date
    Feb 2005
    Location
    New Jersey
    Posts
    646
    Plugin Contributions
    0

    Default Re: Integrating Post Affiliate to Zen Cart

    Well...the only thing I am having an issue with is my upline getting credit for downline sales.
    I have three tiers set up. #1 the sponsor---->#2 recruit----->#3
    When #2 makes a sale they will get 40% and #1 should get 5%. But only #2 is making any commission. #3 isn't even considered in this scenario as we have yet to fix #2.
    I have two programs set up and two groups which may be the problem. But I haven't had any reply to that on the JROX forum.

    Thanks,
    Kelly

  9. #9
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Integrating Post Affiliate to Zen Cart

    Yes, sorry I can't help you with this as we don't use the tiered structures. We have only one program and one affiliate level.

  10. #10
    Join Date
    Feb 2005
    Location
    New Jersey
    Posts
    646
    Plugin Contributions
    0

    Default Re: Integrating Post Affiliate to Zen Cart

    Thank you anyway.
    I appreciate the effort
    But...I can't seem to get any help on the JROX site either. It's frustrating and I have it set up how I want it except for that. Unfortunately it's a biggie and one of the main features I wanted. So not being able to implement it is a major disappointment.

    Thanks again,
    Kelly

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Post Affiliate Pro and Zen Cart Integration
    By powerzone in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Jul 2010, 03:57 AM
  2. how start to integrating zen cart?
    By ranganathanmca in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 9 Jul 2009, 12:48 PM
  3. Integrating Post Affilate Pro with Zen Cart
    By philmoulds in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 22 Nov 2008, 01:30 PM
  4. Replies: 0
    Last Post: 2 Jul 2007, 09:13 AM
  5. integrating zen cart as a category
    By eyaldtz in forum Basic Configuration
    Replies: 2
    Last Post: 18 Jan 2007, 12:25 PM

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