1
0
mirror of synced 2025-02-14 11:13:16 +03:00
moysklad-catalog/doc/README.md
2017-09-14 17:00:56 +03:00

37 lines
962 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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)
* `'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
* `externalCodes` - array with GoodFolder `externalcode` for ignore
* `ignoreNoCategoryOffers` - If `true` goods that do not belong to any category are ignored
All options keys aren't required