{"id":45010,"date":"2015-03-30T04:00:06","date_gmt":"2015-03-30T08:00:06","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=45010"},"modified":"2016-02-18T03:40:30","modified_gmt":"2016-02-18T08:40:30","slug":"opencart-1-5-x2-x-how-to-change-map-location-on-home-page","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-1-5-x2-x-how-to-change-map-location-on-home-page.html","title":{"rendered":"OpenCart 1.5.x\/2.x. How to change map location on home page"},"content":{"rendered":"<p>\r\n<p>This tutorial shows how to change the map location on home page in OpenCart 1.5.x\/2.x.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=2VxaJqA0aaw?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 1.5.x\/2.x. How to change map location on home page<\/a><\/p>\r\n<p>In order to change map location on home page, you should perform the following:<\/p>\r\n<p><strong>Step 1. Locate the Google Map code in the template:<\/strong><\/p>\r\n<ol>\r\n<li>\r\n<p>Navigate to <strong>catalog\\view\\theme\\themeXXX\\template\\common<\/strong> folder on FTP.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Open <strong>footer.tpl<\/strong> file and you will see the default Map link with a Google API key (appr.line11):<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page1-300x90.jpg\" alt=\"How to change map location on home page1\" width=\"300\" height=\"90\" class=\"aligncenter size-medium wp-image-45011\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page1-300x90.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page1-150x45.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p><strong>Step 2. Generate the API key<\/strong>:<\/p>\r\n<ol>\r\n<li>\r\n<p>To generate the API key, please navigate to <a href=\"https:\/\/code.google.com\/apis\/console\/?noredirect\" target=\"_blank\"><strong>Google API console<\/strong><\/a>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Click <strong>&#8216;Create Project&#8217;<\/strong>: <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page2-300x114.jpg\" alt=\"How to change map location on home page2\" width=\"300\" height=\"114\" class=\"aligncenter size-medium wp-image-45012\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page2-300x114.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page2-150x57.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page2-1024x390.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page2.jpg 1264w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n<li>\r\n<p>In <strong>Services<\/strong> tab on the left select <strong>Google Maps JavaScript API v3<\/strong> and turn it <strong>ON<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page3-300x144.jpg\" alt=\"How to change map location on home page3\" width=\"300\" height=\"144\" class=\"aligncenter size-medium wp-image-45013\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page3-300x144.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page3-150x72.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page3-1024x492.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page3.jpg 1253w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page4-300x112.jpg\" alt=\"How to change map location on home page4\" width=\"300\" height=\"112\" class=\"aligncenter size-medium wp-image-45014\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page4-300x112.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page4-150x56.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page4.jpg 865w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>  <\/li>\r\n<li>\r\n<p><strong>Agree to Google Maps\/Google Earth APIs Terms of Service<\/strong> and click <strong>&#8216;Accept&#8217;<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page5-300x150.jpg\" alt=\"How to change map location on home page5\" width=\"300\" height=\"150\" class=\"aligncenter size-medium wp-image-45015\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page5-300x150.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page5-150x75.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page5.jpg 942w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n<li>\r\n<p>With that done please navigate to <strong>API Access<\/strong> tab on the left and find your API key there:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page6-300x148.jpg\" alt=\"How to change map location on home page6\" width=\"300\" height=\"148\" class=\"aligncenter size-medium wp-image-45016\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page6-300x148.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page6-150x74.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page6-1024x507.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page6.jpg 1252w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n<li>\r\n<p><strong>Replace the original API key<\/strong> with your one in <strong>catalog\\view\\theme\\themeXXX\\template\\common\\footer.tpl<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page7-300x121.jpg\" alt=\"How to change map location on home page7\" width=\"300\" height=\"121\" class=\"aligncenter size-medium wp-image-45017\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page7-300x121.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page7-150x60.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page7.jpg 969w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n<\/ol>\r\n<p>S<strong>tep 3. Set Latitude and Longitude for the location<\/strong>:<\/p>\r\n<ol>\r\n<li>\r\n<p>Go to <a href=\"http:\/\/maps.google.com\/\" target=\"_blank\"><strong>Google Maps Site<\/strong><\/a>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Find your location, right click it. Select <strong>&#8216;What&#8217;s Here&#8217;<\/strong> option from the drop down menu:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page8.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page8-300x167.jpg\" alt=\"How to change map location on home page8\" width=\"300\" height=\"167\" class=\"aligncenter size-medium wp-image-45018\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page8-300x167.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page8-150x83.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page8-1024x572.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page8.jpg 1234w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>With that done you will see the <strong>Latitude and Longitude<\/strong> of the location on the left of the page:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page9.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page9-300x167.jpg\" alt=\"How to change map location on home page9\" width=\"300\" height=\"167\" class=\"aligncenter size-medium wp-image-45019\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page9-300x167.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page9-150x83.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page9-1024x570.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page9.jpg 1241w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\r\n<li>\r\n<p><strong>Replace the default Latitude and Longitude<\/strong> with yours in the <strong>catalog\\view\\theme\\themeXXX\\template\\common\\footer.tpl<\/strong> file:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page10.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page10-300x122.jpg\" alt=\"How to change map location on home page10\" width=\"300\" height=\"122\" class=\"aligncenter size-medium wp-image-45020\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page10-300x122.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page10-150x61.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/03\/How-to-change-map-location-on-home-page10.jpg 928w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\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=2VxaJqA0aaw?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 1.5.x\/2.x. How to change map location on home page<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to change the map location on home page in OpenCart 1.5.x\/2.x.<\/p>\n","protected":false},"author":62,"featured_media":45025,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[933,801,1113,1157,572],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45010"}],"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\/62"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=45010"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45010\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/45025"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=45010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=45010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=45010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}