B2B & Wholesale Solution: Enabling Force Login
The Force login feature in the B2B & Wholesale Solution app ensures that only registered and logged-in members can access designated store pages, features, and content. This helps protect sensitive B2B information, deliver a more tailored shopping experience, and streamline B2B customer management by verifying business representatives before granting access.
This guide explains how to enable Force login and configure storefront visibility based on customers’ login status.
| Note: This feature does not modify the underlying page code. As a result, search engine crawlers can still index the original page content even when Force login is enabled. |
Enabling Force Login for Restricted Page Access
To require customers to sign in before viewing specific pages on your storefront, enable Force login by following these steps:
-
From your SHOPLINE admin panel, go to Apps > B2B & Wholesale Solution. Install the app if you haven’t already.
-
In the B2B & Wholesale Solution app, go to Settings > Customer visits.
-
In the Access restrictions section, locate Force login, turn on the toggle, and select the pages that customers must log in to access.
Once enabled, non-member customers who visit the selected pages will not be able to view the original content. Instead, the page is covered by a login prompt that asks them to sign in or create an account.
Configuring Pricing Visibility Based on Login Status
In addition to enabling Force login to restrict access to designated pages, you can further control how product pricing and purchase-related buttons are displayed before and after login by using the Visibility settings by login status setting:
-
In the B2B & Wholesale Solution app, go to Setting > Customer visits.
-
In the Access restrictions section, toggle Visibility settings by login status to configure pricing display rules:
- Before login > Hide price details: Check this box to hide the product prices before login. Click Preview to see how this setting will appear to customers.
-
After login > Show price details & buy button; hide check price button: Check this box to ensure that once a member logs in, they can see full pricing and the Add to Cart or Buy Now buttons. Click Preview to see how this setting will appear to customers.
Note: Enabling this option will deactivate the customer inquiry form settings on the product detail page.
How Product-Level and Login-Based Settings Work Together
In addition to configuring pricing visibility based on login status, you can also control whether price details and the Add to cart button are displayed for individual products within the app's Products section.
|
Note: To configure the display settings for individual products, go to Products, select the product you want to adjust, and locate the Use inquiry module. |
For the combined display effects on your storefront before and after login, please refer to the tables below:
Store Front Display Before Login
Customer visits > Visibility settings by login status |
Products > Use inquiry |
Store front display before login |
|||
Before login > Hide price details |
Hide add to cart button |
Hide price details |
Price details |
Add to cart button |
Check price button |
V |
V |
X |
Hide |
Hide |
Show |
V |
V |
X |
Hide |
Hide |
Show |
X |
V |
X |
Show |
Hide |
Show |
X |
V |
X |
Show |
Hide |
Show |
X |
V |
V |
Hide |
Hide |
Show |
X |
V |
V |
Hide |
Hide |
Show |
Store Front Display After Login
Customer visits > Visibility settings by login status |
Products > Use inquiry |
Store front display after login |
|||
After login > Show price details & buy button; hide check price button |
Hide add to cart button |
Hide price details |
Price details |
Add to cart button |
Check price button |
X |
V |
X |
Show |
Show |
Show |
V |
V |
X |
Show |
Show |
Hide |
X |
V |
X |
Show |
Hide |
Show |
V |
V |
X |
Show |
Show |
Hide |
X |
V |
V |
Hide |
Hide |
Show |
V |
V |
V |
Show |
Show |
Hide |
FAQ: How to Prevent B2B Products and Pricing from Appearing in Google Search Results
Your B2B store may not be running Google Ads or using Google Merchant Center, and you may have already enabled Force login, yet your product information and pricing still appear in the "From the web" section of Google search results.
Why Your Product Information Is Exposed
Even if product prices are hidden on the storefront or access is restricted by a login wall, Google can still read structured data embedded in your page code.
- Structured data crawling: By default, your product pages include structured data (Schema.org/Product) in the code. This is a standard implementation across most e-commerce themes. As long as Google can crawl your product pages, it can extract information such as pricing from this structured data and display it in search results.
- Limitations of the "noindex" tag: Many merchants assume that adding a noindex tag will prevent exposure. However, noindex only prevents the page from appearing as a standard search result listing. It does not stop Google from crawling and using structured data already present on the page.
| Note: To completely prevent product information from being exposed, it is not enough to rely on noindex or frontend visibility settings. You must remove the structured data directly from the page code. |
How to Remove Structured Data
To fully prevent private B2B product information from appearing on Google, follow the steps below to remove structured data from your theme files:
-
In your SHOPLINE Admin, go to Online Store > Design > My theme, then locate your current theme.
Important: Before making any code changes, duplicate or back up your theme to avoid accidental errors. -
Click the More options (⋯) icon, then select Edit code to open the code editor.
-
Search for and open the file named main-product.html (or a similar file).
-
Click Search, then locate the <script type="application/ld+json"> tag and its contents (this is the structured data).
- Delete the entire structured data block, then click Save.
After completing the changes, you can use Google’s Rich Results Test tool to test your product page and confirm that the structured data has been successfully removed.