This pull request adds support for using separate first & last name fields for billing/shipping addresses. The Address class will now automatically pick up fields called shipping_first_name, shipping_last_name.
If you wish to use separate fields for the first & last names of addresses, you need to:
Adjust the fields on your Order blueprint. They'll need to match this naming convention:
shipping_first_name
shipping_last_name
billing_first_name
billing_last_name
Replace shipping_name and billing_name in your field whitelist with the new field handles.
Adjust the inputs on your frontend forms to accommodate for the separate fields.
This pull request adds support for using separate first & last name fields for billing/shipping addresses. The
Address
class will now automatically pick up fields calledshipping_first_name
,shipping_last_name
.If you wish to use separate fields for the first & last names of addresses, you need to:
shipping_first_name
shipping_last_name
billing_first_name
billing_last_name
shipping_name
andbilling_name
in your field whitelist with the new field handles.