Disable Loading of Google Maps Scripts

Buying Buddy requires Google Maps JavaScript APIs to be loaded in order to function.

However, Google Maps API scripts can only loaded once - if the library is loaded multiple times then this will cause an error (you will see these errors in the Browser console).

So, if a separate component on your website or WordPress theme or Plugin is already loading the Google Maps API then you should disable this method in Buying Buddy to prevent conflict.
IMPORTANT: Even if you are using a separate system to load the Google Maps API then you still need to ensure that a valid API key is being specified.

The method for applying the API key will depend on your theme or plugin - but you MUST apply your OWN key to avoid issues (i.e. don't rely on a free or demo API Key that may have been provided by the plugin authors, for example).

Disabling Google Maps in the Buying Buddy WordPress Plugin

Go to your WordPress plugins view - then click Buying Buddy Plugin Settings from your WordPress Dashboard.
In Settings, choose the option to disable loading of the Google Maps API scripts.
NOTE: You still require your Google Maps API Key to be added to your Buying Buddy Account.

Disabling Google Maps in the JavaScript Plugin

Disable the Google Maps function as this is provided in your website JavaScripts.
This can be done by adding this parameter to the end of the Buying Buddy JavaScript code: "/gmap/false", as shown in the example below:
NOTE: You still require your Google Maps API Key to be added to your Buying Buddy Account.

<script src='https://www.mbb2.com/mbbv3/index/acid/ACCOUNT_ACTIVATION_KEY/gmap/false'></script>

Disabling Google Maps in the PHP API

Disable the Google Maps function by deleting the "googleapis.com" script which is part of the PHP API Buying Buddy JavaScript.
NOTE: You still require your Google Maps API Key to be added to your Buying Buddy Account.

Updated on December 28, 2023

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support
Buying Buddy Support