mirror of
https://github.com/retailcrm/opencart-module.git
synced 2025-03-30 11:40:11 +03:00
Check the existence of the coupon
This commit is contained in:
parent
dca2b67a5b
commit
12cc1c620a
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ class ModelExtensionRetailcrmOrder extends Model {
|
|||
}
|
||||
}
|
||||
|
||||
$order['discount'] = $couponTotal;
|
||||
if(isset($couponTotal)) $order['discount'] = $couponTotal;
|
||||
$order['createdAt'] = $order_data['date_added'];
|
||||
|
||||
$payment_code = $order_data['payment_code'];
|
||||
|
@ -210,7 +210,7 @@ class ModelExtensionRetailcrmOrder extends Model {
|
|||
}
|
||||
}
|
||||
|
||||
$order['discount'] = $couponTotal;
|
||||
if(isset($couponTotal)) $order['discount'] = $couponTotal;
|
||||
$order['createdAt'] = $order_data['date_added'];
|
||||
$order['paymentType'] = $settings['retailcrm_payment'][$payment_code];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue