Google map API not showing in the Store manager

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 – Feature Request Google map API not showing in the Store manager

Viewing 3 reply threads
  • Author
    Posts
    • #79070
      Miguel Peinado
      Participant

      Hi,

      I recently adquire the WCFM Ultimate and it is working great so far, there is an issue I would like to solve in the dashboard of the store manager, you guys probably have more expertise and provide some support here.
      Project context: Woocommerce + WFCM + Bookings + ACF
      I created a group of custom fields using ACF plugin, one of the fields is Google Map type, I set up the google api key and so far is working properly in any woocomerce product (WordPress admin), but in the WCFM store manager there is a JS error:

      Uncaught ReferenceError: google is not defined
      at initialize (wcfmu-script-acf-products-manage.js?ver=6.2.7:99)
      at wcfmu-script-acf-products-manage.js?ver=6.2.7:259

      and the line:

      function initialize() {
      
      <strong>var latlng = new google.maps.LatLng( $store_lat, $store_lng ); </strong>
      

      I would appreciate any help you can provide.

      Thank you!

    • #79198
      WCFM Forum
      Keymaster

      Hi,

      Do you have initialize Google MAP Api key for ACF. Will require code like this –

      function my_acf_google_map_api( $api ){
      	$api_key = 'YOUR KEY';
      	return $api;
      }
      add_filter('acf/fields/google_map/api', 'my_acf_google_map_api');
      
      function my_acf_init() {
      	acf_update_setting('google_api_key', 'YOUR KEY');
      }
      add_action('acf/init', 'my_acf_init');

      Thank You

    • #79334
      Miguel Peinado
      Participant

      It works! Thank you for your support!

    • #79640
      WCFM Forum
      Keymaster

      Great … You are always welcome 🙂

      Let me know if there’s anything else we can help you with.
      Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.

Viewing 3 reply threads
  • The topic ‘Google map API not showing in the Store manager’ is closed to new replies.