• Hi Benjamin,

    I’m trying to see how I can use your plugin to extend/override the existing Woocommerce geolocation and add in data acquired from the sources your plugin provides access to. In this case, all I want is the state to be added (mostSpecificSubdivision->isoCode) along with the country that’s provided by the inbuilt MaxMind DB.

    The reason I want to extend the existing functionality rather than use your plugins data directly is that I want to use a shipping calculator plugin that references the in-built data already.

    I’m looking at the woocommerce source files and finding it hard to decipher what would accomplish this. The only filter I’ve found is ‘woocommerce_geolocate_ip’, but that only seems to affect the country code. I know it stores the geolocation data in a hashed cookie, but that also seems mystically hard to access and modify.

    Any leads would be appreciated for the best method to accomplish this with your great plugin!

    Thanks,

    Mik

Viewing 1 replies (of 1 total)
  • Plugin Author Benjamin Pick

    (@benjaminpick)

    Mixing the data from Geolocation with the one provided from WooCommerce doesn’t make too much sense I suppose – what if one source says it’s “Italy” and the other source says it’s “Germany, Berlin”. You’d need one “true” datasource.
    So I guess what you are trying to do is replacing the geolocation mechanicsm in WooCommerce with the one from this plugin via a WooCommerce filter, is this correct? I don’t know how the shipping calculator works.

Viewing 1 replies (of 1 total)
  • The topic ‘extending woocommerce’s existing geolocation functions’ is closed to new replies.