Is it possible to import Magento products using MAGMI from a script by specifying a single profile, but with multiple import files?
For example, I have hundreds of brands - each with their own import file. Can I write a simple script that will loop through the list of my import files and call magmi.php with my single profile (all of my new imports use the same profile) and use the respective brand import file as a parameter?
Instead having to create a profile for each brand...:
php magmi.cli.php -profile=brand1importnew -mode=xcreate
I would like to use a single profile, loop through each brand in the script and specify the brand (or an import file) as an parameter:
php magmi.cli.php -profile=importnew -mode=xcreate -file=brand1.csv
Does this ability exist within magmi?
#!/bin/bash FILES=/home/user1/public_html/var/import/TEMP/new_products_m*.csv for f in $FILES do date echo "Running Magmi import with file: $f" FILEPATH=${FILES}${f} php-cli magmi.cli.php -profile=ppwd_import_new -mode=xcreate -CSV:filename=$FILEPATH wait date echo "Completed import of $f" echo "" done
------ The profile exists and the paths are echo'ing correctly. Also tried with 'php' and 'php-cli'. – ctroyp Oct 09 '14 at 03:19