This is the official PostNL Magento 2 extension
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Added an issue template Sep 28, 2018
Api POSTNLM2-668 - Removed the OriginalAddressId and added getBillingAddr… Nov 2, 2018
Block/Adminhtml POSTNLM2-673: update old servicedesk.tig.nl links to confluence.tig.n… Oct 30, 2018
Config Added a config field to disable the PostNL toolbar Sep 6, 2018
Console/Sync POSTNLM2-621 - Deeplink to mijn postnl Sep 17, 2018
Controller POSTNLM2-662 - fixing and researching, build will fail Oct 31, 2018
Helper POSTNLM2-675 - Fixed integration tests Nov 7, 2018
Logging Merge branch 'develop' into extra_at_home Oct 17, 2017
Model Merged quote fix into develop Nov 5, 2018
Observer Merge branch 'master-quote' of github.com:tig-nl/tig-extension-tig-po… Nov 14, 2018
Plugin POSTNLM2-671 - Bug fix Oct 29, 2018
Service POSTNLM2-677 - Changed endpoint and Post data params setters Nov 19, 2018
Setup build fix Sep 21, 2018
Test Merge branch 'develop' into sprint98_address_parsing Nov 28, 2018
Webservices Merge branch 'develop' into sprint98_address_parsing Nov 28, 2018
etc Updated versions in supporttab Nov 29, 2018
i18n Fixed translation for addresscheck Nov 26, 2018
view POSTNLM2-684 - Fixed issue where error message was trown when loading… Nov 27, 2018
.coveralls.yml removed repo token from coveralls.yml and added it as env var to travis Jan 12, 2018
.gitignore Merge branch 'develop' into extra_at_home Oct 17, 2017
.travis.yml Updated versions in supporttab Nov 29, 2018
Exception.php Moved CodingStandardsIgnore, added tests for the Exception, fixed a d… Oct 18, 2017
Gruntfile.js Fixed typo Oct 3, 2018
README.md POSTNLM2-673: update old servicedesk.tig.nl links to confluence.tig.n… Oct 30, 2018
composer.json Updated versions in supporttab Nov 29, 2018
package.json POSTNLM2-673: update old servicedesk.tig.nl links to confluence.tig.n… Oct 30, 2018
phpcs.test.xml Copyright header update Mar 2, 2017
phpcs.xml Copyright header update Mar 2, 2017
phpunit.xml Improved code coverage results Oct 5, 2017
phpunit.xml.dist Copyright header update Mar 2, 2017
registration.php Copyright header update Mar 2, 2017

README.md

Postnl Magento 2

Build Status Coverage Status

Installation

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 Roo Directory and run the following commands in the same order as described:

Enable maintenance mode:

php bin/magento maintenance:enable

Install the extension:

composer require tig/postnl-magento2

Empty the following folders if they exist (Make sure to not delete the folders):

  • var/cache
  • var/di
  • var/generation
  • var/pagecache
  • var/view_preprocessed

Flush the cache:

php bin/magento cache:flush

Update the Magento 2 environment:

php bin/magento setup:upgrade

Compile DI:

php bin/magento setup:di:compile

Deploy static content:

php bin/magento setup:static-content:deploy

Re-index the Magento 2 environment:

php bin/magento indexer:reindex

Disable maintenance mode:

php bin/magento maintenance:disable

The installation on your Staging Environment is now finished.

User and Configuration Manual

https://confluence.tig.nl/display/SDPOSTNL/PostNL+Magento+2+extensie+gebruikershandleiding

Full installation Manual

https://confluence.tig.nl/display/SDPOSTNL/PostNL+Magento+2+extensie+installatiehandleiding

Knowledge Base

https://confluence.tig.nl/display/SDPOSTNL/PostNL+Magento+2+extensie

Running tests (advanced)

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

Frontend: Changing Colors of the PostNL extension

Open: app/code/TIG/PostNL/view/frontend/web/css/source/deliveryoptions.less

Copy the variables to your own theme.less or extend them in your extend.less. More information: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-guide/css_quick_guide_approach.html#simple_override