[Commerce Feeds] Scheduled imports from a remote location

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,

Posted: Oct 5, 2011


Patricec on October 5, 2011

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...

Patricec on October 7, 2011

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.