Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个多语言的ans,我想测试我是否有“是/否”属性,但我为每个商店得到不同的值;例如:“Yes”代表英文商店,“Oui”代表法国商店……
如何获取属性选项值,如布尔值(1 或 0)?
感谢帮助。
You should use following code.
$_product->getData('attribute_code')