【问题标题】:WooCommerce 4.1+ Geolocation / Geo_IP and Maxmind GeoLite2?WooCommerce 4.1+ 地理位置/Geo_IP 和 Maxmind GeoLite2?
【发布时间】:2020-05-09 18:28:12
【问题描述】:

我在 Woocommerce 设置中发现我将“默认客户位置”设置为“默认无位置”。他们提到我可以使用一个 Maxmind GeoLite 数据库。但是我已经在使用这个类了:

new WC_Geolocation();

它正在工作。有人可以向我解释这是如何工作的吗?

以上课程是免费的,我不需要付费,对吗?

如果 Maxmind 是一项不同的服务,为什么其他人使用它?为什么不使用免费的内置类呢?

【问题讨论】:

    标签: class woocommerce geolocation settings maxmind


    【解决方案1】:

    Maxmind GeoLite2 免费

    自从 WooCommerce 4.1 以来,情况正在发生变化,您现在需要signup for Maxmind GeoLite2。它将允许您生成 GeoLite2 许可证密钥,您将在 woocommerce > 设置 > 集成中设置:

    一切都在这个官方文档中解释:MaxMind Geolocation Integration

    【讨论】:

    • 那么 new WC_Geolocation();是否连接到 MaxMind?
    • 是的,一旦您按照链接文档中说明的步骤操作,因为 MaxMind Geolite2 已集成到 WooCommerce...
    • 对不起@LoicTheAztec!这是正确的,谢谢!我一直在疯狂地工作,所以我忘了接受它:P
    • @ChristineWilson 所以你可以请accept这个答案。谢谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-24
    • 2020-04-29
    相关资源
    最近更新 更多