Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Problem with JROX JAM: blank checkout success page with v1.5.5e

    Hello Team,

    Long after successful upgrade to v1.5.5e I noticed that

    /includes/templates/your_template/checkout_success/ folder was missing.

    Zen Cart works normal with confirmation page as usual complete.

    (https://www.idtagsonline.com/index.p...eckout_success )

    So, I added: /includes/templates/your_template/checkout_success/ tpl_footer.php and JROX JAM Affiliate works fine and generates commission.

    However, confirmation page is now just white page.

    When I remove /checkout_success/ tpl_footer.php confirmation page is working again normally.

    I wonder if tpl_footer.php file is too old (2006)?

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

    Default Re: Problem with JROX JAM: blank checkout success page with v1.5.5e

    Quote Originally Posted by idtags View Post
    When I remove /checkout_success/ tpl_footer.php confirmation page is working again normally.

    I wonder if tpl_footer.php file is too old (2006)?
    Very possible. You shouldn't be using the file from the old Zen Cart version on a new Zen Cart version. You should be using just the intentional customizations, applied to the new version of the file. And then adjust any of those customizations to suit the new Zen Cart version if necessary.
    .

    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
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Problem with JROX JAM: blank checkout success page with v1.5.5e

    Thank you very much for your reply.

    So, I took most recent v1.5.5e tpl_footer.php from /includes/templates/template_default/common/

    and added most recent Integration code from JROX: https://jam.jrox.com/kb/article/91/c...th-zencart.php

    After debugging I do not have any log file generated in /public_html/logs/ folder.

    However, result is the same -> blank page.

    New tpl_footer.php (2016) is here:

    *******************************************************************************
    PHP Code:
    <?php
    /**
     * Common Template - tpl_footer.php
     *
     * this file can be copied to /templates/your_template_dir/pagename<br />
     * example: to override the privacy page<br />
     * make a directory /templates/my_template/privacy<br />
     * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php<br />
     * to override the global settings and turn off the footer un-comment the following line:<br />
     * <br />
     * $flag_disable_footer = true;<br />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2016 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: Author: DrByte  Fri Jan 8 17:06:29 2016 -0500 Modified in v1.5.5 $
     */
    require(DIR_WS_MODULES zen_get_module_directory('footer.php'));
    ?>

    <?php
    if (!isset($flag_disable_footer) || !$flag_disable_footer) {
    ?>

    <!--bof-navigation display -->
    <div id="navSuppWrapper">
    <div id="navSupp">
    <ul>
    <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE$_SERVER['REMOTE_ADDR'])))) { ?>
    <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
    <?php ?>
    </ul>
    </div>
    </div>
    <!--eof-navigation display -->

    <!--bof-ip address display -->
    <?php
    if (SHOW_FOOTER_IP == '1') {
    ?>
    <div id="siteinfoIP"><?php echo TEXT_YOUR_IP_ADDRESS '  ' $_SERVER['REMOTE_ADDR']; ?></div>
    <?php
    }
    ?>
    <!--eof-ip address display -->

    <!--bof-banner #5 display -->
    <?php
      
    if (SHOW_BANNERS_GROUP_SET5 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET5)) {
        if (
    $banner->RecordCount() > 0) {
    ?>
    <div id="bannerFive" class="banners"><?php echo zen_display_banner('static'$banner); ?></div>
    <?php
        
    }
      }
    ?>
    <!--eof-banner #5 display -->

    <!--bof- site copyright display -->
    <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY?></div>
    <!--eof- site copyright display -->

    <?php
    // flag_disable_footer
    ?>

    <?php if (false || (isset($showValidatorLink) && $showValidatorLink == true)) { ?>
    <a href="https://validator.w3.org/check?uri=<?php echo urlencode('http' . ($request_type == 'SSL' 's' '') . '://' $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . (strstr($_SERVER['REQUEST_URI'], '?') ? '&' '?') . zen_session_name() . '=' zen_session_id()); ?>" target="_blank">VALIDATOR</a>
    <?php 
    // flag_disable_footer
    ##########################################
    ## 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=\"https://www.idtagsonline.com/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script>";
    }
    #######################################
    ## END JAM INTEGRATION WITH ZEN CART ##
    #######################################
    ?>

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

    Default Re: Problem with JROX JAM: blank checkout success page with v1.5.5e

    According to an article I wrote a long time back, there's an even simpler integration:
    https://www.zen-cart.com/content.php...filiates-Tools

    Simply create a new file: /includes/modules/pages/checkout_success/jscript_jam.php
    containing:
    Code:
    <?php
    // pass details to JROX JAM
    echo '<script src="https://www.idtagsonline.com/affiliates/sale.php?amount=' . $order_summary['commissionable_order'] .'&trans_id=' . $order_summary['order_number'] . '"></script>';
    This way you can get rid of the extra checkout_success folder containing the extra tpl_footer.php file, as they're redundant
    .... and that will make maintenance and upgrades much simpler.
    .

    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
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Problem with JROX JAM: blank checkout success page with v1.5.5e

    Just tried and it works.
    This is GREAT and elegant solution!

    I will go to more extensive testing from scratch (create affiliate and record the sale) and report back.

    Thank you very much for pointing to this solution.

  6. #6
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: Problem with JROX JAM: blank checkout success page with v1.5.5e

    Internal test was positive. All aspects were working well.
    Waiting for new Affiliate to sign-up.
    Thanks again for resolution!

 

 

Similar Threads

  1. success page blank with WorldPay addon
    By lee_whitehead in forum Addon Payment Modules
    Replies: 1
    Last Post: 6 May 2010, 03:21 PM
  2. Checkout Success page coming up with error message
    By Salina13 in forum General Questions
    Replies: 15
    Last Post: 2 Mar 2007, 03:33 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