在admin中动态创建自定义类别属性

时间:2013-09-26 11:36:08

标签: magento attributes magento-1.7 categories

我想在admin中动态创建自定义类别属性(通过Form)。 我的意思是,如何通过Model / Controller类创建自定义类别属性? 请建议我解决此问题的正确解决方案。

提前致谢!

1 个答案:

答案 0 :(得分:1)

也许this free extension会帮助你。

我在Magento 1.9上使用它

案例:在后端我用Attributecode创建了一个属性:category_custom_attribute

要在类别上显示:edit /app/design/frontend/your-template/your-template/template/catalog/category/view.phtml

<?php $category = Mage::registry('current_category'); ?>
<?php $CatCustomAttribute = $category->getCategory_custom_attribute(); ?>
<?php echo $CatCustomAttribute; ?>