ersantosh007/morecheckoutaddressfields

在 Magento 2 中添加额外的结账地址字段

2.2.0 2019-06-27 10:39 UTC

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
  • 插件
  • 在事件中从对象传输值到对象。例如从报价地址传输到订单地址

使用方法

  1. 添加 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>
  1. 添加 extensions_attributes.xml
  2. 添加 customer_address 属性设置
  3. 添加 quote_address 字段设置
  4. 添加 order_address 字段设置