我在 magento1.9.0.1 中为产品添加了三个 custom options
. 他们是
Title: Brand, type: drop down, values: b1, b2, b3
Title: Model, type: drop down, values: m1, m2, m3
Title: Color, type: drop down, values: c1, c2, c3
在产品页面中,我必须使用自定义选项 Brand
的值 . $_option
对象包含产品的所有详细信息 . 从 $_option
对象我只需要检索 Brand values
. 我想显示 b1, b2, b3
.
使用 $_option->getId();
我可以得到 custom option id
. $_option->getTitle()
给出 custom option.
的 title
如何从 $_option object
获取 particular custom option values
(我知道它的自定义选项ID) .
请帮我...