I have done this script to runs data/profile using ssh terminal to export csv data of all products inside of magento 1.9. I need to have the category name (structure tree) instead of category Ids but i do not know how to do that. Attached my code.

#$profileId = 1; #All Products
$profileId = 49; #OnSale
require_once 'app/Mage.php';
$profile = Mage::getModel('dataflow/profile');
$userModel = Mage::getModel('admin/user');
if (!$profile->getId()) {
 Mage::getSingleton('adminhtml/session')->addError('[ERROR] Invalid ID');
Mage::register('current_convert_profile', $profile);
$recordCount = 0;

1 Answer 1


I solve the problem, check out my solution. To export category name instead of category Ids, you should unparse the file app/code/core/Mage/Catalog/Model/Convert/Parser/Product.php by copy and replace this lines (around at 402 line)


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.