Maps API error – Even when google API is correct (No restrictions – Billing Good

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

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

Viewing 9 reply threads
  • Author
    Posts
    • #70032
      Baileyconcepts
      Participant

      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/6je7i7g

      I 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/L1QknzM

      Summary: 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.

    • #70209
      Baileyconcepts
      Participant

      Does anyone from support still check these forums?

    • #70212
      sdel_nevo
      Participant

      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

      • #70279
        Baileyconcepts
        Participant

        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

    • #70254
      WCFM Forum
      Keymaster

      HI @Baileyconcepts,

      Please contact Google Map Support, they will resolve this for you. It’s beyond our control.

      Thank You

    • #70581
      WCFM Forum
      Keymaster

      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

      • #70653
        Baileyconcepts
        Participant

        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?

    • #70592
      Baileyconcepts
      Participant

      My latlong is : Latitude – 35.793282 Longitude – -83.558838

      Thank you so much for the help, I look forward to your response.

    • #70826
      Baileyconcepts
      Participant

      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

    • #70942
      WCFM Forum
      Keymaster

      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

    • #71192
      Baileyconcepts
      Participant

      It works, Thank you!

    • #71277
      WCFM Forum
      Keymaster

      Great … thanks for the update 🙂

Viewing 9 reply threads
  • You must be logged in to reply to this topic.