更新时间:2022-03-24 07:16:07
将此添加到 config.xml 中的全局范围.然后只需在报价单中设置属性 - 它会自动转移到报价单到订单转换过程中的订单.
Add this to the gobal scope in config.xml. Then simply set the attribute in the quote - it gets automagically transferred to the order in the quote to order conversion process.
<global>
...
<fieldsets>
<sales_convert_quote>
<your_special_attribute>
<to_order>*</to_order>
</your_special_attribute>
</sales_convert_quote>
</fieldsets>
...
</global>
您可以随时通过魔法 getter/setter 检索/设置属性,例如
You can retrieve/set the attribute at any time via the magic getter/setter e.g.
$quote->getYourSpecialAttribute()
$order->getYourSpecialAttribute()
$quote->setYourSpecialAttribute()