Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在结帐页面上将必填字段更改为可选字段,该字段可以像中间名一样从后端启用和禁用?
在 checkout_index_index.xml 中添加此代码以删除相应项目名称处所需的条目。例如,我删除了名字所需的内容。
<item name="firstname" xsi:type="array"> <item name="validation" xsi:type="array"> <item name="required-entry" xsi:type="boolean">false</item> </item> </item>