Type
magento2-module
TIG Magento 2 PostNL extension
magento2-module
CC-BY-NC-ND-3.0
None
None
None
None
None
This is the official PostNL Magento 2 extension to connect your Magento 2 webshop with PostNL.
We strongly recommend that you use a Staging Environment for the installation, and to also make a backup of your environment.
To install the extension login to your environment using SSH. Then navigate to the Magento 2 root directory and run the following commands in the same order as described:
Enable maintenance mode:
php bin/magento maintenance:enable
composer require tig/postnl-magento2
php bin/magento module:enable TIG_PostNL
php bin/magento setup:upgrade
When your Magento environment is running in production mode, you also need to run the following comands:
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento maintenance:disable
php bin/magento module:enable TIG_PostNL
php bin/magento setup:upgrade
To update the PostNL Extension run the following commands:
composer update tig/postnl-magento2
php bin/magento setup:upgrade
To remove the PostNL extension, simply make use of the uninstall command Magento provides: https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-uninstall-mods.html#instgde-cli-uninst-mod-uninst
PostNL uses uninstall scripts. Please make sure to add the --remove-data flag to your command. The uninstall script will ask if you would like to remove Order related PostNL data. Removing this data is optional. The recommended uninstall command is:
php bin/magento module:uninstall TIG_PostNL --backup-db --remove-data --clear-static-content`
Place this code in a working Magento 2 installation in the folder app/code/TIG/PostNL (Case-sensitive).
Install all the dependencies:
- composer install
- npm install
- npm install -g grunt-cli
- Setup the integration tests as advised by Magento.
- Paste the following xml within the <testsuites>
tag of dev/tests/integration/phpunit.xml:
<testsuite name="TIG PostNL Integration Tests">
<directory>../../../app/code/TIG/PostNL/Test/Integration</directory>
<directory>../../../vendor/tig/postnl/Test/Integration</directory>
<exclude>../../../app/code/Magento</exclude>
</testsuite>
Run:
grunt test
This command will run the following tests:
The build status can be viewed on Travis-ci.com
This extension is developed by Total Internet Group (TIG) commissioned by PostNL.
For questions related to your PostNL account and PostNL delivery options, please contact PostNL. - Phone: +31 (0)88-2255651 - Website: www.postnl.com
For questions about installing and configuring the extension please consult the relevant documentation: - Knowledge base: PostNL Magento 2 Knowledge base - Frequently asked questions: FAQ - Phone: +31 (0)88-2255652 - Email: [email protected]