想在结帐的收货地址中添加一些自定义字段。我只有来宾结帐,没有登录过程。还希望将字段保存在db中,并在sales-> orders送货地址中检索数据。
我尝试了https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_field.html
但是在mixin js / action / set-shipping-information中,
shippingAddress['extension_attributes']['custom_field'] = shippingAddress.customAttributes['custom_field'];
正在获得未定义的值。