【问题标题】:create custom category attributes dynamically in admin在管理员中动态创建自定义类别属性
【发布时间】:2013-09-26 11:36:07
【问题描述】:

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

提前致谢!

【问题讨论】:

    标签: magento attributes magento-1.7 categories


    【解决方案1】:

    也许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; ?>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-20
      • 2022-11-11
      • 1970-01-01
      相关资源
      最近更新 更多