line 69 is after if ($status < 1) break;
thanks...
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
global $db;
require('includes/application_top.php');
// Check for commonly broken attribute related items
eo_checks_and_warnings();
// Start the currencies code
include_once(DIR_WS_INCLUDES . 'init_includes/init_currencies.php');
// Use the normal order class instead of the admin one
include(DIR_FS_CATALOG . DIR_WS_CLASSES . 'order.php');
$oID = zen_db_prepare_input($_GET['oID']);
$step = zen_db_prepare_input($_POST['step']);
$add_product_categories_id = zen_db_prepare_input($_POST['add_product_categories_id']);
$add_product_products_id = zen_db_prepare_input($_POST['add_product_products_id']);
$add_product_quantity = zen_db_prepare_input($_POST['add_product_quantity']);
$orders_statuses = array();
$orders_status_array = array();
$orders_status_query = $db->Execute("select orders_status_id, orders_status_name
from " . TABLE_ORDERS_STATUS . "
where language_id = '" . (int)$_SESSION['languages_id'] . "' order by orders_status_id");
while (!$orders_status_query->EOF) {
$orders_statuses[] = array('id' => $orders_status_query->fields['orders_status_id'],
'text' => $orders_status_query->fields['orders_status_name'] . ' [' . $orders_status_query->fields['orders_status_id'] . ']');
$orders_status_array[$orders_status_query->fields['orders_status_id']] = $orders_status_query->fields['orders_status_name'];
$orders_status_query->MoveNext();
}
$action = (isset($_GET['action']) ? $_GET['action'] : 'edit');
if (zen_not_null($action)) {
if(EO_DEBUG_ACTION_LEVEL > 0) eo_log(
'============================================================' . PHP_EOL .
'= Edit Orders (' . EO_VERSION . ') Action Log' . PHP_EOL .
'============================================================' . PHP_EOL .
'Order ID: ' . $oID . PHP_EOL .
'Action Requested: ' . $action . PHP_EOL .
'Enabled Order Totals: ' . str_replace('.php', '', MODULE_ORDER_TOTAL_INSTALLED) . PHP_EOL
);
switch ($action) {
// Update Order
case 'update_order':
$comments = zen_db_prepare_input($_POST['comments']);
$status = (int)zen_db_prepare_input($_POST['status']);
if ($status < 1) break;
$order_updated = false;
$sql_data_array = array(
'customers_name' => zen_db_prepare_input($_POST['update_customer_name']),
'customers_company' => zen_db_prepare_input($_POST['update_customer_company']),
'customers_street_address' => zen_db_prepare_input($_POST['update_customer_street_address']),
'customers_suburb' => zen_db_prepare_input($_POST['update_customer_suburb']),
'customers_city' => zen_db_prepare_input($_POST['update_customer_city']),
'customers_state' => zen_db_prepare_input($_POST['update_customer_state']),
'customers_postcode' => zen_db_prepare_input($_POST['update_customer_postcode']),
'customers_country' => zen_db_prepare_input($_POST['update_customer_country']),
'customers_telephone' => zen_db_prepare_input($_POST['update_customer_telephone']),
'customers_email_address' => zen_db_prepare_input($_POST['update_customer_email_address']),
'last_modified' => 'now()',
'billing_name' => zen_db_prepare_input($_POST['update_billing_name']),
'billing_company' => zen_db_prepare_input($_POST['update_billing_company']),
'billing_street_address' => zen_db_prepare_input($_POST['update_billing_street_address']),
'billing_suburb' => zen_db_prepare_input($_POST['update_billing_suburb']),
'billing_city' => zen_db_prepare_input($_POST['update_billing_city']),
'billing_state' => zen_db_prepare_input($_POST['update_billing_state']),
'billing_postcode' => zen_db_prepare_input($_POST['update_billing_postcode']),
'billing_country' => zen_db_prepare_input($_POST['update_billing_country']),
'delivery_name' => zen_db_prepare_input($_POST['update_delivery_name']),
'delivery_company' => zen_db_prepare_input($_POST['update_delivery_company']),
'delivery_street_address' => zen_db_prepare_input($_POST['update_delivery_street_address']),
'delivery_suburb' => zen_db_prepare_input($_POST['update_delivery_suburb']),
'delivery_city' => zen_db_prepare_input($_POST['update_delivery_city']),
'delivery_state' => zen_db_prepare_input($_POST['update_delivery_state']),
'delivery_postcode' => zen_db_prepare_input($_POST['update_delivery_postcode']),
'delivery_country' => zen_db_prepare_input($_POST['update_delivery_country']),
'payment_method' => zen_db_prepare_input($_POST['update_info_payment_method']),
'cc_type' => zen_db_prepare_input($_POST['update_info_cc_type']),
'cc_owner' => zen_db_prepare_input($_POST['update_info_cc_owner']),
'cc_expires' => zen_db_prepare_input($_POST['update_info_cc_expires'])
);
Bookmarks