Hi,
I am trying to add location sensing to my wordpress site I have created using this theme. I have altered it to some extent so that it functions the way I want.
I am trying to add another functionality to it to sense the zip code of the visitor and using it to automatically select a shipping method and hide others. Using Geocoding API of Google I have been able to fetch the zip code.
All of this javascript code in custom JS area of the theme options and it works well.
Now I have a set of zip codes which apply to one of the shipping methods I have created and appear in a drop down as per woocommerce setting.
I want that when the checkout page loads the shipping method based on the zip codes should be selected automatically. Then the Ajax call to update the cart should be made.
How can I get this done? Any help?
I am now trying to get into woocommerce code but I think I should be able to do it by editing the theme since it is over riding methods by showing overlays and all. Just need to figure it out. As this will be good as I wouldn’t need to modify the woocommerce core.
Regards
Sumit