Results 1 to 10 of 17

Hybrid View

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

    Default Re: New Jrox JAM integration code for 1.3.8

    Hi,
    I also have a question concerning Jam. I added the following code to the bottom of my tpl_footer. Is this correct? They do state the code is provided by ZenCart. I am using 1.3.8 but now I am noticing an issue during check out since adding the code. At the last stage of checkout, confirm order, I am getting a warming that the page contains secure and unsecure items. Is this possibly due to the 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_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;
    }
    $JAM->MoveNext();
    }
    $commissionable_order = ($order_subtotal - $coupon_amount - $group_pricing_amount);
    $commissionable_order = number_format($commissionable_order,2,'.','');
    echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"http://www.mydomain.com/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>

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

    Thanks,
    Kelly

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

    Default Re: New Jrox JAM integration code for 1.3.8

    It was it...
    I just changed the src=\"http://www.mydomain.com/affiliates/sale.php?
    to src=\"https://www.mydomain.com/affiliates/sale.php?
    I seems to have fixed the problem...I hope!

    Thanks,
    Kelly

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

    Default Re: New Jrox JAM integration code for 1.3.8

    If changing the "http" to "https" results in no errors, then what you have done should be OK.
    20 years a Zencart User

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: New Jrox JAM integration code for 1.3.8

    Another option is to change:

    from
    src=\"http://www.mydomain.com/affiliates/sale.php?

    to
    src="/affiliates/sale.php?

    That allows your Browser to decide if using an 'https' or 'http' connection.

    You only need to use a full URL (includes the Domain name) when the link is to another site. Then you have to decide if 'https' or 'http' is to be used.

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

    Default Re: New Jrox JAM integration code for 1.3.8

    Thanks Rob!! I think that is a much better idea.

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

    Default Re: New Jrox JAM integration code for 1.3.8

    I have another question. I have a java code script in a sidebox to show the person that sent you to my site. If they are an affiliate or demostrator. I had to change the path on that as well. But anyway...I think it is really slowing down my site when someone goes through check out. Is that to be expected?
    Here is my "affiliate" link. Please be aware the site sells lingerie and toys.

    http://anniej.sleeplessnightsonline.com/


    Thanks,
    Kelly

  7. #7
    Join Date
    Apr 2007
    Posts
    649
    Plugin Contributions
    0

    Default Re: New Jrox JAM integration code for 1.3.8

    I am having the same problem, I have everything set up *commisions, programs, etc* but when I create an order, it counts the link but does not generate the commission.
    it doesn't look like my commissions db is being written to.
    any ideas?

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

    Default Re: New Jrox JAM integration code for 1.3.8

    ...careful, you will need the full path if your Affiliate Software resides on a different URL, or in a sub-directory.
    20 years a Zencart User

 

 

Similar Threads

  1. JROX JAM Affiliate program integration
    By eazy in forum All Other Contributions/Addons
    Replies: 15
    Last Post: 27 Jan 2011, 01:07 AM
  2. Jrox JAM integration
    By Berzerk in forum General Questions
    Replies: 8
    Last Post: 11 Jan 2011, 08:09 AM
  3. Jam Jrox integration - can't get it to record
    By jasonk in forum General Questions
    Replies: 29
    Last Post: 26 Sep 2008, 07:26 AM

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