This OpenCart tutorial shows you how to add a google map to the contact us page of OpenCart without coding or programming knowledge, we will show you how to use the HTML content default OpenCart module and add the map to the contact us page.
Let’s get started by going to https://google.com/maps then searching your locations in it. Once you find the location
When you click the “Share” icon you will see a popup click “Embed a map” then click “Copy HTML”
Now go to your store OpenCart admin >> Extensions >> Extensions >> Choose the extension type “Modules” >> Then scroll to see the “HTML Content”. If you see the green button here, first click to install it.
Then, click the blue button to add a new module.
- Enter the module name in “Module Name” field
- Enter the title that you want to show in the front-end, you can leave it blank if you don’t need
- Click the “Source Code” icon
- Paste the google map HTML code
- If you want full-width map then you have to change the width to 100%
- Again click the Source code icon
- Then click Save button
Now go to Admin >> Design >> Layouts >> Edit “Contact” then add the Google Map module in your desired position.
Then click save and see your front end.
You can see our demo here:
Let us know if need any help