fernandokerber Posted February 19, 2012 Share Posted February 19, 2012 hello Im working on a real estate website using prestashop and I need to add a google maps map does anybody knows how can I do that? I need to change the admin to insert some kind of google maps input.. how could i do that? Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 20, 2012 Share Posted February 20, 2012 Hello, the usual code for google maps is: <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Paris,+France&aq=0&oq=paris&sll=37.0625,-95.677068&sspn=35.410182,86.572266&ie=UTF8&hq=&hnear=Paris,+%C3%8Ele-de-France,+France&t=m&z=11&ll=48.856614,2.352222&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=Paris,+France&aq=0&oq=paris&sll=37.0625,-95.677068&sspn=35.410182,86.572266&ie=UTF8&hq=&hnear=Paris,+%C3%8Ele-de-France,+France&t=m&z=11&ll=48.856614,2.352222" style="color:#0000FF;text-align:left">View Larger Map</a></small> You can always generate this from maps.google.com The easiest would be to do it as module, so you won't have to edit table structure, Class files, tab files. Link to comment Share on other sites More sharing options...
fernandokerber Posted February 20, 2012 Author Share Posted February 20, 2012 ok but i need to subscribe a map from the back end in the admin painel... one map per each product Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 20, 2012 Share Posted February 20, 2012 Then change the structure of product class, add the new property to Product class and modify AdminProduct.php as to display the field for the map's code. Link to comment Share on other sites More sharing options...
fernandokerber Posted February 20, 2012 Author Share Posted February 20, 2012 nice, im almost there but...... (i dont know how to say that in english...... sorry) will the website owner need to get into google maps to create each map? (and then copy and paste the html in prestashop) or is there a way to create the map on page add 'product' (houses) ? Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 20, 2012 Share Posted February 20, 2012 It is not necessary to enter the whole HTML, but you need to add the latitude and longitude separately. Check for example the file stores.tpl 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