How To Add a Store Locator or Google Maps to BigCommerce as a Script.

Fast How-to

Step 1

Step 2
Create an account/log into already existing one.

Step 3
Go to the StoreFront tab.

Step 4
Go to My Themes tab.

Step 5
Display advanced options for your current theme.

Step 6
Make a copy of the theme.

Step 7
Display a list of available options on a copied theme.

Step 8
Click “Edit Theme files”.

Step 9
Display template files.

Step 10
Display layout files.

Step 11
Go to base/header.html depending on the theme.

Step 12
Get the code from the Nearplace SaaS.

Step 13
Paste your generated Nearplace code before </body>.

Step 14
Your store locator or Google Maps is installed.

About the BigCommerce

Let’s start with the most important question – what is BigCommerce? BigCommerce is another well-known e-commerce software for businesses next to the Shopify and Weebly. It allows you to create your own store website on which you can advertise and sell your products, services and whatever you want. Since the platform is not free, if you want to try the software you have available 14-day trial which does not require your credit card. Of course, when it comes to the multiple stores you should get a store locator with an interesting map. Many people are using Google My Maps to make their own store locator, but if you want the best and relatively cheap store locator app you should try Nearplace. Also in this tutorial, we are going to use the Nearplace as an example of the installing a store locator or Google Maps on the BigCommerce.


Store locator app – Installation

Everyone would like to easily manage their multiple store locations but to do it you need to install a professional app like a Nearplace. Whatever it is, a store locator or Google Maps, steps of installation with JavaScript code are the same. At first, you need to have an account and your own theme. We will use a default theme on a trial account so it will be easier for you if you just started your journey with the BigCommerce.

Actually, the process of the installation of a store locator thanks to the code is really simple. On the left side, you can notice a menu. Choose a “Storefront” tab and once the tab is expanded, go to “My Themes”. Once you see your current theme, to edit its files you should expand advanced options, and choose “copy a theme”. If the theme is copied already, choose “Edit Theme Files”.


Now you might be a little bit afraid of the number of available files to edit. No worries you are interested only in templates>>layouts>>base/header.html (depends on the theme) file. In our case it is base.html.


Now you only need to find the end of a <body> section so it will be </body> if you are not acknowledged with HTML. Now if you want to add a Nearplace store locator you need to paste a special JavaScript which you generate in your special Nearplace admin interface.


Then you paste the code and you check in the preview if the installation of a store locator or Google Maps has ended successfully or not.


Of course, if we are doing a guide about the store locator installation on BigCommerce it worked with our theme :). Remember to apply your theme with changed files.


Everything looks pretty simple but if you are going to struggle with something don’t be afraid to leave a comment or type to our support for professional tips. Also, leave us a feedback if we are missed something important.

Get notified of new articles
45,285 marketers are