1
0
mirror of synced 2024-11-21 20:46:06 +03:00
This commit is contained in:
Akolzin Dmitry 2018-12-25 15:07:36 +03:00
parent 5b6a9762d8
commit 09090fdd5f
5 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,6 @@
## 2018-12-25 v.2.3.2
* Добавлена выгрузка картинок категорий товаров в ICML
## 2018-10-25 v.2.3.1
* Добавлена активация модуля в маркетплейсе retailCRM

View File

@ -1 +1 @@
2.3.1
2.3.2

View File

@ -105,7 +105,13 @@ class Icml
$e = $this->eCategories->appendChild(
$this->dd->createElement('category')
);
$e->appendChild($this->dd->createTextNode($category->getName()));
$e->appendChild($this->dd->createElement('name', \htmlspecialchars($category->getName())));
if ($category->getImageUrl()) {
$e->appendChild($this->dd->createElement('picture', \htmlspecialchars($category->getImageUrl())));
}
$e->setAttribute('id', $category->getId());
if ($category->getParentId() > 1) {

View File

@ -36,6 +36,7 @@ class Customer implements \Magento\Framework\Event\ObserverInterface
$customer = $observer->getEvent()->getCustomer();
$this->customer = $this->serviceCustomer->process($customer);
$this->api->setSite($this->helper->getSite($customer->getStore()));
$response = $this->api->customersEdit($this->customer);
if ($response === false) {
@ -43,7 +44,6 @@ class Customer implements \Magento\Framework\Event\ObserverInterface
}
if (!$response->isSuccessful() && $response->errorMsg == $this->api->getErrorText('errorNotFound')) {
$this->api->setSite($this->helper->getSite($customer->getStore()));
$this->api->customersCreate($this->customer);
}

View File

@ -5,7 +5,7 @@
"retailcrm/api-client-php": "~5.0"
},
"type": "magento2-module",
"version": "2.3.1",
"version": "2.3.2",
"license": [
"OSL-3.0",
"AFL-3.0"