{"id":53192,"date":"2015-09-01T04:05:42","date_gmt":"2015-09-01T08:05:42","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=53192"},"modified":"2016-02-17T05:25:58","modified_gmt":"2016-02-17T10:25:58","slug":"opencart-2-x-how-to-manage-google-map-in-templates-53552-53398-53325-53279-53122-53499","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-2-x-how-to-manage-google-map-in-templates-53552-53398-53325-53279-53122-53499.html","title":{"rendered":"OpenCart 2.x. How to manage Google map in templates 53552, 53398, 53325, 53279, 53122, 53499"},"content":{"rendered":"<p>\r\n<p>This tutorial shows how to edit <strong>Google map<\/strong> location in <strong>OpenCart 2.x templates <\/strong> 53552, 53398, 53325, 53279, 53122, 53499.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Po1A4nKr0YM?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to manage Google map in templates 53552, 53398, 53325, 53279, 53122, 53499<\/a><\/p>\r\n<p>In order to update <strong>Google Map<\/strong> location on the site, you should perform the following steps:<\/p>\r\n<ol>\r\n<li>\r\n<p>Open <a href=\"https:\/\/www.google.com\/maps\/\" target=\"_blank\">https:\/\/www.google.com\/maps\/<\/a> in your browser and insert your address into the <strong>Search bar<\/strong> and click the <strong>Search<\/strong> button:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-1-300x210.png\" alt=\"OpenCart 2.x. How to manage Google map in templates 53552, 53398, 53325, 53279, 53122, 53499-1\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-53193\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-1-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-1-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-1.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>When search is complete, right click the location and select <strong>What&#8217;s here?<\/strong> in the drop-down menu. The popup box with coordinates will appear:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-2-300x210.png\" alt=\"OpenCart 2.x. How to manage Google map in templates 53552, 53398, 53325, 53279, 53122, 53499-2\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-53194\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-2-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-2-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-2.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Click coordinates in the popup box, now you can see the <strong>Y and X<\/strong> values in the search bar. Let&#8217;s insert them into the map.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Navigate to <strong>OpenCart admin panel &#8211; Modules &#8211; HTML Content > gmap<\/strong>. Module can also be called &#8220;HTML Content > contacts&#8221;. Click the <strong>Source code<\/strong> button in the editor. In <strong>Code View<\/strong> window, you&#8217;ll see the <strong>map marker<\/strong> coordinates:<\/p>\r\n<pre class=\"brush:html\">\r\n\t&lt;div id=&quot;google-map&quot; class=&quot;map_model&quot;&gt;&lt;\/div&gt;\r\n    &lt;ul class=&quot;map_locations&quot;&gt;\r\n    &lt;li data-x=&quot;-73.9874068&quot; data-y=&quot;40.643180&quot;&gt;\r\n    <\/pre>\r\n<\/li>\r\n<li>\r\n<p>Replace <strong>Y and X values<\/strong> with new coordinates. Please note that the first parameter in <strong>Google Map<\/strong> search results stands for Y and the second one is for X:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-3-300x210.png\" alt=\"OpenCart 2.x. How to manage Google map in templates 53552, 53398, 53325, 53279, 53122, 53499-3\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-53195\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-3-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-3-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-3.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n<li>\r\n<p>When new coordinates are inserted, add them to the map div tags as well:<\/p>\r\n<pre class=\"brush:html\">&lt;div id=&quot;google-map&quot; class=&quot;map_model&quot;&gt;&lt;\/div&gt;<\/pre>\r\n<p>Line with new coordinates will look like the following:<\/p>\r\n<pre class=\"brush:html\">&lt;div id=&quot;google-map&quot; class=&quot;map_model&quot; data-x=&quot;-118.322144&quot; data-y=&quot;34.091050&quot;&gt;&lt;\/div&gt;<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-4-300x210.png\" alt=\"OpenCart 2.x. How to manage Google map in templates 53552, 53398, 53325, 53279, 53122, 53499-4\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-53196\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-4-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-4-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/OpenCart-2.x.-How-to-manage-Google-map-in-templates-53552-53398-53325-53279-53122-53499-4.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n<li>\r\n<p>Save changes in the module and refresh front-end with Ctrl\/Cmd+F5 to see changes.<\/p>\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=Po1A4nKr0YM?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to manage Google map in templates 53552, 53398, 53325, 53279, 53122, 53499<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to edit <strong>Google map<\/strong> location in <strong>OpenCart 2.x templates <\/strong> 53552, 53398, 53325, 53279, 53122, 53499.<\/p>\n","protected":false},"author":65,"featured_media":53202,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[929,801,1113,1157],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/53192"}],"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\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=53192"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/53192\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/53202"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=53192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=53192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=53192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}