Jump to content

Google Maps in Back Office


Guest

Recommended Posts

Prestashop 1.6.

 

Anyone else notice that Google maps do not work on the order page any more

 

2js:49 You have exceeded your request quota for this API. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors
_.Fc @ js:49
util.js:218 Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

 

Looks like Prestashop are not paying their bills??

 

Can we switch this off?

Link to comment
Share on other sites

1 hour ago, Curious said:

this has nothing to do with prestashop. 

Nowadays you have to pay for showing google maps on your webshop.

You will have to follow this to show it again. You get a number of free views and after that you will have to pay google 

https://developers.google.com/maps/documentation/javascript/get-api-key

 

But it comes pre-installed / integrated with Prestashop doesn;t it?

 

So how do we switch it off?

Link to comment
Share on other sites

I have more than 2 years from when I changed my website on Prestashop and all this time the Google Maps was working great in the backoffice untill this last month when it stopped and I don't understand how they calculate the free views? Because I can assure that I had a lot of order in 2 years and I had no problem with it.

Is there any option that we can still use it without paying?

 

Edited by Georgia85 (see edit history)
Link to comment
Share on other sites

This was already announced in Prestashop news:

https://www.prestashop.com/en/blog/charges-for-google-maps

 

read this carefully, its not free anymore since june 2018

http://geoawesomeness.com/developers-up-in-arms-over-google-maps-api-insane-price-hike/

its just as we see in other cases, first it is free, and after that it becomes paid. 

@ haylau theres is no off switch. It need to be coded somewehere if you want. I dont know where and how because it doesnt bother me much. But you can ask a developer to do this for you.

Maybe in newer versions of Prestashop this will become possible, or it will dissapear.

 

Link to comment
Share on other sites

@Haylau & Georgia85

Problem is this Javascript code in 1.6.

In 1.6.1.10, however, the map works after closing the warning window from Google. PrestaShop 1.5 doesn't use Javascript at all in this place - and Google maps still work as a charm on the order page in BO.

In order to make this work again you have to change the code in /<YourAdminDir>/themes/default/template/controllers/orders/helpers/view/view.tpl

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 4 months later...
On 11/2/2018 at 8:17 PM, Prestashop Addict said:

You can find a simple solution here to add the key for backoffice. Sorry it's in french 😞

Thanks, this worked for me.

But I don't understand why in PS 1.7 they decided to remove completely the "API key" field from Preferences->General. This was very useful because it was a clean method to add your own key for google maps.

image.png.4249339b7f7d7c41419b625a6a3398f1.png

  • Like 1
Link to comment
Share on other sites

  • 9 months later...
On 2/11/2018 at 7:17 PM, Prestashop Addict dice:

You can find a simple solution here to add the key for backoffice. Sorry it's in french :-(

I followed that guide, but now inspecting code with chrome I get error:

Geocoding Service: This API project is not authorized to use this API.  For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key

Any help?

Link to comment
Share on other sites

  • 7 months later...

Well just found about this...and it sucks...

The AdminOrdersController for 1.7 adds the js for google maps without any key and without any method to set the key. Trying to add the js with a custom module or theme only causes conflicts because the js is loaded multiple times.... The only way around that I see is to override the controller :(

I imaging that the full orders controller needs to be refactor and implement the new Symfony stuff, but 1.7 has been around for a while by now... so it just sucks....  the orders section should be one of the most important part of the store and is running on plain old dirty code. Really disappointing 

Link to comment
Share on other sites

1 hour ago, Lucas said:

Well just found about this...and it sucks...

The AdminOrdersController for 1.7 adds the js for google maps without any key and without any method to set the key. Trying to add the js with a custom module or theme only causes conflicts because the js is loaded multiple times.... The only way around that I see is to override the controller :(

I imaging that the full orders controller needs to be refactor and implement the new Symfony stuff, but 1.7 has been around for a while by now... so it just sucks....  the orders section should be one of the most important part of the store and is running on plain old dirty code. Really disappointing 

It seems that the 1.7.7 version aims to upgrade the orders view with the new symfony framework: https://devdocs.prestashop.com/1.7/modules/core-updates/1.7.7/

So that is good new! it doesn't seem to come with a map but it should be simple to implement the map with a module there. I hope that the orders grid gets upgraded soon too.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...