Ban System
Adds highly customizable banning system to your store. You will be able to set ban rules for pesky customers: block names, emails like sales@domain.com, restrict addresses etc. Very easy to use, no special knowledge required, but some regex skills will be a plus.
Features
Adds powerful banning system with unlimited number of rules. Works for customers, guests and affiliates. Very easy to use, no crazy regular expressions required (you can still use regexp, though). You can ban by almost any available parameter: IP address, name, email, postcode, any custom field etc.
Compatibility: OpenCart 2.0+, 3.0+
Current version: 3.1.0
Why Ban System?
Ban System is a very powerful tool, which doesn't require any knowledge to use, yet very powerful. It has a very clean logic and allows you to create rules of any complexity. No other extension will allow you to achieve this without going through crazy setup. If you don't want certain customer to use your store, just add some of his data to ban rule and he will never be able to register, login or checkout.
Screenshots
Demo
Try to register on our demo site using John Doe as firstname/lastname, example@example.com or any email with 'support', 'admin' or 'sales' word in it
Extension settings can be found in Sales -> Customers -> Ban System section on backend of our demo site (username: demo, password: demo).
Frontend DemoBackend Demo
Change Log
3.1.0
- OpenCart 3 Compatibility Fixes extension is not needed anymore. You may remove it.
3.0.1
- FIXED: Extension tables are not created in some cases.
- FIXED: Language variables are missing for rule buttons.
3.0.0
- OpenCart 3 support added. See documentation on how to properly install extension!
- ADDED: Copy button to quickly copy selected ban rules.
- ADDED: Title option for ban rule to display a custom title in the list.
- FIXED: Custom fields are not properly processed on registration.
- Minor bug fixes and improvements.
2.4.1
- ADDED: "Last resort" feature (see documentation).
2.4.0
- ADDED: Smart Ban feature to ban visitors in more "intelligent" way (read the documentation for more info).
- FIXED: Ban target (guest, customer or affiliate) is not properly defined.
- FIXED: Confirm template is nor properly loaded on OpenCart 2.2 and higher.
- Minor improvements.
2.3.1
- FIXED: Field names are not escaped in select, which renders JavaScript error.
- FIXED: eval() error, if last field in the rule is not present in data array.
2.3.0
- OpenCart 1.5 support completely removed.
- ADDED: Pagination Limit option to limit number of rules per page.
- FIXED: Minor incompatibilities with OpenCart 2.3.
- FIXED: Custom fields are not properly checked.
- Minor improvements and code optimization.
2.2.0
- Ban System now affects affiliates as well (optional).
- ADDED: Enable option in rules list to quickly enable/disable Ban System.
- ADDED: Enabled option for each rule to enable/disable single rule.
- ADDED: Affects option for each rule to apply rule only to selected visitors: guests, customers, affiliates or all of them.
- ADDED: Toggle button in rules list to quickly enable/disable selected rules.
- ADDED: Enable, Disable and Delete buttons for each rule in rules list.
- Additional checks for ban rules added to increase security.
- Minor bug fixes and improvements.
2.1.0
- Extension is now compatible with OpenCart 2.1.
- Completely reworked rules saving/reading algorithm. Your current rules will be wiped out on upgrade!
- A lot of improvements and code optimization.
- Some language strings added, some changed. Don't forget to update your localization!
2.0.2
- Language strings moved from VQMod to language files for easier localization.
- Minor compatibility fixes and improvements.
2.0.1
2.0.0
- Extension now fully compatible with OpenCart 2.0.
- Saving and reading of rules has changed. Check your rules and update, if needed!
- FIXED: Data not checked, when new address added during checkout.
- FIXED: Customer is always blocked, when last field in condition meets given criteria.
- Minor bug fixes and code optimization.
1.1.0
- Some concept changes.
- Minor bug fixes.
1.0.0
Documentation
How to use
To set ban rules go to Sales -> Customers -> Ban System and click Add Rule button. Choose a field from dropdown list, set the condition (EQUALS or LIKE) and enter desired value. If you want to add another field, click Add Field button, choose AND/OR operator and repeat operations above. You can set as much fields and rules as you want, but be careful and don't miss their logic.
Example: Ban user with email johndoe@mail.com, name John, lastname Doe, on Baker street or something like that.
email EQUALS johndoe@mail.com AND firstname EQUALS John AND lastname EQUALS Doe AND address LIKE baker
WARNING! Be careful with the rules, do NOT overuse them. Ban System is very powerful yet serious tool.
Types of ban
There're two types of ban: default and smart. Default ban simply disallows any operation, which matches given criteria, and displays error message.
Smart ban is more intelligent and follows different rules for different operations:
- On login - Customer or affiliate is marked as unapproved or disabled and corresponding error message is displayed.
- On register - Account is created, but marked as unapproved or disabled. Visitor gets "Account created, but requires approval" email.
- On account edit - Same as on login.
- On checkout - Order is marked with status set in extension settings. Any online payment is not possible, user is redirected to checkout/success page.
opencart, customers