Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jun 2006
    Posts
    298
    Plugin Contributions
    0

    Default Re: Help with custom code on checkout success page (iDevAffiliate)

    So I figured out if I take the javascript bit of code and put it in the javascript file instead of the header file, it shows up in the right place, but I'm not sure how I can make the variables pass over to the javascript file?

    Code:
    <script language="javascript" type="text/javascript" src="https://www.XXXX.com/idevaffiliate/sale.php?profile=13&idev_saleamt=$idev_saleamt&idev_ordernum=$idev_ordernum"></script>
    Ah well, I will just use the generic pixel tracking for now and wait for iDev's response, unless you have any suggestions? :)

    Thanks for your help.

  2. #12
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help with custom code on checkout success page (iDevAffiliate)

    Okay, I placed another order and see the font size issue. You can turn it off now.
    There are a couple of things that are wrong or odd. The usual font-size resetting to 62.5% is overridden, but no overriding declaration shows up in Firebug. Thus it is using the base browser font-size setting (100%). The difficulty here is that I can't see what is causing the override.

    I get a CSS error message in the validator icon: Unknown pseudo-class or pseudo-element "a". Ruleset ignored due to bad selector. It then points to your stylesheet.css, line 16.
    Your stylesheet has this
    Code:
    .myButton
    a{color:#fff}.myButton:a:visited{color:#fff}.myButton:hover{background-color:#a81c72;color:#fff}.myButton:active{position:relative;top:1px;color:#fff}
    which ought to be
    .myButton a:visited{color:#fff}
    This doesn't seem like it should be related to the problem.

    There is another CSS error: An unbalanced tree was written using document.write() ... and refers to "line 25".
    This indicates a javascript error, which I can't help find or fix. The likely source would be the affiliate javascript.
    Line 25 in your page's view source is

    <script type="text/javascript" src="min/?f=/shop/includes/templates/saffire2/jscript/jscript_imagehover.js&amp;1327610682"></script>

    which wouldn't apply here and not on other pages.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Help with custom code on checkout success page (iDevAffiliate)

    1. Your "large font" is a result of your code changes outputting HTML in the wrong order, thus breaking the page layout and the browser getting confused.

    2. The code you've been given (as quoted in your first post) is outdated. Neither of the code changes you posted is needed. Remove them and do the following instead:

    Create a new file: /includes/modules/pages/checkout_success/jscript_idevaffiliate.php
    Code:
    <?php
      $idev_saleamt = number_format($order_summary['commissionable_order'], 2);
      $idev_ordernum = $order_summary['order_number'];
      echo "<script language=\"javascript\" type=\"text/javascript\" src=\"http://www.saffireblue.ca/idevaffiliate/sale.php?profile=13&idev_saleamt=$idev_saleamt&idev_ordernum=$idev_ordernum\"></script>";
    Ref: http://www.zen-cart.com/content.php?...filiates-Tools
    .

    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.

  4. #14
    Join Date
    Jun 2006
    Posts
    298
    Plugin Contributions
    0

    Default Re: Help with custom code on checkout success page (iDevAffiliate)

    THANK YOU SO MUCH, DrByte!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 23 Feb 2010, 01:21 PM
  2. php error message for my checkout success page that I need help with
    By Markp001 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 5 Jul 2009, 07:53 PM
  3. 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
  4. Sales tracking code for checkout success, please help!
    By boinkit in forum General Questions
    Replies: 0
    Last Post: 6 Mar 2008, 06:08 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