导出ID为&ŧ039;的类别
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了导出ID为&ŧ039;的类别相关的知识,希望对你有一定的参考价值。
Simply save the above code in a php file in the base Magento directory of your store, and visit the URL in your web browser, simples!
<?php require_once MAGENTO . '/app/Mage.php'; Mage::app(); $category = Mage::getModel ( 'catalog/category' ); $tree = $category->getTreeModel (); $tree->load (); $ids = $tree->getCollection ()->getAllIds (); if ($ids) { $file = "var/import/catwithid.csv"; foreach ( $ids as $id ) { $string = $id . ', ' .$category->load($id)->getName() . " "; } } ?>
以上是关于导出ID为&ŧ039;的类别的主要内容,如果未能解决你的问题,请参考以下文章
检查是否安装了Apache&ŧ039;的modŧu rewrite。