ersantosh007 / morecheckoutaddressfields
在 Magento 2 中添加额外的结账地址字段
2.2.0
2019-06-27 10:39 UTC
Requires
- php: ~5.6.0|7.0.2|7.0.4|~7.0.6|~7.1.0|~7.2.0
- magento/framework: 100.0.*|100.1.*|101.0.*|102.0.*
This package is auto-updated.
Last update: 2024-09-27 22:46:51 UTC
README
在 Magento 2 中添加额外的结账地址字段
- 它将额外的地址属性字段名、数据范围重命名为 customAttributes.{attribute_code} LayoutProcessor
- 使用一个 JavaScript 混合,将它们从 customAttributes 传输到 extension_attributes
- 插件
- 在事件中从对象传输值到对象。例如从报价地址传输到订单地址
使用方法
- 添加 fieldset.xml
<scope id="global">
<fieldset id="extra_checkout_billing_address_fields">
<field name="attribute_code">
<aspect name="to_order_address" />
<aspect name="to_customer_address" />
</field>
</fieldset>
</scope>
- 添加 extensions_attributes.xml
- 添加 customer_address 属性设置
- 添加 quote_address 字段设置
- 添加 order_address 字段设置