If you want to provide an option to select substores on pop-up in your e-commerce store, then you need to enable multi-store functionality and add multiple substores. To know how to add multiple substores, go to the help center - https://help.storehippo.com/topic/substores. After you have added multiple substores, set up default substores and link the products to substores. Follow the steps mentioned below to add pop for selecting a sub store on site startup:
function ($rootScope) { if ($rootScope.ms.user && !$rootScope.ms.user.store) $rootScope.ms.modal('multistore'); }
Now, an option to select substores will appear on the storefront of your ecommerce store. To know more about providing an option to select substores on pop-up, visit the helpcenter - https://help.storehippo.com/topic/how-to-provide-option-to-select-substores-on-pop-up