Setting Up Prestashop Password Protected Products – Rule Creation Settings

Viewing Password Protection Rules in a Log

Go to the “Rules” tab. Here, you can:

  • View a list of rules with the following information:
    • Title 
    • Priority
    • Status 
  • Locate the rule you want to change the status of and click on it. Then, you can enable or disable it
  • Find the rule you wish to edit and click on it. Make the necessary changes and save your edits.
  • Create new rules to enable password protection on your store

Creating Multiple Password Protection Rules

Click on “+” to create a new password protection rule and fill in the necessary information.

Title: Provide a descriptive title for the rule

Priority: Assign a numeric value to indicate the rule’s importance

Active: Enable or disable this rule

Customize Message: Choose to enable/disable the option to customize the message.

Whole Website: Choose to enable or disable password protection for the entire website

  • Enable: Activate password protection for the whole website
  • Disable: Deactivate password protection for the whole website
    • Product Active: Enable this option to apply the rule to specific products
      • Search Product: Search and add product(s) to the hidden list
    • Categories Active: Enable this option to apply the rule to specific categories
      • Categories: Specify categories to which this rule applies
    • Manufacturer Active: Enable this option to apply the rule to specific manufacturers
      • Manufacturer: Choose the manufacturer to which this rule applies
    • Supplier Active: Enable this option to apply the rule to specific suppliers
      • Supplier: Choose the supplier to apply password protection
    • CMS Active: Enable this option to apply the rule to specific pages on your store
      • CMS Pages: Mark the pages that you want to password-protect

Group Active: Enable this option to apply the rule to specific customer groups

  • Group: Select the customer group(s) for which you want to apply this password protection. You can mark any or all of the following groups:
    • Visitor 
    • Guest
    • Customer

Password: Add a password for this rule’s settings

  • Add More: If you need to create additional passwords, click on ‘Add More’ 

Rule Scheduling: Enable or disable rule scheduling:

  • Enabled: If enabled, specify the date range during which this rule will be active
    • Rule Validity From: Enter the start date for the rule
    • Rule Validity To: Enter the end date for the rule

lAfter configuring all the desired options for your new password protection rule, click the “Save” button to apply the settings.

Whitelisting Special Customers

Whitelisting: Allow specific customers to bypass password protection and access your PrestaShop store freely. Complete the following fields to whitelist special customers:

User ID Active: Enable or disable the option to whitelist customers based on their user IDs

  • IDs: Add the user IDs of customers you want to whitelist. Separate multiple IDs with commas (e.g., 123, 456, 789)

Email Active: Enable or disable the option to whitelist customers based on their email addresses

  • Email: Add the email addresses of customers you want to whitelist. Separate multiple email addresses with commas (e.g., example1@example.com, example2@example.com)

IP Address Active: Enable or disable the option to whitelist customers based on their IP addresses

  • IP Address: Add the IP addresses of customers you want to whitelist. Separate multiple IP addresses with commas (e.g., 192.168.1.1, 192.168.1.2)

After configuring the desired whitelisting options, click the “Save” button to apply the changes. 

Accessing Logs for User Details

Access Log: Locate the access log within the password protection module.

View Log Details: The access log provides the following details for each record:

  • User ID: The unique identifier of the user attempting to access the protected page.
  • User Name: The name of the user.
  • Page Visited: The specific page the user attempted to visit.
  • Password Attempt: The password entered by the user during the attempt.
  • Date: The date and time of the access attempt.

Manage the Logs:

  • Delete Any Log: You can choose to delete individual log records if they are no longer needed. This helps to keep your log organized and manageable.

Perform Bulk Actions: Use bulk actions to manage multiple log records at once. This is useful for deleting multiple logs quickly and efficiently.