If you want to add additional functionality to your e-shop, you can also use pieces of code called snippets. These can be added to a child template if you use one, or perhaps with the Code Snippets plugin, which allows you to insert them even if you’re not a programmer.
Below you will find a few useful ones that may come in handy if you use the Kybernaut Mailstep plugin.
If you don’t use any of the phone validation plugins, I recommend using at least the basic constraint in the form of this snippet. It verifies the minimum length when sending the data in the Checkout and watches for inappropriate characters in the phone field.
Validation of the descriptive number
The snippet will check if at least one number is present in the first address line – by which we assume that the sender did not forget to write a descriptive number. Suitable for GLS and other delivery services.