Giter Site home page Giter Site logo

Comments (10)

TitanNano avatar TitanNano commented on September 15, 2024

Which Maps API ID we need?

  • Maps JavaScript API?

Yes thats the right API.

is it correct, that with your Plugin for Shopware6 Google MyBusiness Reviews will be shown?

Yes google my business reviews will be displayed. You have to use the placeId of your business on google maps. The input fields help text in the app settings should contain a link to googles place id finder tool.

from sw6-google-customer-reviews.

Sinnocon avatar Sinnocon commented on September 15, 2024

I used Maps JavaScript API Key from google cloud console, and correct google place id.
we are currently testing it on our test environment. But it still always will not be shown?!

Do we have to bring to production environment?

Thanks in advance.

from sw6-google-customer-reviews.

TitanNano avatar TitanNano commented on September 15, 2024
  • If the badge doesn't show up at all, then there is a template issue
  • if the badge is displayed but only has three stars (one empty, one half and one full) then there is a JS issue, most likely the Google Maps API is not correctly loaded
  • if the badge shows up but displays an empty rating (five empty stars) then there are either no reviews available or the wrong palceId is being loaded

The app should work anywhere no matter if it's a staging or a production environment. You can limit the Google Maps API to certian domains though. If the API has been restricted, then it won't work on other domains.

from sw6-google-customer-reviews.

Sinnocon avatar Sinnocon commented on September 15, 2024

ChIJO_X65CLGCUcRghHCo5GWM2k

https://www.google.com/maps/place/LED+Universum/@51.0823222,13.6384137,15z/data=!4m2!3m1!1s0x0:0x69339691a3c21182?sa=X&ved=2ahUKEwj0-aPj5KT3AhX1SPEDHWEOB-4Q_BJ6BQi7ARAF

this place_id and Google Maps / Business

so where is our mistake?

from sw6-google-customer-reviews.

TitanNano avatar TitanNano commented on September 15, 2024

I get a 5-star rating back from the API for that place ID. So, there is either an issue with the Google Maps API itself (invalid API key, restricted API key, wrong API key) or an incompatibility with your shopware theme. This app is entirely browser-based, so you should be able to see errors in your browser console. If there is a loading issue for the maps API, then that should show up in your network manager.

from sw6-google-customer-reviews.

Sinnocon avatar Sinnocon commented on September 15, 2024

Thanks.

here is the error in console:
"Uncaught (in promise) Error: Google Maps API Library is not available!"

from sw6-google-customer-reviews.

Sinnocon avatar Sinnocon commented on September 15, 2024

is it already possible to use the badge as floating bagde at the right site of the page?

from sw6-google-customer-reviews.

TitanNano avatar TitanNano commented on September 15, 2024

Thanks.

here is the error in console: "Uncaught (in promise) Error: Google Maps API Library is not available!"

This indicates that you have enabled the option to not load the GoogleMaps API. When you enable this option, you have to load the Google Maps API yourself.

initMaps() {
if (this.options.loadLib) {
return boostrapGoogleMaps(this.options.key);
}
if (!window.google || !window.google.maps) {
return Promise.reject(new Error('Google Maps API Library is not available!'));
}
return Promise.resolve(window.google.maps);
}

is it already possible to use the badge as floating bagde at the right site of the page?

no.

from sw6-google-customer-reviews.

Sinnocon avatar Sinnocon commented on September 15, 2024

Hey,

i have enabled the libaries now.

next issue
https://monosnap.com/file/ItcHsctLuH9NKiAPw137Cr2tOOT3My

although the java maps api is activated?

https://monosnap.com/file/HXkzOSxgzK3uXZvE7JVtoIm3LVoxdu

also the cloud account and search console owner is the same

from sw6-google-customer-reviews.

Sinnocon avatar Sinnocon commented on September 15, 2024

we have to use places API !
it works now
thanks

from sw6-google-customer-reviews.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.