Automatic loading of supplier price lists
A set of scripts has been developed for an online store that downloads stock and price files from various sources for each importer into separate folders for further uploading of this data into 1C and onto the website. The need for this arose because different importers provide their stock in different formats and from different sources. Therefore, the script collects this data from:
- b2b importer (using API keys)
- from Google Drive
- from a separate page on the website
- from emails that arrive in Gmail.
Then it converts them to xls or xml and saves them in a separate folder for each importer. Next, all this information is processed by 1C and transferred to the website. Additional features:
- Ability to change API keys for b2b importers in the settings file
- Ability to increase or decrease the price to/from the number of hryvnias in the final file
The operation of the script is shown in the screenshot (personal data blurred).
- b2b importer (using API keys)
- from Google Drive
- from a separate page on the website
- from emails that arrive in Gmail.
Then it converts them to xls or xml and saves them in a separate folder for each importer. Next, all this information is processed by 1C and transferred to the website. Additional features:
- Ability to change API keys for b2b importers in the settings file
- Ability to increase or decrease the price to/from the number of hryvnias in the final file
The operation of the script is shown in the screenshot (personal data blurred).