eonshao Posted June 18, 2014 Share Posted June 18, 2014 Hello,I have a curious problem. With PrestaShop 1.6.0.6, when the store page with Google Maps is displayed, there are really two maps. The second is displayed a half second after the first and replace it.The first page is displayed with the latitude and logitude in Preferences > Store > Parameters and the second in Preferences > Store > Edit Store.So, there is no big problem, but if you change the zoom in store.js file and view.tpl (see forum for more explanation on these files), only the first map is affected. So, it's impossible to change the zoom of the second map.Is this a bug ? Or have I forget anything ?(sorry for my rudimentary english) Thank you. Link to comment Share on other sites More sharing options...
vekia Posted June 18, 2014 Share Posted June 18, 2014 any chance to see it live somewhere? if so, please share url. sorry, for me it's hard to imagine what's going on there so i need to check it Link to comment Share on other sites More sharing options...
vekia Posted June 18, 2014 Share Posted June 18, 2014 thank you for the url i checked it and im worried that for me everything works well... Link to comment Share on other sites More sharing options...
eonshao Posted June 18, 2014 Author Share Posted June 18, 2014 Thank you. I sent you the url by pm. Link to comment Share on other sites More sharing options...
benjamin utterback Posted June 18, 2014 Share Posted June 18, 2014 Thank you. I sent you the url by pm. Can you show us the URL, you can remove it once your issue is solved. This allows for the entire community to help you out. Thanks! Link to comment Share on other sites More sharing options...
eonshao Posted June 18, 2014 Author Share Posted June 18, 2014 Really ? Don't you see a first map replaced by a second one ? If you have the good map, you must have a zoom at "15", so you can see the streets and not only a "plane view". See the jpeg : above the first map, below the second. We can see there are two maps. Use Ctrl+F5, maybe you can see the problem... Link to comment Share on other sites More sharing options...
eonshao Posted June 18, 2014 Author Share Posted June 18, 2014 Ok, I have the permission. The url is here : http://dev.mazeh.com/magasins You can see (maybe...) the problem using Ctrl+F5 several times. Link to comment Share on other sites More sharing options...
benjamin utterback Posted June 18, 2014 Share Posted June 18, 2014 Ok, I have the permission. The url is here : http://dev.mazeh.com/magasins You can see (maybe...) the problem using Ctrl+F5 several times. I tried around 8 times refreshing, using different browsers. I don't see any problem. Seems like a local problem hmm.. Have you tried another internet connection? Link to comment Share on other sites More sharing options...
eonshao Posted June 18, 2014 Author Share Posted June 18, 2014 I've tried with Firefox and Chromium under Linux and Firefox and IE under W7, and the result is the same (sometimes faster or lower). But I can't change my connection. But, if you see the jpeg above, you can see the result. The good map is the first, but this first map is replaced by the second. So, I don't think the internet connection change that. What kind of local problem could reload a map ? Link to comment Share on other sites More sharing options...
benjamin utterback Posted June 18, 2014 Share Posted June 18, 2014 I've tried with Firefox and Chromium under Linux and Firefox and IE under W7, and the result is the same (sometimes faster or lower). But I can't change my connection. But, if you see the jpeg above, you can see the result. The good map is the first, but this first map is replaced by the second. So, I don't think the internet connection change that. What kind of local problem could reload a map ? I understand your points but at the same time. Two different people from two parts of the world tried it on separate internet connections with no problem. Maybe you can try a mobile device? You can try turning error reporting on but I don't think you will find any relevant error. Link to comment Share on other sites More sharing options...
eonshao Posted June 18, 2014 Author Share Posted June 18, 2014 A friend just to test the site, and it's the same thing for him, he has successively two maps. And I don't have error... Link to comment Share on other sites More sharing options...
diesein Posted June 20, 2014 Share Posted June 20, 2014 Hi all, I have the exact same problem... Only my second zoom is set to max and the map is shifted out of the world! really need help on this! this happened after I changed the zoom in de .tpl files... It is also possible it is a database error. Does anyone know where the default Lat and Long are saved? Link to comment Share on other sites More sharing options...
diesein Posted June 20, 2014 Share Posted June 20, 2014 (edited) I just checked the stores.js file and stores.tpl file by backing up older versions of the files. Same problem... I am going to test some more... *edit* I now tested the database on a differrent server with the same install and theme, and this works perfect! I am going to try to adjust the zoom there and then see what happens *edit>edit* I adjusted the zoom in /themes/mytheme/js/stores.js and it first worked fine. I adjusted the zoom back to the original setting and now the error is also showing up on the testpage... When the page is loaded the map shows the right zoom, but then reloads and shows the old zoom. Who can help? Please do, because this is happening also on a production server! Edited June 20, 2014 by diesein (see edit history) Link to comment Share on other sites More sharing options...
eonshao Posted June 30, 2014 Author Share Posted June 30, 2014 Hi, @Benjamin Utterback Now, I'm no longer alone, do you have a solution or an idea ? Thank you. Link to comment Share on other sites More sharing options...
kamaaina Posted April 7, 2015 Share Posted April 7, 2015 Anyone find a fix for this as I have the exact same issue. The correct map loads and then in seconds refreshes and loads a different googlemap displaying the middle of no where??? Please help someone... Thanks Link to comment Share on other sites More sharing options...
kamaaina Posted April 7, 2015 Share Posted April 7, 2015 anyone find a fix? - I heard that google maps is using a new API and is sending the old API to the new but database info is not included in new map??? Link to comment Share on other sites More sharing options...
vishakha Posted August 5, 2015 Share Posted August 5, 2015 I have a problem associated with this.I want to display my store on google map with tags.But it is not coming accurate. Link to comment Share on other sites More sharing options...
vlapoulle Posted January 16, 2016 Share Posted January 16, 2016 I just checked the stores.js file and stores.tpl file by backing up older versions of the files. Same problem... I am going to test some more... *edit* I now tested the database on a differrent server with the same install and theme, and this works perfect! I am going to try to adjust the zoom there and then see what happens *edit>edit* I adjusted the zoom in /themes/mytheme/js/stores.js and it first worked fine. I adjusted the zoom back to the original setting and now the error is also showing up on the testpage... When the page is loaded the map shows the right zoom, but then reloads and shows the old zoom. Who can help? Please do, because this is happening also on a production server! Hi Diesein, I'm pretty new to Prestashop, and I face the very same problem: first the map is OK, then it is replaced by this #@ç&!!! Miami map. I'm using 1.6 and Firefox, and I wondered if you have already found a solution ? Thanks in advance, and kind regards Link to comment Share on other sites More sharing options...
Jovana_tion Posted January 25, 2016 Share Posted January 25, 2016 Same here when I try to override the stores.js in my theme's folder.The corrrect zoom is displayed in a blink, then the defaults one.This is pretty annoying.I tried it on Windows & Linux with several different browsers, empy the cache of both PS & browsers without any effect.If someone has a clue, I might take it. Thanks guys. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now