Updated 'Known issues'

This commit is contained in:
gleemand 2022-03-20 13:08:51 +03:00 committed by GitHub
parent d8fa2abbd5
commit 730000b47b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,6 @@
# Known issues
Content
## Подписка клиента
Модуль успешно передает статус подписки клиента из Prestashop в CRM, когда этот статус меняется непосредственно в карточке клиента.
В случае подписки клиента через форму подписки на странице сайта, Prestashop никак не уведомляет об этом модули. Следовательно, такое обновление статуса подписки не передается в CRM.

View File

@ -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)));

View File

@ -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);

View File

@ -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'],