ersantosh007 / morecheckoutaddressfields
Add Extra Checkout Address Fields In Magento 2
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
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-04-27 21:57:24 UTC
README
Magento 2 Add Extra Address Fields to Checkout
- It renames extra address attribute fieldname, datascope to customAttributes.{attribute_code} LayoutProcessor
- With a javascript mixin it transports them from customAttributes to extension_attributes
- Plugin
- In a event is transport the values from object to object. Example Quote Address to Order Address
Usage:
- Add a 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>
- Add a extensions_attributes.xml
- Add a customer_address attribute setup
- Add a quote_address field setup
- Add a order_address field setup