Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Maps API error – Even when google API is correct (No restrictions – Billing Good
Tagged: API Good, Blue Maps, Google API errors, Maps broke, Maps errors, Script errors
- This topic has 11 replies, 3 voices, and was last updated 5 years, 5 months ago by WCFM Forum.
- AuthorPosts
- June 27, 2019 at 3:28 pm #70032BaileyconceptsParticipant
I have had the multivendor market place installed for almost a year and have never been able to get the maps correct.
I have 18 API projects that have been created with google in attempts to fix this problem.
With no API installed it gives the typical google maps error showing that no api is active or billing is an issue.
1. With a good API installed (that is NOT restricted in any way, and is up to date with billing) it still gives this error – https://imgur.com/i7zdKl9
it says you are using an API without a key. So I copied and pasted the error link in google and see this – https://imgur.com/PUifnyi (Why does it mention India?)It still will not load the Big map or the small maps that vendors have in their stores. They are always blue, and will not auto-fill information. – https://imgur.com/criQ8ht
2. So I tried to force the API by way of a plugin – (API FOR GOOGLE MAPS) https://imgur.com/6cEfQBU
This worked to make the Big Map start loading. But the small ones are still blue and not working. The Big map loads but is stuck at its default location.
So I check the errors again and see this – https://imgur.com/6je7i7gI know the API is good because I use the same API on the same theme and it works everywhere but within wcfm multivendor. It works great with “WP Google Maps”
as you can see here – https://imgur.com/L1QknzMSummary: I have made multiple API projects in an attempt to get the maps to work inside wcfm. Does anyone out there have any ideas as to how to fix this issue?
I am at the point of just deleting the page completely or attempting to build one using third-party plugins and replace the one that is active.
3. If there is no solution available for fixing the failed API issues and blank maps, Can someone give me information on how to remove the big map on the wcfm_stores page?
I will take anyone’s advice and give it a try as I am at my wits end on using the multivendor maps the way they are by default. Any help is appreciated.
- June 29, 2019 at 12:11 pm #70209BaileyconceptsParticipant
Does anyone from support still check these forums?
- June 29, 2019 at 12:58 pm #70212sdel_nevoParticipant
Hi
I had a very similar problem to you, and it took ages to resolve
I found this API in one of the forums here AIzaSyB2YeMKniOp8PvU2qPj99m7LTedKOEGYUM
I used that in the “Google map API Key” and low and behold it worked
I then replaced this key with my own, and after doing this it worked!! and still does
no idea why, before doing the above, no matter what I did the map would not work
hope this helps
Steve
- June 29, 2019 at 6:04 pm #70279BaileyconceptsParticipant
Thanks @sdel_nevo
That worked.I really appreciate it! So much time and it never worked.
I do have a question for support or anyone really that can possibly help.
Is there a setting to allow the admin to set the starting (default) location to load? I may be overlooking it.
Also, is there a setting somewhere that will allow the admin to adjust the map zoom on load?
As of now it zooms in almost to the ground on the page load and I have to zoom out to even see where the map is at.
Thanks again for the assistance with the api key bug
- June 29, 2019 at 4:28 pm #70254WCFM ForumMember
HI @Baileyconcepts,
Please contact Google Map Support, they will resolve this for you. It’s beyond our control.
Thank You
- July 1, 2019 at 3:16 pm #70581WCFM ForumMember
HI,
You are welcome 🙂
Is there a setting to allow the admin to set the starting (default) location to load? I may be overlooking it.
– Please know me your location latitude-longitude, I will help you to setup map default location using that.Also, is there a setting somewhere that will allow the admin to adjust the map zoom on load?
– You may set map zoom from store list short code. Please check here – https://docs.wclovers.com/store-list/Thank You
- July 2, 2019 at 9:03 am #70653BaileyconceptsParticipant
Hello, I just wanted to follow up with you regarding the default location that loads within the maps.
Is there anything else you need me to provide from this side?
- July 1, 2019 at 4:36 pm #70592BaileyconceptsParticipant
My latlong is : Latitude – 35.793282 Longitude – -83.558838
Thank you so much for the help, I look forward to your response.
- July 3, 2019 at 3:40 pm #70826BaileyconceptsParticipant
Hello, I was just checking in to see if you can still help me to change the default location that loads with the maps.
I have provided the latitude – longitude that you requested a few days ago.
Thanks
- July 4, 2019 at 5:32 am #70942WCFM ForumMember
Hi,
Sorry for the delayed update.
Please add this code to your child theme’s functions.php –
add_filter( 'wcfmmp_map_default_lat', function( $lat ) { return -35.793282; }); add_filter( 'wcfmmp_map_default_lng', function( $lat ) { return -83.558838; });
Thank You
- July 5, 2019 at 11:59 am #71192BaileyconceptsParticipant
It works, Thank you!
- July 6, 2019 at 8:45 am #71277WCFM ForumMember
Great … thanks for the update 🙂
- AuthorPosts
- You must be logged in to reply to this topic.