CATEGORY
StoreHippo Forums +918010117117 //cdn1.storehippo.com/s/576d30f909102db44c9e6e65/ms.settings/5256837ccc4abf1d39000001/541bb4ab3fb3a1105c805281-480x480.png" sales@storehippo.com http://facebook.comhttp://twitter.comhttp://linkedin.comhttp://google.com
B4, 309-10, Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurugram India

How to add a popup to choose location on the homepage of my e-commerce site?

userimage
StoreHippo expert

To add a popup on the homepage of your e-commerce site for choosing location, follow the steps mentioned below:

  • First of all, you need to enable the multi store functionality and add different store locations as multiple substores.
  • Once you have created the different store locations as substores, you need to provide an option to choose a location on the pop-up window. To do so, go to the “Site” -> “Startup Widgets” section.
  • Click the “Add New” button to add a new widget.
  • Provide the name of the startup widget and add the following controller code:

function ($rootScope) { if ($rootScope.ms.user && !$rootScope.ms.user.store) $rootScope.ms.modal('multistore'); }

  • After adding the following code, click the “Save” button to apply the changes.

Now, when the customer opens up your site, the pop up will open for selecting the location. To know more about adding popup to choose location, go to the helpenter - https://help.storehippo.com/topic/how-to-add-different-store-locations-as-multi-store or https://help.storehippo.com/topic/geolocation-and-hyperlocal-ecommerce


Mar 2, 2021 12:40:41 PM

Reply

User Name: Email:
Post Post