【发布时间】:2013-09-26 11:36:07
【问题描述】:
我想在管理员中动态(通过表单)创建自定义类别属性。 我的意思是,如何通过 Model/Controller 类创建自定义类别属性? 请建议我解决此问题的正确解决方案。
提前致谢!
【问题讨论】:
标签: magento attributes magento-1.7 categories
我想在管理员中动态(通过表单)创建自定义类别属性。 我的意思是,如何通过 Model/Controller 类创建自定义类别属性? 请建议我解决此问题的正确解决方案。
提前致谢!
【问题讨论】:
标签: magento attributes magento-1.7 categories
也许this free extension 会帮助你。
我在 Magento 1.9 上使用它
案例:在后端,我使用 Attributecode 创建了一个属性:category_custom_attribute
要显示在类别上:编辑 /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; ?>
【讨论】: