mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-21 20:56:07 +03:00
Don't update 'createdAt' while updating order in retailCRM
This commit is contained in:
parent
a3b10b6eda
commit
eb507ea62d
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.idea
|
@ -52,7 +52,7 @@ class ModelRetailcrmOrder extends Model {
|
||||
}
|
||||
}
|
||||
|
||||
$order['createdAt'] = date('Y-m-d H:i:s');
|
||||
$order['createdAt'] = isset($order_data['date_added']) ? $order_data['date_added'] : date('Y-m-d H:i:s');
|
||||
|
||||
$payment_code = $order_data['payment_code'];
|
||||
$order['paymentType'] = $settings['retailcrm_payment'][$payment_code];
|
||||
@ -154,9 +154,7 @@ class ModelRetailcrmOrder extends Model {
|
||||
}
|
||||
}
|
||||
|
||||
$order['createdAt'] = date('Y-m-d H:i:s');
|
||||
$order['paymentType'] = $settings['retailcrm_payment'][$payment_code];
|
||||
|
||||
$country = (isset($order_data['shipping_country'])) ? $order_data['shipping_country'] : '' ;
|
||||
|
||||
$order['delivery'] = array(
|
||||
|
@ -56,7 +56,7 @@ class ModelRetailcrmOrder extends Model {
|
||||
}
|
||||
}
|
||||
|
||||
$order['createdAt'] = date('Y-m-d H:i:s');
|
||||
$order['createdAt'] = isset($order_data['date_added']) ? $order_data['date_added'] : date('Y-m-d H:i:s');
|
||||
|
||||
$payment_code = $order_data['payment_code'];
|
||||
$order['paymentType'] = $settings['retailcrm_payment'][$payment_code];
|
||||
@ -162,9 +162,7 @@ class ModelRetailcrmOrder extends Model {
|
||||
}
|
||||
}
|
||||
|
||||
$order['createdAt'] = date('Y-m-d H:i:s');
|
||||
$order['paymentType'] = $settings['retailcrm_payment'][$payment_code];
|
||||
|
||||
$country = (isset($order_data['shipping_country'])) ? $order_data['shipping_country'] : '' ;
|
||||
|
||||
$order['delivery'] = array(
|
||||
|
Loading…
Reference in New Issue
Block a user