Version 3.0.5 Shopware 5.3 to 5.7 As of May 11, 2020
With this plugin you block unwanted registrations in your shop. You define which email addresses, names and company names may not register, how old a customer must be at least and which postal codes are valid for each country. If a filter matches, Shopware does not create a customer account and the customer sees your error message.
Version 1.0.3 is available for Shopware 5.0 to 5.4.
What the plugin does #
The filters work with regular expressions. This lets you block not only single addresses but whole ranges. With .*@example.com nobody can register with an address from example.com anymore, with .*@.*\.ru nobody with a Russian .ru address. For names, Mar.* blocks all names that start with "Mar".
The system is powerful and must be used with care: an entry E.* in the company field prevents the registration of all company names that start with E.
Installation and setup #
- Install the plugin in the Plugin Manager and activate it.
- Enter your filters in the configuration, one per line.
- Test a registration with a blocked address.
Settings #
| Setting | Default | Effect |
|---|---|---|
| Active in this shop | on | Switches the plugin on or off per subshop. |
| Filter e-mail | empty | Blocked email addresses, one per line, also as a regular expression. |
| Filter name | empty | Blocked first names and last names, one per line. |
| Filter company | empty | Blocked company names, one per line. |
| Filter date of birth | empty | Minimum age in months, for example 216 for 18 years. The check only takes place if the customer enters a date of birth. |
| Check zip code | on | Checks the postal code against the pattern stored for the country. |
| Case insensitive match | on | When switched off, the filters distinguish between upper and lower case. |
| Error message | German text | Message the customer sees when a filter matches. |
Checking postal codes #
You store the pattern for the postal code per country under Configuration > Basic settings > Shop settings > Countries. Next to the pencil icon for editing a country there is a separate icon for the free text field. The check only takes place if "Check zip code" is switched on and the field is filled in for the country. A pattern for Germany:
([0]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{3}According to this pattern, a German postal code is valid if it starts with 0 and has 1 to 9 in the second position or if it starts with 1 to 9. The remaining three characters are digits.
Frequently asked questions #
Does the filter also apply to guest orders and quick orders?
Yes, as long as the customer fills in the Shopware registration form. If the customer buys via an express checkout button such as PayPal Express or Amazon Pay, they enter their data on the page of the provider. The plugin cannot check these entries.
Are there examples of regular expressions?
You find more examples and a way to test expressions beforehand in the guide for the registration filter for Shopware 6.
Help #
If this guide does not answer your question, write to us via the contact form on enno.dev.
