v2.3.2
This commit is contained in:
parent
5b6a9762d8
commit
09090fdd5f
@ -1,3 +1,6 @@
|
||||
## 2018-12-25 v.2.3.2
|
||||
* Добавлена выгрузка картинок категорий товаров в ICML
|
||||
|
||||
## 2018-10-25 v.2.3.1
|
||||
* Добавлена активация модуля в маркетплейсе retailCRM
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user