1. Create New Order Channel
In Webshipper, start by going to Settings > Order channels and press 'New order channel'.
Find Magento2 and press 'Connect'.
Fill out the required credentials and insert an 'Access token'. If in doubt about how to create an access token, please see the section below.
MULTISTORE: If you are using the Multistore function in Magento2, you can easily set up several stores as separate order channels in Webshipper. Each store has a 'Shop ID' and will therefore require their own order channel integration.
Enter the shop id that you want to be integrated into Webshipper and press 'Create order channel'.
Repeat the process until you have all of the Magento2 order channels that you want to be integrated in Webshipper.
2. Create Access Token
To create an access token, you will need to navigate to your Magento2 backend and go to System > Integrations > Add New Integration.
Give your new integration a name (preferably 'Webshipper') and type in the password of your backend.
Before saving, go to 'API' in the left sidebar and mark the 'Sales' & the 'Products' folder.
You are now able to see the Webshipper integration in your list and you can press 'Activate'.
A window will pop up asking you to allow Webshipper to access your Sales folder. Press 'Allow'.
Copy the access token and paste it into Webshipper.
Select if you want to create shipments and invoices in Magento2 and press 'Create order channel'.
Congratulations! Your Magento2 store is connected to Webshipper.
You are now ready to Get Started Adding Carriers and Shipping Rates.
3. Display shipping rates from Webshipper in your checkout
To display shipping rates from Webshipper in your Magento2 checkout, you will need to download the Webshipper module for Magento2.
In Webshipper, go to Settings > Order channels and pick your order channel.
In the right sidebar, find 'Module configuration' and press 'Download module'.
Upload the module in Magento2 and activate it. When you unzip the file you will find a folder named "Webshipper". this should be placed in the path - magento2_dir/src/app/code/Webshipper
Once it has been unzipped and installed you will need to enter the Configurations token from your Webshipper order channel and into the magento plugin.
NOTE: remember the token is unique for each order channel.
You will find the token in the right column of your order channel in Webshipper.
then go to your Magento and navigate to:
Stores -> Configuration -> Sales -> Shipping Methods to enter the configurations token.
4. Order completion in Magento 2
So in Magento 2 it is required to have an invoice as well as a shipment in order to complete the order.
You can have Webshipper to do this automatically for you. The settings on the order channel looks like this:
If they are both checked, then the setting for complete order automatically will function correctly.
If you do not check both checkboxes, then you will need to do this manually in Magento 2 before Webshipper is able to complete the order in Magento 2 for you.
If either no invoice or shipment have been created in Magento 2 - then Webshipper will simply set the status to Processing and not complete.
One problem could be that migrations haven't been run in Magento 2 and the tabel therefore havnt been added:
Another problem could be that the event haven't been fired from your checkout. (Often seen on OnePage checkouts).
If you experience difficulty in using the Webshipper module for Magento2, please contact our Support Team.