Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2005
    Posts
    25
    Plugin Contributions
    0

    Errors after purchase made... IdevAffiliates

    http://theeclecticgourmet.net/store/...eckout_success

    This is the error i am getting : Parse error: syntax error, unexpected '<' in /home/krisinva/public_html/store/includes/templates/template_default/templates/tpl_checkout_success_default.php on line 75

    Can you tell me where I am getting this from. I have looked and I can't find it.

    Thanks,
    Amy B

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Errors after purchase made... IdevAffiliates

    can you copy and paste this file here please,
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Jun 2005
    Posts
    25
    Plugin Contributions
    0

    Default Re: Errors after purchase made... IdevAffiliates

    Here is the information you need:

    <?php
    /**
    * checkout_success header_php.php
    *
    * @package page
    * @copyright Copyright 2003-2006 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: header_php.php 3160 2006-03-11 01:37:18Z drbyte $
    */

    // This should be first line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_START_CHECKOUT_SUCCESS');

    // if the customer is not logged on, redirect them to the shopping cart page
    if (!$_SESSION['customer_id']) {
    zen_redirect(zen_href_link(FILENAME_TIME_OUT));
    }

    $notify_string='';
    if (isset($_GET['action']) && ($_GET['action'] == 'update')) {
    $notify_string = 'action=notify&';
    $notify = $_POST['notify'];

    if (is_array($notify)) {
    for ($i=0, $n=sizeof($notify); $i<$n; $i++) {
    $notify_string .= 'notify[]=' . $notify[$i] . '&';
    }
    if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);
    }
    if ($notify_string == 'action=notify&') {
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));
    } else {
    zen_redirect(zen_href_link(FILENAME_DEFAULT, $notify_string));
    }
    }

    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    $breadcrumb->add(NAVBAR_TITLE_1);
    $breadcrumb->add(NAVBAR_TITLE_2);

    // find out the last order number generated for this customer account
    $orders_query = "SELECT * FROM " . TABLE_ORDERS . "
    WHERE customers_id = :customersID
    ORDER BY date_purchased DESC LIMIT 1";
    $orders_query = $db->bindVars($orders_query, ':customersID', $_SESSION['customer_id'], 'integer');
    $orders = $db->Execute($orders_query);
    $orders_id = $orders->fields['orders_id'];
    $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.theeclecticgourmet.net/idevaffiliate/sale.php?idev_zen_1=$idev_zen_1&idev_zen_2=$idev_zen_2\"></script>";


    // use order-id generated by the actual order process
    // this uses the SESSION orders_id, or if doesn't exist, grabs most recent order # for this cust (needed for paypal et al).
    // Needs reworking in v1.4 for checkout-rewrite
    $zv_orders_id = ($_SESSION['order_number_created'] >= 1) ? $_SESSION['order_number_created'] : $orders_id;
    $orders_id = $zv_orders_id;
    $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.theeclecticgourmet.net/idevaffiliate/sale.php?idev_zen_1=$idev_zen_1&idev_zen_2=$idev_zen_2\"></script>";

    // prepare list of product-notifications for this customer
    $global_query = "SELECT global_product_notifications
    FROM " . TABLE_CUSTOMERS_INFO . "
    WHERE customers_info_id = :customersID";

    $global_query = $db->bindVars($global_query, ':customersID', $_SESSION['customer_id'], 'integer');
    $global = $db->Execute($global_query);
    $flag_global_notifications = $global->fields['global_product_notifications'];

    if ($flag_global_notifications != '1') {

    $products_array = array();
    $counter = 0;

    $products_query = "SELECT products_id, products_name
    FROM " . TABLE_ORDERS_PRODUCTS . "
    WHERE orders_id = :ordersID
    ORDER BY products_name";

    $products_query = $db->bindVars($products_query, ':ordersID', $orders_id, 'integer');
    $products = $db->Execute($products_query);

    while (!$products->EOF) {
    $notificationsArray[] = array('counter'=>$counter,
    'products_id'=>$products->fields['products_id'],
    'products_name'=>$products->fields['products_name']);
    $counter++;
    $products->MoveNext();
    }
    }

    $flag_show_products_notification = (CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS == '1' and sizeof($notificationsArray)>0 and $flag_global_notifications != '1') ? true : false ;

    $products_displayed = array();


    $gv_query = "SELECT amount
    FROM " . TABLE_COUPON_GV_CUSTOMER . "
    WHERE customer_id = :customersID ";

    $gv_query = $db->bindVars($gv_query, ':customersID', $_SESSION['customer_id'], 'integer');
    $gv_result = $db->Execute($gv_query);

    if ($gv_result->fields['amount'] > 0 ) {
    $customer_has_gv_balance = true;
    $customer_gv_balance = $currencies->format($gv_result->fields['amount']);
    }


    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_CHECKOUT_SUCCESS, 'false');

    // This should be last line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_END_CHECKOUT_SUCCESS');
    ?>

 

 

Similar Threads

  1. v154 URGENT, No purchase record after customer purchase
    By lcc93611 in forum General Questions
    Replies: 3
    Last Post: 9 Jan 2016, 11:33 PM
  2. Replies: 2
    Last Post: 23 Nov 2010, 02:10 AM
  3. Purchase made on Zencart did not go through to Paypal
    By Chopin in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 9 Oct 2010, 06:22 AM
  4. I'm getting this error after a purchase is made for my download
    By CaliforniaKinship in forum Setting Up Categories, Products, Attributes
    Replies: 41
    Last Post: 21 Aug 2009, 12:24 AM
  5. Idevaffiliates Tier system
    By jakker in forum General Questions
    Replies: 17
    Last Post: 7 Apr 2007, 11:34 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