The CONDITIONS error should be working...
The PAYMENT ERROR seems to be having problems.
Find:
PHP Code:
// check to see if a payment method is selected
$payment_modules = new payment($_SESSION['payment']);
$payment_modules->update_status();
if ((!isset($_SESSION['payment']) && !$credit_covers) || (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$_SESSION['payment'])) && (!$credit_covers) ) {
$payment_error = true;
}
Replace with:
PHP Code:
// check to see if a payment method is selected
$payment_modules = new payment($_SESSION['payment']);
$payment_modules->update_status();
if ((!isset($_SESSION['payment']) && !$credit_covers) || (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$_SESSION['payment'])) && (!$credit_covers) ) {
$payment_error = true;
$messageStack->add_session('checkout_payment', ERROR_NO_PAYMENT_MODULE_SELECTED, 'error');
}
I've added two methods of showing the error messages in this script. Right now it's using the Zen Cart default method.
Bookmarks