Исправление передачи цены доставки

This commit is contained in:
Sergey 2019-01-24 18:18:39 +03:00
parent dea4a2a51b
commit 8d4ae3bb8f
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,6 @@
## v2.2.9
* исправление передачи цены доставки в CRM
## v2.2.9
* Добавлена выгрузка габаритов в специальный тег dimensions
* Добавлена выгрузка остатков из CRM

View File

@ -1 +1 @@
2.2.9
2.2.10

View File

@ -3,7 +3,7 @@
* @author Retail Driver LCC
* @copyright RetailCRM
* @license GPL
* @version 2.2.9
* @version 2.2.10
* @link https://retailcrm.ru
*
*/
@ -38,7 +38,7 @@ class RetailCRM extends Module
{
$this->name = 'retailcrm';
$this->tab = 'export';
$this->version = '2.2.9';
$this->version = '2.2.10';
$this->author = 'Retail Driver LCC';
$this->displayName = $this->l('RetailCRM');
$this->description = $this->l('Integration module for RetailCRM');
@ -654,6 +654,7 @@ class RetailCRM extends Module
$customer = array_merge($customer, $address['customer']);
$order = array_merge($order, $address['order']);
$comment = $params['order']->getFirstMessage();
$order['delivery']['cost'] = $params['order']->total_shipping;
if ($comment !== false) {
$order['customerComment'] = $comment;