mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-03 11:43:16 +03:00
v2.2.2
This commit is contained in:
parent
3c4bb541e7
commit
ce309ff4b5
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user