π£ The forum has moved to GitHub
Weβve switched to GitHub Discussions as the hub for our community. This will improve the experience of collaborating for everyone, sharing what youβre working on, and discussing ideas for how Swell can be improved. Existing threads will remain open, but new posts are disabled.
Go to GitHub βImport products with csv/json with cronjobs
Hi, I was wondering if it's possible to import products from CSV feed but not for one time only but regularly update them with cronjobs or something like that. It would be very useful when running a dropshipping store where the warehouse gives you a CSV feed with all of its products, and you only import the products through CSV feed to your website on regular basis.
Comments
-
Hello @Sebastian Danac, Our engineers advised that we do not have the ability to import products according to a schedule at this time.
As a workaround, you can try to set this up by utilizing the backend API:
- You must run your own server on node.
- You must install and authorize swell-node package in your store. See https://developers.swell.is/backend-api/authentication
With this, you can run a schedule on your server and with the required period, check the special folder for new files with products, read these files, and for each product to import:
- Convert the product to the swell model (https://developers.swell.is/backend-api/products/the-product-model)
- Post to the /products url (https://developers.swell.is/backend-api/products/create-a-product)
All this can help to import products on a regular basis.
0