Skip to content

This extension allows you to handle configured postcodes / zip codes different for shipping methods or payment methods.

Notifications You must be signed in to change notification settings

team23/magento-module-restrict-zip-codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Team23 Restrict Zip Codes

This extension allows you to handle configured postcodes / zip codes different for shipping methods or payment methods.

Description

With this Magento extension you can handle some postcodes different from others. To add restricted zip codes, add a restrict_zip_codes.xml in your own module. At the moment, only German islands are included.

In the backend you can configure if the module should show a notification on postcode validation, specify the notification message, and you are able to prevent the user from checking out if he entered a restricted zip code. For better User Experience it makes sense to enable notification message if you prevent the user from checking out.

Also, you can restrict the allowed payment methods if the user uses a restricted zip code. Just select the allowed payment methods in the multiselect element. For this you need to enable the "Restrict Payment Methods" configuration.

Installation details

Installation is done via composer

Add composer registry

composer config repositories.git.team23.de/171 '{"type": "composer", "url": "https://git.team23.de/api/v4/group/171/-/packages/composer/packages.json"}'

Install package

composer require team23/module-restrict-zip-codes

Use following commands:

bin/magento module:enable Team23_RestrictZipCodes
bin/magento setup:upgrade

This module does not make any changes in the database, so you can remove it any time. For information about a module installation in Magento 2, see Enable or disable modules.

Extensibility

Extension developers can interact with the Team23_RestrictZipCodes module. For more information about the Magento extension mechanism, see Magento plug-ins.

The Magento dependency injection mechanism enables you to override the functionality of the Team23_RestrictZipCodes module.

About

This extension allows you to handle configured postcodes / zip codes different for shipping methods or payment methods.

Resources

Stars

Watchers

Forks

Packages

No packages published