Import YML. A module for automatically uploading products to an online store based on Opencart 3.x from a YML file from another online store or supplier. The module is convenient for dropshipping, as most suppliers provide a YML file with products for import.
The module does not import large YML prices! If your price list is more than 5 Mb, this may cause problems.
Products can be imported by uploading a YML file to a form or by linking to a YML file. If you register a link, then you can put a job in the cron-scheduler on the server to run the product update script from the specified source periodically. So, the products in your store will be updated automatically. In this case, you need to configure the module: provide a link to the YML file and specify which product fields need to be updated. Then put a cron task to run the script {your site}/admin/import_yml_cron.php (if there are a lot of goods to import, it is better to run the script via CLI to avoid server time limits for script processing). Your hosting support will help you set the task in the cron manager.
Module installation:
You must first have https://opencart3x.ru/module/admin/localcopy-ocmod installedUpload the module through the admin panel - in the Install modules section, select the archive import_yml_oc3.ocmod.zipUpdate modifications in the admin panel in the Modifiers section (or Add-ons Manager)IMPORTANT! Add rights to your user group to view and edit the module - to do this, open the section System > Users > User groups > Administrators > check the boxes next to "tool/import_yml" in the first two blocks.Go to "System" > "Development" (another translation is "Tools" or "Maintenance") > "Import YML", set the desired settings, save and start importing. If you cannot find the module along this path, here is a direct link to the module page in the admin panel http://yourwebsite/admin/index.php?route=tool/import_ymlAttention! The module does not need to be searched in the Modules section, it should not be there. It will be available in the menu at the above address after updating the modifications and adding rights to the user group.
Import YML. Possible problems:
If there are too many products in the YML file, your server may not have time to process it in the time allocated to it, and after a few minutes of import, you will receive a server error.
Don't worry, there are several options for solving this problem:
Run the import until you receive a message about the successful completion of the operation. Each time new products will be added and so on until full import. The main thing is to uncheck "Delete all products".You need to maximize the processing time of scripts on the server, the php-parameter max_execution_time is responsible for this. Hosting technical support can help you with this, or you can increase this parameter in the server settings or through the php.ini file - look for instructions "how to do this" in Google / Yandex.Run the import script {your site}/admin/import_yml_cron.php using the CLI (from the SSH command line). Before that, in the module settings, you need to register a link to YML and save it.Split the YML file into several files, taking into account the main YML markupChanges:
- 11/01/2017 - bug with file import fixed, cron module work fixed
- 03/12/2018 - added support for importing pictures with Cyrillic names (image names are transliterated); the problem of updating additional pictures when updating pictures is disabled has been solved.
- 04/26/2018 - added the ability to record several categories for a product, solved some problems when updating products
- 09/26/2018 - the module has been updated, problems with rewriting categories and product parameters have been solved.
- 12/07/2018 - minor problems with updating categories are solved
- 01/15/2019 - version 3.1: the module has been improved in terms of disabling field updates, the problem with languages has been resolved, the problem with SEO URL generation has been resolved, and the module compatibility has been improved.
- 01/25/2019 - minor fix to improve versatility.
- 04/08/2019 - solved the problem with the appearance of "uploaded file is empty"
- 09/12/2019 - improved image loading
- 09/14/2019 - old price import (adding shares)
- 01/06/2020 - the problem of importing images with the same name is solved
- 01/29/2020 - the problem of importing images with spaces in the title is solved
- 02/27/2020 - improved compatibility with prices when launching a krone update
- 03/27/2020 - added noindex parameter for categories
- 06/03/2020 - the problem with loading images for some price lists was solved