Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009
    Posts
    1
    Plugin Contributions
    0

    Default Need variables for idevaffiliate variable pass ons?

    Im trying to use the optional variable pass on but im having a bit of confusion where to find the variables.

    Directions

    This feature allows you to pass additional information to your commission records. In addition to the (default) order number, you can pass other items such as the customer name, IP address, street address, item(s) purchased, etc. You can pass up to 3 additional items.

    Integration Profile: Zen Cart
    For information about which variables are available, consult your shopping cart provider.
    When entering the variable name, enter it exactly as it was given to you by your provider


    Any help would be greatly appreciated.

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Need variables for idevaffiliate variable pass ons?

    Quote Originally Posted by s2kinteg916 View Post
    Im trying to use the optional variable pass on but im having a bit of confusion where to find the variables.
    <snip>
    Any help would be greatly appreciated.
    The variables available to you will depend very much on the code that is running at the time you wish to use them. For example, many of the shipping module variables won't be available during the checkout procedure, and most of the checkout variable won't be avialable unless you are on one of the checkout pages, and so on.

    Most good IDE's will have means to show what variables are available at any given time, but if you want a VERY CRUDE method to show all the variables (and values) available at any given time simply insert the following code snippet into you code at the point you wish to use them.

    var_dump(get_defined_vars()) ; exit

    Cheers
    Rod

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

    Default Re: Need variables for idevaffiliate variable pass ons?

    This takes me back several years, but I've had this on my hard drive since 2006 or so... I was considering IDEV at the time.

    I am NOT SURE if this is relevant, but here it is anyway:

    Code:
    --------------------------------------------
    Add iDevAffiliate to your Zen Cart-
    --------------------------------------------
    
    1. Login to your iDevAffiliate Admin Center and click on Cart Integration.
    
    2. Pick the Automatic Integration Method and continue to the next page.
    
    3. Choose Zen Cart in the dropdown menu then click Update And Continue To Next Page.
    
    4. Follow the instructions on the next page (Processing Code).
    
    --------------------------------------------
    These instructions are listed below as well.
    --------------------------------------------
    
    1. Copy this file: /includes/templates/template_default/templates/tpl_checkout_success_default.php.
    
    2. Find the following code which already exists in the file.
     
      <?php echo TEXT_YOUR_ORDER_NUMBER . $zv_orders_id; ?>
     
    3. Cut/Paste the following code into the file (under the code above).
     
    <?
    $idev = $db->Execute("select * from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders->fields['orders_id']."' AND class = 'ot_subtotal'");
    $idev_zen_1 = (number_format($idev->fields['value'],2));
    $idev_zen_2 = $idev->fields['orders_id'];
    print "<script language=JavaScript type=text/javascript src=http://www.yoursite.com/idevaffiliate/sale.php?idev_zen_1=$idev_zen_1&idev_zen_2=$idev_zen_2></script>";
    ?>
    
    4. Save the file to your custom template. /includes/templates/YOUR_TEMPLATE/templates/
    
    --------------------------------------------
    Notes.
    --------------------------------------------
    Be sure to adjust the path in step #3 so it correctly points to your iDevAffiliate installation location.
    20 years a Zencart User

 

 

Similar Threads

  1. Need help with code for direct product links for iDevAffiliate
    By rlfreshwater in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 20 Jan 2009, 02:22 PM
  2. Extra variables for iDevAffiliate
    By bhakans in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Oct 2008, 09:37 PM
  3. Help with iDevAffiliate and Variable Names
    By fmckinnon in forum General Questions
    Replies: 1
    Last Post: 28 Jul 2006, 03:44 PM
  4. Need Order Total Variable For iDevAffiliate
    By etrader in forum General Questions
    Replies: 5
    Last Post: 19 Jun 2006, 07:57 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