How to add custom error message on checkout page
You can add custom error messages for the checkout page from the plugin admin, based on your business needs.
If you do not enter a custom message, the plugin’s default message is shown. Add a custom message for each section you want to display when a blocked customer tries to place an order.
In The Article
How to set it up
Custom checkout messages are in the plugin settings.
Go to: Dotstore Plugins > Fraud Prevention > Blacklist Settings
Step 1: Open Blacklist Settings
- Go to Dotstore Plugins > Fraud Prevention.
- Open the Blacklist Settings tab.
- Scroll to the custom error message section.
Step 2: Add a message for each section
Add your custom message for each section you want to show on the checkout page when a blocked customer tries to place an order.
The settings screen includes a message field for each blacklist type, such as email, first name, last name, IP, domain, domain extension, browser, state, zip code, phone number, shipping zone, and user role. If you leave a field empty, the default message is used.
Step 3: Save Changes
Click Save Changes.
What the customer sees
When a blacklist rule is matched at checkout, the customer sees the custom message for that section (or the default message, if you did not add one) and cannot place the order.
Pro Tips
- Write a clear message so a genuine customer knows how to contact you
- Set a message only for the blacklist types you use. Other sections can keep the default text
- After you save, test checkout with a blocked value so you can see the message the customer will see
Common Use Cases
Here are some popular ways store owners use this setting:
1. Replace the Default Checkout Message
Enter your own wording for a blacklist type instead of using the default message.
2. Use a Different Message for Each Block Type
Add one message for email, another for zip code, and so on, so the customer sees a message that matches the rule.
3. Add Contact Instructions
Include how a genuine customer can reach you if the block was a mistake.
FAQs
1. Where do I add the checkout messages?
Go to Dotstore Plugins > Fraud Prevention > Blacklist Settings and find the custom error message section.
2. What happens if I leave a message field empty?
The plugin’s default message for that section is shown.
3. Can I set a different message for each blacklist type?
Yes. You can add a custom message for each section you want to display at checkout.