Ready This is a plugin especially developed for Shopware 6
Validate ZIP bei Country

Validate ZIP bei Country

by huebertweb no ratings yet Source Available 2 Downloads
Current version:

Version:

This plugin is available for Shopware 5
Support
This manufacturer responds very quickly to support requests
Plugin details
  • Huebe13490737604
  • huebertweb
  • 1.0.0
  • 9 Jul 2020
  • 6.0.0
    6.1.0 – 6.1.6
    6.2.0 – 6.2.3
    6.3.0.0 – 6.3.0.2
    6.3.1.0 – 6.3.1.1
During registration, the format of the postal code is checked against the selection of the... more

Product information

During registration, the format of the postal code is checked against the selection of the country. For Germany the regex for 5 consecutive digits could look like this e.g.: ^[0-9][0-9][0-9][0-9][0-9][0-9][0-9]$Additionally for the error message you can define an example postcode. For Sweden which requires 3 digits a space and 2 digits again e.g. for Stockholm 111 21 the regex could look like this: \d{3} \d{2} 
If the postal code does not correspond to the specified format (Regex), an error message with an example postal code will be issued. 
This has the advantage that e.g. with the DHL label the correct postal code is used if a user mistypes or enters something strange.


How a Regex is structured:

https://medium.com/factory-mind/regex-tutorial-a-simple-cheatsheet-by-examples-649dc1c3f285

Examples for different countries: http://pattern.tfcpc.de/pattern-beispiele-plz.php

from DHL

https://www.dhl.de/content/dam/dhlde/downloads/express/dhl-express-formate-postleitzahlen-062014.pdf Translated with www.DeepL.com/Translator

Read, write and discuss reviews... more

Customer reviews

Installation manual

In the backend you can then select in the settings -> shop -> countries

the regex and an example postcode can be defined for the individual countries. 



Regex Templates

Germany: ^[0-9][0-9][0-9][0-9][0-9]$

Australia, Austria, Belgium, Hungary: ^\d{4}$ 

Sweden: \d{3} \d{2}

Spain: ((0\d|[1-4]\d|5[0-2]))\d{3}

Canada: [ABCEGHJKLMNPRSTVXYZ]\d[A-Z] \d[A-Z]\d

USA: (\d{5})|(\d{5}(-\d{4})^\d{5}$

Changelog

Version 1.0.0

Publication in the Shopware Store

About the manufacturer

Shopware 6 Signet Shopware 6 ready huebertweb huebertweb Shopware Business Partner Shopware Business Partner 2 Certifications Developer SW5 0 Developer Advanced SW5 0 Template Designer SW5 0 Template Developer SW5 0 Developer SW6 1 Developer Advanced SW6 0 Template Designer SW6 1 Template Designer Advanced SW6 0 21 Extensions 5 Ø Rating
Current version:

Version:

Recently viewed