This commit is contained in:
Sergey 2018-08-31 13:40:16 +03:00
parent 3c4bb541e7
commit ce309ff4b5

View File

@ -497,8 +497,8 @@ class RetailCRM extends Module
$address = array_shift($addressCollection); $address = array_shift($addressCollection);
if ($address instanceof Address) { if ($address instanceof Address) {
$additionalPhone = !empty($address->phone) ? $address->phone : ''; $additionalPhone = !empty($address->phone) ? $address->phone : '';
$phone = !empty($address->phone_mobile) ? $address->phone_mobile : ''; $phone = !empty($address->phone_mobile) ? $address->phone_mobile : '';
$postcode = $address->postcode; $postcode = $address->postcode;
$city = $address->city; $city = $address->city;
$addres_line = sprintf("%s %s", $address->address1, $address->address2); $addres_line = sprintf("%s %s", $address->address1, $address->address2);
@ -538,9 +538,9 @@ class RetailCRM extends Module
$comment = $params['order']->getFirstMessage(); $comment = $params['order']->getFirstMessage();
if ($comment !== false) { if ($comment !== false) {
$order['customerComment'] = $comment; $order['customerComment'] = $comment;
} }
foreach ($cart->getProducts() as $item) { foreach ($cart->getProducts() as $item) {
if (isset($item['id_product_attribute']) && $item['id_product_attribute'] > 0) { if (isset($item['id_product_attribute']) && $item['id_product_attribute'] > 0) {