Here’s a step-by-step guide on how to show custom error messages with the PrestaShop Private Products & Category Module:
Access your PrestaShop admin panel using your login credentials.
Go to Modules > Module Manager.
Click on “Addify Hide Product and Category” in the list of modules.
Next, click on “Configure” for the “Addify Hide Product and Category” module.
Create a New Rule:
Click on the “+” button to create a new rule for catalog and page restrictions.
Configure Rule Details:
- Title: Enter a descriptive title for the rule (e.g., B2B Catalog Restriction).
- Priority: Assign a numeric value to determine the rule’s priority. Lower values typically have higher priority.
- Active: Enable or disable the rule based on your requirements.
Custom Message:
Enter a custom message in the “Custom Message” field. This message will be displayed when the rule conditions are met and access is restricted.
This message can inform users about why they cannot access certain products, categories, or pages.
Redirect URL (Optional):
If you prefer to use a redirection instead of a custom message, provide a complete URL in the “Redirect URL” field.
Use complete URLs like http://google.com, http://facebook.com.
Save the Rule:
After configuring the rule details, including the custom message or redirect URL, click on the “Save” button to save the rule.
By following these steps, you can effectively show custom error messages or redirect users when the PrestaShop Private Products & Category Module restricts access based on your configured rules.