Magento2 Magento 2发货地址自定义下拉字段值未过帐
我们在结帐页面的发货地址下添加了自定义字段 它是select字段,我们正在显示数据库中的自定义选项。它工作正常,但当我们单击“下一步”并移动到“付款”选项以在该时间下订单时,价值不会过账。所选下拉列表值未显示在控制台中 若我们添加文本字段,那个么它将显示控制台中发布的值。可能是什么问题Magento2 Magento 2发货地址自定义下拉字段值未过帐,magento2,shopping-cart,checkout,custom-fields,Magento2,Shopping Cart,Checkout,Custom Fields,我们在结帐页面的发货地址下添加了自定义字段 它是select字段,我们正在显示数据库中的自定义选项。它工作正常,但当我们单击“下一步”并移动到“付款”选项以在该时间下订单时,价值不会过账。所选下拉列表值未显示在控制台中 若我们添加文本字段,那个么它将显示控制台中发布的值。可能是什么问题 $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['custom-field'] = [
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress.custom_attributes',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/select',
'id' => 'custom-field',
'options' => $optionarray
],
'dataScope' => 'shippingAddress.custom_attributes.custom_field',
'label' => 'Custom Field',
'provider' => 'checkoutProvider',
'visible' => true,
'validation' => [],
'sortOrder' => 250,
'id' => 'custom-field'
];
return $jsLayout;
任何帮助都将不胜感激