Issue:


We are splitting our B2B and B2C business from one store to two Shopify stores. The B2B store I want password protected to firstly only allow access to B2B customers and secondly to prevent the store from being indexed by search engines as its a direct copy of our other store and will create duplicate content issues from an SEO perspective. I have installed your app and am happy with how it works etc but have come across an issue which I hope you can help with?
I will need to import my current B2B customers and then send them an account activation email, how can I set up the app so as it will allow customers to activate their accounts? I tested this yesterday when you click on the activate account link you get your login to access page as I have selected all, but that means you can't complete the activation.

Is there a way I can put the login to access page storewide with the exception of the activate account page? 


Solution:


Our app doesn't support to choose a specific page to not restrict or restrict at this time.

However, we would like to give you the guide to exclude the activate account page via modifying it on your theme.

(please note whenever you hit "save config" on our app, you need to do these steps below again as it will be lost)


Please follow our guide as below:


Step 1: Access to tab Online Store -> Themes

  

Step 2: Find Snippets ->login_require.liquid
Add the code as below image  {{ template }}


Step 3: Go to the frontend, there will be the template of the page shown.

(if you want to exclude any pages, please go to that page)


Step 4: Go back to the admin and remove added code and add the new code 

then save it.
 and template != "customers/activate_account"
 (if it has {{template}} at the beginning, please remove it. If not, you could ignore)

The part: "customers/activate_account"  will be equivalent to the page that you want to exclude (your case is activate_account page) 


Please refer to this image for your reference:

Please check and follow our guide to set up in your store.


If you have any questions or require any assistance, please feel free to contact us at sales@bsscommerce.com 

We are always willing to support you.