Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2010
    Posts
    32
    Plugin Contributions
    0

    Default Checkout confirmation error

    I have installed the store credit module and have amended the checkout_confirmation/header_php.php file.

    I think I may have deleted some code from this file as when you try to check out it says 'Error - you have not selected a payment method'. I have tried to uninstall the module but then when you select a payment method you just get a blank page.

    I am sure it is something to do with this php file. I also get a Windows Explorer error - stop running this script? A script on this page is causing Internet Explorer to run slowly.

    Unfortunately, I don't have a copy of the original file to put it back as it was.

    Has anyone else had this problem? I have posted a message under the store credit module but have had no replies and I really need to get this working.

    // load the selected payment module
    require(DIR_WS_CLASSES . 'payment.php');

    // BEGIN REWARDS POINTS
    // if credit does not cover order total or isn't selected
    if ($_SESSION['credit_covers'] != true) {
    // check that a gift voucher isn't being used that is larger than the order
    if ($_SESSION['cot_gv'] < $order->info['total']) {
    $credit_covers = false;
    }
    }
    // END REWARDS POINTS

    if ($credit_covers) {

    unset($_SESSION['payment']);
    $_SESSION['payment'] = '';
    }

    //@debug echo ($credit_covers == true) ? 'TRUE' : 'FALSE';

    $payment_modules = new payment($_SESSION['payment']);
    $payment_modules->update_status();
    if (($_SESSION['payment'] == '' && !$credit_covers) || (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$_SESSION['payment'])) && (!$credit_covers) ) {
    $messageStack->add_session('checkout_payment', ERROR_NO_PAYMENT_MODULE_SELECTED, 'error');
    }

    if (is_array($payment_modules->modules)) {
    $payment_modules->pre_confirmation_check();
    }

    if ($messageStack->size('checkout_payment') > 0) {
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
    //echo $messageStack->size('checkout_payment');
    //die('here');
    Any help / advice would be much appreciated.

    Many thanks

    Mel

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Checkout confirmation error

    First, you can get a copy of the original file by downloading the Zencart zip file (link on the forum Home page).

    Second, check for error log files in your /cache folder to see possible reasons for the blank page.

 

 

Similar Threads

  1. Fatal Error on Checkout Confirmation page
    By BergySmalls in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Mar 2008, 07:09 PM
  2. Email Error: Checkout Confirmation
    By Big Kahuna in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 13 Dec 2006, 12:35 AM
  3. Error in checkout confirmation
    By superprg in forum General Questions
    Replies: 1
    Last Post: 16 Nov 2006, 01:15 AM
  4. Internal Server Error 500 at Checkout Confirmation
    By qhome in forum Upgrading from 1.3.x to 1.3.9
    Replies: 13
    Last Post: 2 Nov 2006, 10:11 PM

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