Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Feature Request › Google map API not showing in the Store manager
- This topic has 3 replies, 2 voices, and was last updated 4 years, 8 months ago by WCFM Forum.
- AuthorPosts
- August 29, 2019 at 11:43 pm #79070Miguel PeinadoParticipant
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:259and 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!
- August 30, 2019 at 8:26 am #79198WCFM ForumKeymaster
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
- August 31, 2019 at 2:35 pm #79334Miguel PeinadoParticipant
It works! Thank you for your support!
- September 2, 2019 at 1:43 pm #79640WCFM ForumKeymaster
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.
- AuthorPosts
- The topic ‘Google map API not showing in the Store manager’ is closed to new replies.