does anyone have an idea, how it's possible to run the new ImportExport profile (e.g. for products or customer export) from shell?
I don't mean dataflow, but the new export routine from Mage_ImportExport module.
Thank you.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communitydoes anyone have an idea, how it's possible to run the new ImportExport profile (e.g. for products or customer export) from shell?
I don't mean dataflow, but the new export routine from Mage_ImportExport module.
Thank you.
Out of the box no you do not have a shell script that can do this. However, you can extend the shell scripts to implement your own import requirement.
I have been using the Danslo API Import which I belive is based on the one you wish to make use of so you should be able to do something very similar to this.
class My_Module_Import extends Mage_Shell_Abstract {
public function run() { $api = Mage::getModel('api_import/import_api'); $api->importEntitites(/* removed code */);
}
You will need to replace the model to the core one, and review the import functionality for the exact format that is required.
As I mentioned this is the one which I am making use of for this: https://github.com/danslo/ApiImport It may be worth reviewing how it wraps down to the core for reference when building your own.