extending woocommerce’s existing geolocation functions
-
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
- The topic ‘extending woocommerce’s existing geolocation functions’ is closed to new replies.