Magento2 Magento 2.3.3客户发货地址名字问题&引用;“名字”;是必需的
摘要 当我在客户注册/登录后尝试下订单时。Magento 2.3.3显示“名字是必填字段错误。不显示名字字段。当我尝试在配置文件页面或后端创建发货地址时,会显示名字字段,但发生相同的验证错误!” 通过数据迁移工具从1.9.3.4迁移数据 我在另一个版本magento中读到了同样的问题,但没有找到解决方案 我尝试使用eav_属性和customer_eav_属性。我将is_visible=1,is_required=0,但没有帮助 复制步骤Magento2 Magento 2.3.3客户发货地址名字问题&引用;“名字”;是必需的,magento2,magento2.3.3,Magento2,Magento2.3.3,摘要 当我在客户注册/登录后尝试下订单时。Magento 2.3.3显示“名字是必填字段错误。不显示名字字段。当我尝试在配置文件页面或后端创建发货地址时,会显示名字字段,但发生相同的验证错误!” 通过数据迁移工具从1.9.3.4迁移数据 我在另一个版本magento中读到了同样的问题,但没有找到解决方案 我尝试使用eav_属性和customer_eav_属性。我将is_visible=1,is_required=0,但没有帮助 复制步骤 登录 结帐单 填写船运表格 显示错误:请检查发货地址信息。
在从Magenro 1.9迁移到magento 2.3.3之后,我遇到了这个问题,对我来说,这种方法是有效的: 在mysql命令行上运行 从eav\u属性中选择属性\u id、属性\u代码,其中 属性_code=“firstname” 它会像这样出现 然后运行以下查询,不要忘记根据您的终端更改属性\u id:
INSERT INTO `customer_form_attribute` (`form_code`, `attribute_id`) VALUES ('adminhtml_checkout', '5');
INSERT INTO `customer_form_attribute` (`form_code`, `attribute_id`) VALUES ('adminhtml_customer_address', '5');
INSERT INTO `customer_form_attribute` (`form_code`, `attribute_id`) VALUES ('adminhtml_customer_address', '20');
INSERT INTO `customer_form_attribute` (`form_code`, `attribute_id`) VALUES ('customer_address_edit', '5');
INSERT INTO `customer_form_attribute` (`form_code`, `attribute_id`) VALUES ('customer_address_edit', '20');
INSERT INTO `customer_form_attribute` (`form_code`, `attribute_id`) VALUES ('customer_register_address', '20');
INSERT INTO `customer_form_attribute` (`form_code`, `attribute_id`) VALUES ('customer_register_address', '5');