diff --git a/doc/4. Known issues/README.md b/doc/4. Known issues/README.md index 5707691..22e1ae2 100644 --- a/doc/4. Known issues/README.md +++ b/doc/4. Known issues/README.md @@ -1,3 +1,6 @@ # Known issues -Content \ No newline at end of file +## Подписка клиента + +Модуль успешно передает статус подписки клиента из Prestashop в CRM, когда этот статус меняется непосредственно в карточке клиента. +В случае подписки клиента через форму подписки на странице сайта, Prestashop никак не уведомляет об этом модули. Следовательно, такое обновление статуса подписки не передается в CRM. \ No newline at end of file diff --git a/retailcrm/lib/RetailcrmCartUploader.php b/retailcrm/lib/RetailcrmCartUploader.php index 141078f..940eff7 100644 --- a/retailcrm/lib/RetailcrmCartUploader.php +++ b/retailcrm/lib/RetailcrmCartUploader.php @@ -150,7 +150,7 @@ class RetailcrmCartUploader $response = static::$api->ordersGet($cartExternalId); if (!($response instanceof RetailcrmApiResponse)) { - //TODO + // TODO // Extract address from cart (if exists) and append to customer? // Or maybe this customer will not order anything, so we don't need it's address... static::$api->customersCreate(RetailcrmOrderBuilder::buildCrmCustomer(new Customer($cart->id_customer))); diff --git a/retailcrm/lib/RetailcrmExport.php b/retailcrm/lib/RetailcrmExport.php index ff77d8e..7287acd 100644 --- a/retailcrm/lib/RetailcrmExport.php +++ b/retailcrm/lib/RetailcrmExport.php @@ -167,7 +167,7 @@ class RetailcrmExport if (!empty($orderCustomer->id)) { $orderBuilder->setCmsCustomer($orderCustomer); } else { - //TODO + // TODO // Caused crash before because of empty RetailcrmOrderBuilder::cmsCustomer. // Current version *shouldn't* do this, but I suggest more tests for guest customers. $orderBuilder->setCmsCustomer(null); diff --git a/retailcrm/lib/events/RetailcrmMissingEvent.php b/retailcrm/lib/events/RetailcrmMissingEvent.php index bd269ab..fdb203f 100644 --- a/retailcrm/lib/events/RetailcrmMissingEvent.php +++ b/retailcrm/lib/events/RetailcrmMissingEvent.php @@ -187,7 +187,7 @@ class RetailcrmMissingEvent extends RetailcrmAbstractEvent implements RetailcrmE foreach ($products as $product) { $item = [ - //'productId' => $product['product_id'], + // 'productId' => $product['product_id'], 'offer' => ['externalId' => $product['product_id']], 'productName' => $product['product_name'], 'quantity' => $product['product_quantity'],