首页 文章

magento admin中自定义属性和管理属性的混淆

提问于
浏览
0

我完全混淆属性请帮助我 . 我一直在做这个属性任务3天但没有输出我的身边 .

这是一个屏幕截图: -
enter image description here

管理员面板: -
enter image description here

这是我想要的产品列表页面中的灰色和粉红色值.C:\ wamp \ www \ magento \ app \ design \ frontend \ base \ default \ template \ catalog \ product \ list.phtml

表示我的产品列表页面中自定义属性的值 . 请帮帮我怎样才能获得这个 Value .....

使用管理属性/属性集我得到了值:

$size= $_product->getResource()->getAttribute('size')->getFrontend()->getValue($_product) ;//this are simple attributes
$color= $_product->getResource()->getAttribute('color1')->getFrontend()->getValue($_product) ;//this is simple attributes

看到这是我的可配置产品: - http://easycaptures.com/fs/uploaded/672/6732454339.jpg

1 回答

  • 1

    我认为你需要创建“可配置产品”才能做你想做的事 . 示例将允许您创建具有不同颜色变体的衣服产品:

    • 在"Manage Attributes"中创建新属性"Colour"并添加颜色

    • 在"Manage Attribute Sets"中创建新属性集"Clothes"

    • 将颜色属性添加到属性集

    • 在"Manage Products"上创建新产品

    • 选择你的"Attribute set"(衣服)

    • "Product Type"是"Configurable Product"

    • 完成产品详细信息后,保存产品并返回再次编辑 .

    • 单击最后一个选项卡"Associated products"并使用"Quick simple product creation"工具创建颜色变化 .

    • 保存,重新索引并检查前端的产品 .

    您不需要编辑任何代码 . 我希望这有帮助!

相关问题