0

What is the best way to accomplish this? Please don't just say "magmi".

Additionally, my dataflow profiles do not work on my local/vagrant build. It just keeps timing out.

Is there a way to do it through a PHP script to export to CSV file or through MySQL.

Any help would be greatly appreciated. Thank you.

1 Answer 1

1

This script will help you to export all product to csv file. The file will be generated in var/inportexport folder.

$data=array(); 
$data['entity'] = 'catalog_product';  
$data['file_format'] = 'csv';  
$data['form_key'] = Mage::getSingleton('core/session')->getFormKey();  
$data['export_filter'] = array();  
$model = Mage::getModel('importexport/export');     
$model->setData($data);

$model->export();  
$model->getContentType();
7
  • Thanks for your contribution to my thread. What about attributes, will this include them as well?
    – thismethod
    Commented Sep 15, 2016 at 17:24
  • ya. you use this script. it include all the attribute. Commented Sep 16, 2016 at 3:15
  • voted up my answer if you satisfy with my answer. Commented Sep 16, 2016 at 7:06
  • It just timed out on my dev environment.
    – thismethod
    Commented Sep 16, 2016 at 19:18
  • how many product in yout store? Commented Sep 17, 2016 at 9:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.