We created this extension to easily integrate GLS' Delivery Services into Magento 2.
- Add GLS as a shipping method to Magento 2's checkout.
- Show available Delivery Options in The Netherlands depending on zipcode and shipping date, such as:
- Express Delivery (e.g. before 9.00 AM, 12.00 AM or 5.00 PM),
- Saturday Delivery,
- Delivery to a ParcelShop (sorted by distance from zipcode),
- Ship outside The Netherlands using Standard Delivery.
- Use table rates to set different shipping rates per country and order subtotal.
- Show available Delivery Options in The Netherlands depending on zipcode and shipping date, such as:
- Easily create, delete or print labels from within the Shipment-view:
- Including ShopReturn-label (if enabled).
- Enable/disable Express Delivery Services separately,
- Offer discounts or calculate additional for specific Delivery Services.
composer require tig/gls-magento2
Clone or download the contents of this repository into app/code/TIG/GLS
.
After installation, run bin/magento setup:upgrade
to make the needed database changes and remove/empty Magento 2's generated files and folders.
After installation, run:
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy [locale-codes, e.g. nl_NL en_US]
- `bin/magento cache:flush
Done!
To use this module you need API credentials provided by GLS. These can be entered in Stores / Configuration / Sales / GLS.
To configure the shipping method's handling fees, available services, etc. go to Stores / Configuration / Sales / Shipping Methods / GLS.
Because each label requires a valid Sender Address, it is mandatory to configure a store address at Stores / Configuration / General / General / Store Information. The House Number should be entered in Street Address Line 2.
GLS will notify your customers with emails about the delivery time. The sender name and sender email are from the Magento configuration located at Stores / Configuration / Store Email Addresses / Customer Support.
To configure different handling fees for different countries, setup table rates in Stores / Configuration / Sales / Shipping Methods / GLS using Website as the Scope.
Start by using the Export CSV button, which results in an empty CSV-file with the following columns:
- Country: (2 or 3 lettered) country codes according to ISO standards.
- Region/State: Specify a region or state to make the shipping applicable only to this region. Keep in mind that this field is optional in the checkout for some countries. Wildcard = *
- Zip/Postal Code: This should the the exact postal code. E.g. for The Netherlands and without postal code validation you should have 2 lines in your CSV-file per postal code, e.g. 1014BA and 1014 BA. Wildcard = *
- Order Subtotal (and above): apply this shipping rate if the total cart value exceeds this amount (e.g. 100.) Defaults to 0.
- Shipping Price: e.g. 9.95 (using a period as delimiter) is added to the amount specified as Handling Fee in Stores / Configuration / Sales / Shipping Methods / GLS.