y($cache_payment)){
include_once(cacheexists('payment'));
}
if(!is_array($cache_shipping)){
include_once(cacheexists('shipping'));
}
if($cache_payment[$customer_data['payment_method']]['pay_key'] == 'goodsarrivepay' && $cache_shipping[$customer_data['shipping_method']]['filename'] != 'goodsself'){
$this->db->query("UPDATE ".$table_pre."customers set payment_method='' WHERE customers_id='".$this->customer_data['customer_id']."'");
return false;
}
return true;
}
function check_stock(){
global $settings;
if($settings['stock_check'] != 'true') {
return true;
}
$this->products_data();
if(!is_array($this->products_data)){
return true;
}
return $this->check_stock;
}
function insert_order_total(){
global $table_pre, $customer_id, $settings;
$this->order_total_data();
if(!is_array($this->order_total_data)){
return false;
}
$this->insert_order();
foreach($this->order_total_data as $key=>$val){
$sql_data_array = array(
'orders_id' => $this->insert_order_id,
'value' => $val['money_value'],
'classes' => $key
);
$this->db->perform($table_pre."orders_total", $sql_data_array);
}
reset($order_total);
if($settings['user_leavepay'] == 'true'){
$leaverpay_value = $this->order_total_data['leaverpay']['money_value'];
}else{
$leaverpay_value = 0;
}
$sq
上一篇:
cla.classes.php
下一篇:
法律专业开题报告范文