tig / gls-magento2
TIG Magento 2 GLS extension
Installs: 5 030
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 8
Forks: 7
Type:magento2-module
Requires
- php: 7.*
- ext-json: *
- magento/framework: ~101.0|~102.0|~103.0
Requires (Dev)
- magento/marketplace-eqp: ^1.0
- object-calisthenics/phpcs-calisthenics-rules: ^2.0
- satooshi/php-coveralls: ^1.0
README
We created this extension to easily integrate GLS' Delivery Services into Magento 2.
What does it do?
- 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.
Installation using Composer
composer require tig/gls-magento2
Installation without using Composer
Clone or download the contents of this repository into app/code/TIG/GLS
.
Development Mode
After installation, run bin/magento setup:upgrade
to make the needed database changes and remove/empty Magento 2's generated files and folders.
Production Mode
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!
Configuration
API credentials
To use this module you need API credentials provided by GLS. These can be entered in Stores / Configuration / Sales / GLS.
Shipping Method
To configure the shipping method's handling fees, available services, etc. go to Stores / Configuration / Sales / Shipping Methods / GLS.
Store Address and E-mail addresses
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.
Table Rates (Price vs Destination)
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.