1
0
mirror of synced 2025-02-06 23:39:24 +03:00
moysklad-catalog/doc/README.md
Sergey 7ba6f4ff45 Generating ICML using the MC API JSON 1.1 (#14)
* Generating ICML using the MC API JSON 1.1
* fix MoySkladICMLParser.php
2017-04-27 14:40:14 +03:00

819 B

moyskad-catalog

ICML generator for the MoySklad catalog

Usage

  1. Include file MoySkladICMLParser.php

  2. Configure parser

$parser = new MoySkladICMLParser(
    'login@moysklad',
    'password',
    'shopname',
    $options
);
  1. 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)
  • 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