Magento 1.9.0.1中$ _option对象的自定义选项值

时间:2015-06-01 12:53:33

标签: php magento-1.9

我在 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()给出了title

custom option.

如何从particular custom option values获取$_option object(我知道其自定义选项ID)。

请帮帮我......

0 个答案:

没有答案