【问题标题】:Update Magento database to reflect default billing address更新 Magento 数据库以反映默认帐单地址
【发布时间】:2015-06-25 17:53:15
【问题描述】:

我刚刚将 130,000 名客户转移到 Magento,所以我希望有一个 MySQL 查询可以完成最后一步,让我免于重新导入。

我想在数据库上运行一个查询,以将从转移中导入的地址设置为“默认帐单地址”。当它设置为默认值时,客户数据会在 Magento 后端的 Customers -> Manage Customers 下显示和搜索。

在后端手动将客户地址设置为默认值时,我知道至少以下表格已更新(customer_address_entity_intcustomer_entity_int)。不确定这是否是最好的方法,所以任何建议都会有所帮助。

【问题讨论】:

    标签: mysql magento


    【解决方案1】:
    • 首先需要从eav_attribute中获取default_billing的属性ID
    • 然后从这个表customer_address_entity中获取你想要默认的导入地址ID。
    • 最后搜索attribute_identity_idcustomer_id)并用address_id更新值列

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-17
      • 2012-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-06
      相关资源
      最近更新 更多