In this article, we will show you how to create Magento Dataflow advanced profiles without touching the backend.
$mageFilename = 'app/Mage.php'; require_once $mageFilename; Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $profile = Mage::getModel('dataflow/profile'); $data = array( 'name' => "Import affiliate Products Feed", 'actions_xml' => 'file var/import true 1 catalog/convert_adapter_Product parse ' ); if (isset($data)) { $profile->addData($data); } try { $profile->save(); } catch (Exception $e){ die($e->getMessage()); } ?>