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.
我为地址表单创建了一个新属性,它工作正常,我的问题是老客户。我怎样才能强迫他们必须编辑他们的地址?
当他们进入结帐页面时,他们选择了旧地址而不知道新属性,正确填写对我们来说非常重要
好,
我所做的是直接在 mage/sales/checkout/ 下编辑 billing.phtml 并添加一些代码以直接检查地址的新属性是否存在
使用完整的 sql,例如:
SELECT * FROM customer_address_entity_varchar WHERE attribute_id = my_new_attribute_id AND entity_id = my_address_id
谢谢, 乔纳森