mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-25 14:46:06 +03:00
Check coupon (#37)
This commit is contained in:
parent
84b851d79b
commit
9949e0fcea
@ -66,7 +66,7 @@ class ModelExtensionRetailcrmOrder extends Model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$order['discount'] = $couponTotal;
|
if(isset($couponTotal)) $order['discount'] = $couponTotal;
|
||||||
$order['createdAt'] = $order_data['date_added'];
|
$order['createdAt'] = $order_data['date_added'];
|
||||||
|
|
||||||
$payment_code = $order_data['payment_code'];
|
$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['createdAt'] = $order_data['date_added'];
|
||||||
$order['paymentType'] = $settings['retailcrm_payment'][$payment_code];
|
$order['paymentType'] = $settings['retailcrm_payment'][$payment_code];
|
||||||
|
|
||||||
@ -227,8 +227,8 @@ class ModelExtensionRetailcrmOrder extends Model {
|
|||||||
'address' => array(
|
'address' => array(
|
||||||
'index' => $order_data['shipping_postcode'],
|
'index' => $order_data['shipping_postcode'],
|
||||||
'city' => $order_data['shipping_city'],
|
'city' => $order_data['shipping_city'],
|
||||||
'country' => $order_data['shipping_country_id'],
|
'countryIso' => $order_data['shipping_iso_code_2'],
|
||||||
'region' => $order_data['shipping_zone_id'],
|
'region' => $order_data['shipping_zone'],
|
||||||
'text' => implode(', ', array(
|
'text' => implode(', ', array(
|
||||||
$order_data['shipping_postcode'],
|
$order_data['shipping_postcode'],
|
||||||
$country,
|
$country,
|
||||||
|
Loading…
Reference in New Issue
Block a user