1
0
mirror of synced 2025-02-06 23:39:24 +03:00
moysklad-catalog/doc/README.md

40 lines
1.2 KiB
Markdown
Raw Normal View History

2014-12-17 18:41:35 +03:00
# moyskad-catalog
ICML generator for the MoySklad catalog
## Usage
1) Include file `MoySkladICMLParser.php`
2) Configure parser
```php
$parser = new MoySkladICMLParser(
'login@moysklad',
'password',
'shopname',
$options
);
```
3) Call `generateICML` method
See file `example.php` for simple usage example.
## Options
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)
2017-09-14 17:00:56 +03:00
* `'archivedGoods'` - option for inclusion in the generation of archived goods and trade offers (takes the values of `true` or` false`)
* `ignoreCategories` - array with keys:
* `ids` - array with GoodFolder `id` for ignore
2014-12-17 18:41:35 +03:00
* `externalCodes` - array with GoodFolder `externalcode` for ignore
* `ignoreNoCategoryOffers` - If `true` goods that do not belong to any category are ignored
2017-09-29 10:40:30 +03:00
* `imageDownload` - an array containing information for loading images.
* `site` - the address of the site from where images will be given in retailCRM
* `pathToImage` - The path from the root of the site to the directory where images will be stored
2014-12-17 18:41:35 +03:00
2017-09-14 17:00:56 +03:00
All options keys aren't required