wamic
Forum Replies Created
-
Hi @missveronicatv,
I can confirm that the code snippet in your second reference works!
So now with the 1st and 2nd snippets mentioned in this thread, we are able to populate the Billing Address after UM user registration and thereafter, if UM’s address was change (in the user profile), the Billing Address will be updated after each product order.Of course, the ultimate solution is to perform an on going sync between UM and Billing Addresses (better if in both directions).
The second best could be ensuring that any UM address change (in the user profile) will be automatically reflected in the Billing Address. The truth is that with the 1st and 2nd snippets, we are almost there. So what is left is to ensure that any UM address change must trigger a sync with the Billing Address (regardless to ordering process completion).
Have you seen a snippet to achieve that?
Thank you again!!!
Not after your original reply – above.
I tried to contact them in the first place and this how I was redirected to this WP-UM forum.We are looking for something very basic. We are not building a real marketplace, but use available tools to allow not very sophisticated people to propose services (mainly on volunteering basis) to each other (services among community members).
Thanks.
Hi @missveronicatv,
I am exited to update you that your code snippet perfectly works, including with our changes mentioned in my previous message!
Thanks a lot!The only disadvantage with this snippet that we have in our case is that in order to populate all the relevant billing address fields (including in the backend, user profile), the user must complete the order process, not just to see the fields on the Check Out page.
Is there a way to modify the snippet in the way that the “billing address fill in actions” will be activated with the UM User Registration form submission?
Thank you.
Thank you @missveronicatv for your prompt reply! I have not seen this thread and will ask our developer to include the proposed code snippet and see what happens.
If we use the snippet, will it also fill in the “Customer billing address” in the customer’s WP profile? This is a very important step for us as there are additional plugins in our system that use the “billing address” data.
Logically, I would assume that the first step is to populate the “Customer billing address” with the UM data coming from UM’s registration form. If this is the case, then we may have several different meta-keys in our UM forms compared to the same in your snippet.
Would the below modifications in the snippet be correct (the meta-keys are copied from relevant fields of the UM registration form)?
We ask to provide user’s “mobile number”, thus:
case ‘billing_phone’: return um_user( ‘mobile_number’ );… and give the option to select user’s town from a list of relevant towns:
case ‘billing_city’: return um_user( ‘town_list’);`Thanks!!!
Forum: Plugins
In reply to: [Address Geocoder] Input Address – Google help optionsHello Matt,
Were you able to review my 2 points from previous messages, including “Autocomplete for Addresses and Search Terms”.
This plugin is a nice and simple tool. With your help we could significantly improve its usability.
Thank you,
MichaelForum: Plugins
In reply to: [Address Geocoder] Input Address – Google help optionsHi Matt,
I can probably replace my long story in the previous message by directing you tohttps://developers.google.com/maps/documentation/javascript/places-autocomplete
So the professional term would probably be “Autocomplete for Addresses and Search Terms”. Is this something that can be added to the Address Geocoder plugin?
Thanks.
Forum: Plugins
In reply to: [Address Geocoder] Input Address – Google help optionsThank you Matt.
Not sure what will be the professional term for this, so I will try to provide an example for point 1.
Let’s say that you are looking for a location on Google Maps and your address at Google format is 1370 Broadway, New York, NY 10018, USA.
While you type in Broadway, Google proposes 5 most suitable addresses to select from. Then you add 1350, and again, each new character you enter will generate 5 address selections. You can continue typing in your desired address until you decide to select a suggested by Google address.
The point here is that if you select an address proposed by Google, you will most definitely generate a correct lat/lng coordinate. As it is today, I was able to enter a not very accurate address, so the calculated lat/lng coordinates have taken me to another city.
I hope this helps.
Thank you.