更新时间:2023-11-26 23:11:04
如果需要将自定义产品属性添加到购物车,只需将以下代码行添加到模块配置中即可:
If you need add you custom product attribute to shopping cart, just add the following lines of code into your module configuration:
<config>
<global>
<sales>
<quote>
<item>
<product_attributes>
<[your_custom_attribute_code] />
</product_attributes>
</item>
</quote>
</sales>
</global>
</config>
只需将 [your_custom_attribute_code] 替换为属性代码即可. 您也可以根据需要添加任意多个属性,只需在配置中添加一个以上的属性即可.
Just replace [your_custom_attribute_code] with the code of your attribute. You may also add as many attributes as you wish, just add one more attribute into configuration.