3
更改签出步骤时,属性在类Magento \ Quote \ Api \ Data \ AddressInterface中没有相应的setter
1-我将eav属性添加到customer_address $attributesInfo = [ 'reference' => [ 'label' => 'Reference', 'type' => 'varchar', 'input' => 'text', 'position' => 100, 'visible' => true, 'required' => false, ], ]; foreach ($attributesInfo as $attributeCode => $attributeParams) { $customerSetup->addAttribute('customer_address', $attributeCode, $attributeParams); } 2-我在模块中添加了extension属性 <extension_attributes for="Magento\Quote\Api\Data\AddressInterface"> <attribute code="reference" type="string"/> </extension_attributes> 在我的requirejs-config.js中,我覆盖了一些JavaScript文件以添加参考字段 var config = { …