|
|
@@ -492,6 +492,9 @@ class Fullorder extends Start_Controller {
|
|
|
$ud['address'] = str_replace("'","’",$ud['address']);
|
|
|
$ud['name'] = str_replace("'","’",$ud['name']);
|
|
|
$customer = $this->customer->get_email($ud['email'],$value['shop']);
|
|
|
+ if(empty($customer)){
|
|
|
+ $customer = $this->customer->get_email($ud['send_email'],$value['shop']);
|
|
|
+ }
|
|
|
$customernum = $this->fullorder->find_count("email = '".$ud['email']."' and shop = '".$value['shop']."' and extra_status = 0");
|
|
|
preg_match_all('/[0-9]/u',$ud['phone'],$result);
|
|
|
$numphone = join('',$result[0]);
|