启用平面数据时,Magento 的选项无法进入列表页面
Magento hasoption not getting on list page when flat data enabled
我无法在 magento 列表页面的产品集合中获取产品的 hasoption 值。
我尝试在我的自定义模块中添加这个 xml 标签
<config>
<frontend>
<product>
<collection>
<attributes>
<MPN />
<JAN />
<UPC />
</attributes>
</collection>
</product>
</frontend>
</config>
以上代码适用于产品属性,当打开平面数据时,它不适用于产品的 hasoption 值。
知道如何在列表页面的 magento 平面数据集合中包含 hasoptions。
您实际上不必为此添加任何 XML。
尝试在 catalog_eav_attribute
中将 used_in_product_listing
字段设置为 1
table 对应 attribute_id
。
我无法在 magento 列表页面的产品集合中获取产品的 hasoption 值。
我尝试在我的自定义模块中添加这个 xml 标签
<config>
<frontend>
<product>
<collection>
<attributes>
<MPN />
<JAN />
<UPC />
</attributes>
</collection>
</product>
</frontend>
</config>
以上代码适用于产品属性,当打开平面数据时,它不适用于产品的 hasoption 值。
知道如何在列表页面的 magento 平面数据集合中包含 hasoptions。
您实际上不必为此添加任何 XML。
尝试在 catalog_eav_attribute
中将 used_in_product_listing
字段设置为 1
table 对应 attribute_id
。