[Commerce Feeds] Scheduled imports from a remote location
Hi,
Using Commerce Feeds, I have successfully set up an importer to schedule updates to stock and price amounts of products using a csv file. It was easy to set up the upload of a csv file from a local location, but I don't seem to figure out how to specify a remote location such as an FTP directory, for the same csv file.
Would someone have an idea about how this could be done ? I'd like to be able to specify either a directory on an FTP server or a subdirectory on my website.
Thanks much in advance,
Comments
Update:-- I have been
Update:--
I have been experimenting with the HTTP Fetcher which should apparently solve my problem. For the time being it cannot resolve the URL I feed it with (cURL error code 6), although the URL is valid when used directly in the browser. I'll keep looking...
Feeds SQL
I advice you to plugin Feeds Sql in Feeds: http://drupal.org/project/feeds_sql
Works great, allowing you to directly fecth data from an external db ...
Thanks for the advice. I will
Thanks for the advice. I will look into it.
I have pursued my investigation and found out that it was possible to specify a path to a public directory within the site, as a File Upload Fetcher parameter, with the option "Supply path to file or directory directly".
When triggering a new import, a field is displayed to specify a path in the form public://path_to_file where public:// is a placeholder for the URL to the files directory.
With these settings, I was able to automate the import of a csv file containing updated product information.
Thanks again.