{"id":36353,"date":"2014-09-30T10:02:02","date_gmt":"2014-09-30T14:02:02","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=36353"},"modified":"2016-02-18T06:01:02","modified_gmt":"2016-02-18T11:01:02","slug":"opencart-how-to-manage-google-map-location","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-how-to-manage-google-map-location.html","title":{"rendered":"OpenCart 1.5.x. How to manage Google Map location"},"content":{"rendered":"<p><\/p>\r\n<p>Today we are glad to present a tutorial that shows how to change the map location in Opencart contact us page.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=jvTmQg-X4MY?width=1280&amp;height=720\" rel=\"prettyPhoto\"> OpenCart. How to manage Google Map location<\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>To edit the map location, we should edit contact us page file.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Please connect to your FTP account using any FTP manager or FileManager within your hosting control panel and navigate to <strong>\/catalog\/view\/theme\/themeXXX\/template\/information<\/strong> folder.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Edit <strong>contact.tpl<\/strong> file using any PHP or HTML editor.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Search for the line which looks similar to the following one:<\/p>\r\n<pre class=\"brush:html\">&lt;iframe width=\"385\" height=\"243\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"http:\/\/maps.google.com\/maps... &gt;<\/pre>\r\n<\/li>\r\n<li>\r\n<p>The code we are interested in ends with <strong>&lt;\/iframe&gt;<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Go to <a href=\"http:\/\/maps.google.com\" class=\"aga aga_0\">http:\/\/maps.google.com<\/a> to generate a new map.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Locate the place you would like to display on the map and click <strong>Share and embed map<\/strong> button to receive a new link.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/screenshot_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/screenshot_1-300x169.jpg\" alt=\"screenshot_1\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-36355\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/screenshot_1-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/screenshot_1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/screenshot_1-1024x577.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/screenshot_1.jpg 1277w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Check map size in <strong>contact.tpl<\/strong> file (check &lt;iframe width=&#8221;100%&#8243; height=&#8221;200px&#8243;) and set exactly the same size for your new map.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/screenshot_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/screenshot_2-300x169.jpg\" alt=\"screenshot_2\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-36356\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/screenshot_2-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/screenshot_2-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/screenshot_2-1024x577.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/screenshot_2.jpg 1279w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Copy this HTML code starting with <strong>&lt;iframe<\/strong> &#8230; and ending with <strong>&lt;\/iframe&gt;<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Now you should remove the old code and insert your new one in <strong>contact.tpl<\/strong>. Save the changes and upload file back to <strong>\/catalog\/view\/theme\/themeXXX\/template\/information<\/strong> folder.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Reload the page and you will see the changes applied. Wish you good luck!<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=jvTmQg-X4MY?width=1280&amp;height=720\" rel=\"prettyPhoto\"> OpenCart. How to manage Google Map location<\/a><br \/>\r\n<\/p>\r\n<p><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to change the map location in Opencart contact us page<\/p>\n","protected":false},"author":63,"featured_media":38122,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[1183,800,801,1113,1157],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/36353"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=36353"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/36353\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/38122"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=36353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=36353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=36353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}