> For the complete documentation index, see [llms.txt](https://magecomp.gitbook.io/shopify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magecomp.gitbook.io/shopify/apps/shoplock-login-required/settings.md).

# Settings

1. **Lock Entire Collection**

<figure><img src="/files/KyN3tcIEe1LPudRVsKzp" alt=""><figcaption></figcaption></figure>

* **Lock collection page -** Select this option if you want to lock the entire collection page.
* **Lock all products under collection -** Select this option if you want to lock specific products of a particular collection.

2. **Content Restriction**

<figure><img src="/files/uoicTyUXGtZeEr0ekhCH" alt=""><figcaption></figcaption></figure>

By enabling this feature, your store visitors will not be able to right-click on your website content, copy your website content, drag and save images from your website, or even access the developer tools.

3. **Lock Entire Website**

<figure><img src="/files/AW5LdrC0yHwcQ7vpVcxD" alt=""><figcaption></figcaption></figure>

By enabling this feature, your store visitors will have to log in before accessing the website.

For that, you need to go to **Settings** <mark style="color:blue;">➤</mark> **Checkout** <mark style="color:blue;">➤</mark> **Enable "Require login before checkout."**

4. **Customer Account Approval**

<figure><img src="/files/5ZrlUwP3lVrL7EKJuHJn" alt=""><figcaption></figcaption></figure>

The **Customer Account Approval** feature allows you to control which customers can access protected content on your Shopify store.

Instead of allowing every logged-in customer to view restricted pages, products, or collections, you can approve customer accounts using **Shopify Customer Tags** or **Customer Metafields**. Only customers who meet the configured criteria will be granted access.

This feature is ideal for:

* B2B & Wholesale stores
* VIP customer access
* Member-only stores
* Private product catalogs

### How to Configure Customer Account Approval

1. Open the **SHOPLOCK Login Required** app.
2. Navigate to **Login Restriction**.
3. Enable **Customer Account Approval**.
4. Choose the approval method:
   * **Customer Tag**
   * **Customer Metafield**
5. Enter the required Customer Tag or Metafield value.
6. Click **Save**.

Once configured, only customers matching the specified tag or metafield will be able to access the protected content.

### Example

Suppose you enter the customer tag **Wholesale**.

Only customers who have the **Wholesale** tag in Shopify will be able to access the restricted pages. All other customers will be denied access until the required tag is assigned.

> **Note:** You can manage Customer Tags and Customer Metafields directly from your Shopify Admin under **Customers**.

### Mail Server Details (SMTP Settings)

To send passcodes to customers via email, **SHOPLOCK Login Required** uses your store’s email server (SMTP). This ensures emails are sent securely and appear to come from your business email address.

You need to enter the SMTP details provided by your email service provider (such as Gmail, Outlook, or SendGrid).

### Where do I get SMTP details?

All SMTP details are provided by **your email service provider**. You can find them in your email account under:

* **Settings**
* **Mail settings**
* **Security**
* **SMTP / Outgoing mail**
* **Email client configuration**

If you already sent emails from your business email, your provider already has these details available.

### How to find SMTP Host, Port, and Encryption

1. Identify the email address you use to contact customers\
   (for example: Gmail, Outlook, Zoho, or a domain email)
2. Log in to your email provider account
3. Open the **SMTP or outgoing mail settings**

You will see:

* SMTP server (host)
* Port number
* Encryption type (TLS or SSL)

### Common SMTP details (for reference)

| Email Provider           | SMTP Host            | Port | Encryption |
| ------------------------ | -------------------- | ---- | ---------- |
| Gmail / Google Workspace | `smtp.gmail.com`     | 587  | TLS        |
| Outlook / Microsoft 365  | `smtp.office365.com` | 587  | TLS        |
| Zoho Mail                | `smtp.zoho.com`      | 587  | TLS        |

These are standard settings officially provided by each email service.

### Field-by-field explanation

#### **SMTP Host**

The outgoing mail server is used to send emails.\
This value is provided by your email service.

**Example:** smtp.gmail.com

#### **Port**

Defines how your email connects to the mail server.\
Most providers recommend **587**.

#### **Encryption**

Secures the email connection to protect data.\
Select **TLS** unless your provider specifies otherwise.

#### **Username**

Your **full email address** is used to send emails.

**Example:** <example@yourdomain.com>

#### **Password**

* If **2-step verification (2FA) is disabled** → Use your email password
* If **2-step verification (2FA) is enabled** → Generate and use an **App Password** from your email provider (recommended for security)

### Popular provider setup locations

* **Gmail / Google Workspace**\
  Google Account → Security → App Passwords
* **Outlook / Microsoft 365**\
  Account Settings → Mail → SMTP / Sync settings
* **Zoho Mail**\
  Mail Accounts → Server settings
* **SendGrid**\
  Dashboard → Settings → SMTP Relay

<figure><img src="/files/xH99cyDQKnBplTgK1PUF" alt=""><figcaption></figcaption></figure>

If you’re unsure:

* Which email provider do you use
* Where to find SMTP settings
* Or how to generate an App Password

Contact your email provider’s support team or reach out to our support, and we’ll guide you step by step.
