1
0
mirror of synced 2025-02-12 02:09:23 +03:00
moysklad-catalog/README.md

38 lines
1.0 KiB
Markdown
Raw Normal View History

2014-12-17 16:24:51 +03:00
# moyskad-catalog
2014-12-16 10:35:14 +03:00
ICML generator for the MoySklad catalog
2014-12-17 16:24:51 +03:00
## Usage
2014-12-17 16:27:04 +03:00
1) Include file `MoySkladICMLParser.php`
2014-12-17 16:24:51 +03:00
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:
2014-12-17 16:31:46 +03:00
* `file` - filename with result icml without path (default: shopname.catalog.xml)
2014-12-17 16:24:51 +03:00
* `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
* `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)
All options keys aren't required