Ay Gök Plugins

Shopware 6.7

Shopware extensions we maintain ourselves.

Documentation, changes and support for our extensions. Your questions are answered directly by the team that built the extension.

Extensions

Available now

Address check: house number & city

SgAddressCheck · Version 0.1.0

Stop failed deliveries: customers can only save addresses with a house number, and postal codes typed into the city field are caught. Configurable per country and sales channel.

Shopware 6.7 PHP 8.2 – 8.5 EN · DE Shopware Store: in preparation
  • Street must contain a house number
  • City must not contain digits
  • Limit the checks to selected countries, per sales channel
  • Optional custom pattern for special address formats
  • Error messages in English and German, editable as snippets
  • Server-side validation, also for headless and Store API clients

Documentation

Setting up the address check

Installation

  1. Upload the ZIP file in the Administration under Extensions > My extensions, or copy the folder to custom/plugins/.
  2. Install and activate the extension. On the command line:
bin/console plugin:refresh
bin/console plugin:install --activate SgAddressCheck
bin/console cache:clear
  1. Open Extensions > My extensions > Address check > Configure.

Configuration

All settings can differ per sales channel.

SettingDefaultEffect
ActiveonTurns all checks on or off for the sales channel.
Countries to checkemptyEmpty checks every country; otherwise only the selected countries.
Street must contain a house numberonThe street field needs at least one digit.
City must not contain digitsonRejects city names such as 80331 München.
Custom street patternemptyPCRE pattern with delimiters, e.g. /^\D+\s\d+\w?$/u. Replaces the house number check; invalid patterns are ignored.

The checks run on the server for registration, the address book and address changes in checkout, so they also apply to headless and Store API clients.

Error messages

The texts are snippets and can be changed under Settings > Snippets:

KeyDefault text (English)
error.VIOLATION::SG_STREET_HOUSE_NUMBER_MISSINGPlease enter a house number.
error.VIOLATION::SG_CITY_CONTAINS_DIGITSThe city must not contain digits. Please enter the postal code in the postal code field.

FAQ

Are addresses that are already saved checked?

No. The check applies when an address is created or changed. Existing addresses stay as they are until customers edit them.

Some addresses in a country have no house number. What can I do?

Limit the check with “Countries to check” to the countries where house numbers are common, or set a custom street pattern.

Does the check also work for headless shops and the Store API?

Yes. The check runs on the server, not only in the browser, so it applies to every frontend that saves addresses through Shopware.

Does the extension send data to third parties?

No. The extension checks the input locally in your shop, calls no external services and stores nothing besides its configuration.

What happens on uninstall?

Shopware removes the configuration unless you choose “Keep user data”. The extension creates no other data.

Changelog

0.1.0
First version: house number check for the street field and no-digits check for the city field, per country and sales channel.

Support

We are happy to help

Write to us

Please send questions, bug reports or feature requests about an extension by email. We answer in English, German or Turkish.

Send an email

info@agentur-aygoek.eu

So we can help quickly

  • Name and version of the extension
  • Shopware version and PHP version
  • What you did and what happened instead
  • Error message or screenshot, if available