Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2005
    Posts
    53
    Plugin Contributions
    0

    Default Jrox affiliate and currency convertions

    I use jrox affiliate software to generate leads for my zencart 1.3.8 sites. Some sites have there default currency set to pounds, others euros and others dollars. I need to convert the commission values to one common currency in jrox. I found the info below on the jrox forums, but as I am not a developer, I am not sure what the currency variable is and how to use it, see below:

    JAM allows you to convert diffferent currency payments to the appropriate amount when triggering commissions in JAM.

    To do this, follow these steps:

    1. Make sure to send the "currency" variable to sale.php when triggering a commission. For example:
    http://www.domain.com/affiliates/sale.php?amount=$amount&trans_id=$trans_id&currency='USD'
    2. If you have a currency variable that gets set dynamically, you can use this:
    http://www.domain.com/affiliates/sale.php?amount=$amount&trans_id=$trans_id&currency=$currency
    3. Edit the /includes/currencies.php file to either add or edit the conversion table for your currency.

    When JAM processes the commission, it will first lookup the currency conversion amount from the /includes/currencies.php file, then convert it to the proper amount.

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Jrox affiliate and currency convertions

    You probably have added this code to your footer at some point (this is *part of* the JAM code):
    Code:
    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>
    To send the currency code, alter it as shown:
    Code:
    echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"http://www.mydomain.com/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id&currency=$_SESSION['currency']\"></script></td></tr>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2005
    Posts
    53
    Plugin Contributions
    0

    Default Re: Jrox affiliate and currency convertions

    Hi, sorry been away...

    I tried your code, but it did not work, I currently have the code below, how would I need to change it:

    [code]
    ##########################################
    ## START JAM INTEGRATION WITH ZEN CART ##
    ## ZC Integration code by DrByte 8/2006 ##
    ##########################################

    if (isset($zv_orders_id) && (int)$zv_orders_id > 0 && isset($order_summary) && is_array($order_summary)) {
    if (!isset($_SESSION['affiliate_order_id']) || $_SESSION['affiliate_order_id'] != $zv_orders_id ) {
    $_SESSION['affiliate_order_id'] = $zv_orders_id;
    $commissionable_order_formatted = number_format($order_summary['commissionable_order'], 2, '.', '');
    $jamintegrate = file_get_contents('http://www.mydomain.com/jamaffiliates/sale.php?amount=' . $commissionable_order_formatted . '&trans_id=' . $order_summary['order_number'] . '&custom_mid=' . $_COOKIE['jrox']);
    }
    }

    #######################################
    ## END JAM INTEGRATION WITH ZEN CART ##
    #######################################
    [code]

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Jrox affiliate and currency convertions

    You would alter it using the very same approach

    $jamintegrate = file_get_contents('http://www.mydomain.com/jamaffiliates/sale.php?amount=' . $commissionable_order_formatted . '&trans_id=' . $order_summary['order_number'] . '&custom_mid=' . $_COOKIE['jrox'] . "&currency=$_SESSION['currency']");
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2005
    Posts
    53
    Plugin Contributions
    0

    Default Re: Jrox affiliate and currency convertions

    Thanks, all sorted.

 

 

Similar Threads

  1. Zen-Cart 1.3.8a and JROX JAM affiliate software.
    By gabenn2 in forum General Questions
    Replies: 6
    Last Post: 12 Jan 2011, 10:02 AM
  2. Jrox affiliate program install
    By snarfy in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 24 Nov 2009, 11:49 PM
  3. JROX Affiliate Program NOT recording Affiliate Sales
    By PhysiqueBoutique in forum General Questions
    Replies: 6
    Last Post: 17 Oct 2008, 10:34 AM
  4. Jrox vs iDev Affiliate Programs
    By Picci in forum General Questions
    Replies: 4
    Last Post: 19 Nov 2007, 08:33 PM
  5. Zen Cart and Jrox Affiliate Integration with Google Checkout
    By theangel2g in forum General Questions
    Replies: 2
    Last Post: 8 Apr 2007, 10:42 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