Skip to content

Adds a validation to the Hyvä checkout for the Dutch postcode format. Validates if the format is 1234AB

Notifications You must be signed in to change notification settings

Vendic/hyva-checkout-postcode-nl-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vendic_HyvaCheckoutPostcodeNLFormat

A small Hyva checkout extension that adds validates the Dutch postcode to the correct format using a regular expression.

Note: this extension only validates the format. It doesn't do a lookup to see if the postcode actually exists. For that purpose, use one of these modules:

  1. Trinos Postcode NL
  2. Hyva Postcode NL compatibility module

However, it can be used in combination with the above extensions.

Installation

composer require vendic/hyva-checkout-postcode-nl-format

Usage

Install the extension, go to the Hyvä checkout and try to enter a Dutch postcode in the wrong format while shipping to the Netherlands. You should see an error message that the postcode is in the wrong format (after trying to place the order).

About

Adds a validation to the Hyvä checkout for the Dutch postcode format. Validates if the format is 1234AB

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published