Hi @takti
i would like to import some product data from FTP. I have read, that i need to adjust this PHP script.
That script is good for large data feeds. If you have a smaller feed then it would probably be easier to use this function/workaround: https://d.pr/n/pAWmDX (note: you must save this snippet in your child themes functions.php file or in a plugin like Code Snippets). Example usage:
[custom_file_download("ftp://username:[email protected]/full/path/to/file.csv", "csv")]
See: https://d.pr/hCfNek.
But my question is, where should i store this php script file?
It should go on your server and it should be accessible via URL. You should name the file something “unguessable” and/or use .htaccess rules to make sure that random people can’t access it.
And how i connect it with WP All Import Plugin.
You’d point the import to the URL for the script in the “Download from URL” field when creating your import.