Magento Forum

xml or csv output of all products and categories
 
MuschPusch
Member
 
Total Posts:  44
Joined:  2008-04-24
 

Hi,

i really need to export all products and categories (with descriptions and images) to xml. I’m looking for a solution for a couple of weeks.

I’m glad with any idea… Until now i only converting the csv output of all products to xml but don’t know how get more advanced category information because i don’t know how to initialize the class to use this functions:

require_once 'magento/app/Mage.php';
umask(0);
//not Mage::run();
Mage::app('default');
$huh=Mage::getModel('catalog/category');
?>
      <?PHP
      
/* Get the categories that are active for the store */
      
$_main_categories=$huh->getStoreCategories();
      
/* Get the current category the user is in */
      
$_current_category=$huh->getCurrentCategory();
      
?>

regards Volkan

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top