gpt4 book ai didi

attributes - 我如何从 magento 2 的属性值中获取属性标签?

转载 作者:行者123 更新时间:2023-12-05 08:19:00 25 4
gpt4 key购买 nike

我从下面的代码中得到了属性值 232

$_product->getData('farben');

我如何从这个值得到它的标签?

最佳答案

试试

$_product->getAttributeText('farben');

关于attributes - 我如何从 magento 2 的属性值中获取属性标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40107612/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com