Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Select downloaded module archive and confirm installation. Wait for a message about successful installation.

Go to "SestemSуIn some casesstem" section → "Users" → "User Groups"

...

Go to “Extensions” section → “Extensions”.

Перейдите в раздел «Модули/Расширения» → «Модули/Расширения»

Image Removed

Выберите тип расширения «Модули» и нажмите кнопку «Активировать» для модуля «OT API Import».

Image Removed

Перейдите в раздел «Модули/Расширения» → «Модификаторы» и нажмите справа вверху кнопку «Обновить».

Image Removed

Модуль установлен.


Choose extension type "Modules" in drop-down menu.

Image Added


Click "Install" button for "OT API Import" module 

Image Added


Go to “Extensions” section → “Modifications” and click "Refresh" button on top right.

Image Added


Module is installed.

Scheduled product update

...

  1. Manually copy cli directory from the module archive to the directory where admin folder is located.
  2. To automatically update products on a schedule, you need to set up cron job to run with a frequency equal to or less than the value of product update launch period (this is Update interval parameter in module settings - update interval in minutes).
  3. example of running cron job every hour:
    @hourly cd "opencart directory"/cli && php7.4 otapi_import_cli.php > /dev/null 2>&1
  4. Importing a large number of goods can take a long time - from several hours to several days, depending on the server computing resources of the server, especially the database server. Therefore, too frequent launch intervals do not make sense: if the previous import has not yet been completed, the new one will still not be launched.
  5. Импорт большого количества товаров может занимать продолжительное время — от нескольких часов до нескольких суток в зависимости от вычислительных ресурсов сервера, в особенности сервера БД. Поэтому слишком частые интервалы запуска не имеют смысла: если предыдущий импорт еще не завершен, новый все равно не будет запущен.

Work with plugin

Перейдите в раздел «Модули/Расширения» → «Модули/Расширения»

Image Removed

  1. Нажмите кнопку «Редактировать» для модуля «OT API Import». (Доступен также более короткий путь к настройкам модуля через «Каталог» → «OT API Импорт».
  2. Задайте необходимые параметры настроек и нажмите кнопку «Сохранить настройки».
  3. Для быстрого наполнения каталогов товарами рекомендуется установить галочку «Test category filling» (тестовое наполнение каталогов) и задать параметр «Frame size» — размер фрейма 5-10 товаров. Именно столько товаров загрузится для каждой категории.
  4. Совершите первичную загрузку каталога товаров: перейдите в настройки модуля во вкладку «Импорт каталога» и нажмите кнопку «Импорт каталога».
  5. После завершения тестового импорта проверить, что все каталоги загрузились и содержат товары. После этого уберите галочку «Test category filling», установите «Frame size» в размере 200-500 и произведите полный импорт каталога.
  6. По окончании импорта отобразится сообщение об успешной загрузке каталога.

Важные замечания:

Go to “Extensions” section → “Extensions”.

Image Added


  1. Click "Edit" button for "OT API Import" module. (A shorter path to the module settings is also available through “Catalog” → “OT API Import”
  2. Make necessary settings and click "Save settings".
  3. To quickly fill catalogs with products, it is recommended to check “Test category filling” box and set “Frame size” parameter - 5-10 products. This is the number of uploaded products for each category.
  4. Make initial uploading of product catalogue: go to "Catalog" → "OT API Import" and click "Catalog import".
  5. After the test import is completed, check that all directories of catalog are downloaded and contain goods. Remove check mark «Test category filling» after that, set «Frame size» 200-500 and make full import of catalog.
  6. Once the import is complete, a message that catalog has been successfully loaded will be displayed.


Important notes:

  1. Import will continue as long as the page is open in the browser.
  2. If you refresh the page or log in again, you must click "Catalog import" button again to resume importing.
  3. In this case system will prompt you to select “New import” (Start import from the beginning) or “Continue import” (continue work from the point where the import was suspended).
  4. In some cases, “Failed
  5. Импорт будет продолжаться до тех пор пока открыта страница в браузере.
  6. При обновлении страницы или повторном входе в систему для возобновления импорта нужно заново нажать кнопку «Catalog import» (Импорт каталога).
  7. При этом система предложит выбрать «New import» (Начать импорт сначала) или «Continue import» (продолжить работу с того места на котором импорт был приостановлен).
  8. В некоторых случаях при запуске импорта может появиться сообщение «Failed to get "otapi_import_lock" on sql connection, another import is running» — это значит импорт уже был запущен другим процессом, например, через cron, или был запущен ранее в другой вкладке браузера.
  9. Импорт через cron работает циклично, т.е. по завершении импорт будет запущен снова. Еcли такое поведение не нужно, можно после полного импорта каталога отключить импорт в настройках модуля: поле status, или же просто задать для cron больший интервал, например, 1 неделя.

Удаление

  1. running" message may appear when import starts - this means that import has already started by another process, for example, via cron, or was launched earlier in another browser tab.
  2. Import via cron works cyclically, i.e. once completed, import will be started again. If you don’t need this behavior, you can disable import in module settings after a complete catalogue import: status field or simply set cron to a larger interval, for example, 1 week.

Removal

  1. Remove the task to run product updates from cron.
  2. Go to “Extensions” section → “Extensions” and click "Uninstall" button for "OT API Import" module.
  3. Go to “Extensions” section → “Installer" and click "Uninstall" button for "OT API Import" module.
  4. Go to “Extensions” section → “Modifications" and click "Update" button.
  5. Delete cli directory if you added it.
  6. Удалите из cron задание на запуск обновления товаров.
  7. Перейдите в раздел «Модули/Расширения» и нажмите кнопку «Деактивировать» для модуля «OT API Import».
  8. Перейдите в раздел «Модули/Расширения» → «Установка расширений» и нажмите кнопку «Деактивировать» для модуля «OT API Import».
  9. Перейдите в раздел «Модули/Расширения» → «Модификаторы» и нажмите кнопку «Обновить».
  10. Удалите каталог cli, если вы его размещали