【发布时间】:2018-07-17 09:57:59
【问题描述】:
我正在尝试检索制造商属性的文本值。这是一个下拉字段。我试过这个:
$manufacturerName = $_product->getAttributeText('manufacturer');
$manufacturerId = $_product->getManufacturer();
$manufacturerName 应该显示“BrandName”,但即使我更改制造商,它也始终显示 1。当我更改制造商时,$manufacturerId 会更改。
我不明白为什么制造商名称显示不正确。有什么想法吗?
【问题讨论】: