1
0
mirror of synced 2025-02-06 15:29:25 +03:00

Generating ICML using the MC API JSON 1.1 (#14)

* Generating ICML using the MC API JSON 1.1
* fix MoySkladICMLParser.php
This commit is contained in:
Sergey 2017-04-27 15:40:14 +04:00 committed by Alex Lushpai
parent dc6135e54d
commit 7ba6f4ff45
3 changed files with 391 additions and 514 deletions

File diff suppressed because it is too large Load Diff

View File

@ -57,13 +57,9 @@ d) в строке `'file' => 'test.xml'`, заменить `test.xml` на лю
* `file` - Имя файла с итоговым icml без пути (по умолчанию: shopname.catalog.xml)
* `directory` - Директория для итогового icml файла (по умолчанию: текущая директория)
* `ignoreOffers` - Если `true` модификации товаров из МойСклад будут проигнорированы
* `ignoreCategories` - Строка `'all'` или массив с ключами:
* `uuids` - Массив c `uuid` групп товаров, которые должны быть проигнорированы
* `ignoreCategories` - массив с ключами:
* `ids` - Массив c `id` групп товаров, которые должны быть проигнорированы
* `externalCodes` - Массив c `внешними кодами` групп товаров, которые должны быть проигнорированы
* `ignoreProducts` - Массив с ключами:
* `uuids` - Массив с `uuid` товаров, которые будут проигнорированы (Модификации товара проигнорировать нельзя)
* `externalCodes` - Массив с `внешними кодами` товаров, которые будут проигнорированы (Модификации товара проигнорировать нельзя)
* `ignoreNoCategoryOffers` - Если `true` товары, не принадлежащие ни к одной категории, будут проигнорированы
* `imgur` - Хостинг изображений
* `clientId` - Уникальный идентификатор приложения (как его получить читайте далее)

View File

@ -27,12 +27,9 @@ Options is array with next keys:
* `file` - filename with result icml without path (default: shopname.catalog.xml)
* `directory` - target directory for icml file (default: current directory)
* `ignoreOffers` - if `true` consignment from MoySklad will be ignored
* `ignoreCategories` - string `'all'` or array with keys:
* `uuids` - array with GoodFolder `uuid` for ignore
* `ignoreCategories` - array with keys:
* `ids` - array with GoodFolder `id` for ignore
* `externalCodes` - array with GoodFolder `externalcode` for ignore
* `ignoreProducts` - array with keys:
* `uuids` - array with Good `uuid` for ignore (Consignment can't be ignore)
* `externalCodes` - array with Good `externalcode` for ignore (Consignment can't be ignore)
* `ignoreNoCategoryOffers` - If `true` goods that do not belong to any category are ignored
All options keys aren't required