为了简化顾客在注册,操作下剤时的步骤,试着去掉lastname ,这里,首先跟据Magento 1.x 方式要去掉lastname 验证,在数据库中进行
UPDATE eav_attribute SET is_required = 0 WHERE attribute_code = ‘lastname’ 这个表有两条lastname 数据,这里要把 is_required 字段改为0
另外在Magento2 中找到vendor\magento\module-customer\Model\Customer.php 与 vendor\magento\module-customer\Model\Address\AbstractAddress.php
去掉相关lastname相关字段的判断即可,测试可以进行本站注册与下单