Fix Shipping Address

Normalizes billing and shipping addresses before the Wawi push — prevents duplicated house numbers and collapsed whitespace on printed shipping labels.

v1.0.4 JTL 5.2+ Wawi Push

Everything at a Glance

Address data is cleaned up before it reaches the Wawi and downstream shipping providers.

House Number Dedupe

Detects duplicated house numbers across “street” and “house number” fields (e.g. “38a” in both) and removes the duplicate before handoff.

Whitespace Normalization

Collapses repeated spaces into a single space — eliminates the “38a38a” glyph collision on Austrian Post labels.

Pre-Insert Hooks

Hooks into BESTELLUNGINDB_RECHNUNGSADRESSE and BESTELLUNGINDB_LIEFERADRESSE_NEU — cleans the data before it hits the database.

Correction Log

Every correction is written to the order comment for audit purposes — with “before”/“after” values per address field.

No Checkout Changes

Runs server-side after submission — no JavaScript validation, no UX change for the customer.

Admin Interface

Toggleable in the plugin backend — with a correction log to review which orders were cleaned up.

Why Shipping Labels Break

Three harmless layers add up to a broken label.

1. Double Entry

  • Customers type the full address including the house number into “street”
  • … and also fill in the separate “house number” field
  • The form does not warn or auto-correct

2. JTL Push to Wawi

  • cStrasse and cHausnummer are concatenated
  • Only an outer trim(), no whitespace normalization
  • Result: Martin-Schleyer-Straße 38a     38a

3. Label Print

  • Austrian Post DACH collapses whitespace at print time
  • 38a   38a becomes 38a38a — visually glued
  • Wawi normalizes on render — the merchant never sees the bug

Technical Details

Server-side, no external dependencies, full audit trail.

Requirements

  • JTL-Shop 5.2.0+
  • PHP 8.0+

Hooks

  • BESTELLUNGINDB_RECHNUNGSADRESSE (74)
  • BESTELLUNGINDB_LIEFERADRESSE_NEU (304)
  • BESTELLUNGINDB (75)
  • BESTELLUNGINDB_ENDE (207)

Audit Log

  • Each correction recorded in tbestellung.cKommentar
  • “before”/“after” values per field
  • Admin log in the plugin backend

Clean Shipping Labels from Day One

No duplicated house numbers, no collapsed columns on Austrian Post labels.

Get in Touch

Send a Message

Questions, feedback, or interested in the plugin? Write to us directly.