Integrating your Prestashop store with Webshipper is really easy, this is how to do it.
Nice to know before getting started
1. Set up the API key in PrestaShop
2. Setting up the order channel
3. Download and install the module
4. Adding a new webservice token
5. Link orders to shipping methods
Nice to know before getting started
It is currently NOT possible to display shipping rates directly in checkout with Webshipper rates.
With a Prestashop setup, you simply create a set of identical rates in Webshipper and map these to your PrestaShop rates. For those services that require a drop point, Webshipper is able to display the drop point selector in checkout via the rates created in Prestashop.
If you are running version 1.6 or below, the Webshipper integration may not function properly.
1. Set up the API key in PrestaShop
Start by logging into Prestashop and click on the menu titled Advanced Parameters and navigate to Webservice and press the key.
Now you should be able to copy or generate a new API key.
2. Setting up the order channel
- In Webshipper, go to Connect Order channels and press New order channel.
- Find Prestashop and press Connect.
- Give your store a chosen name to display in Webshipper
- Type in the URL for your shop
- Input the API key, which you just created, in the relevant field
- Configure which Transfer Status ID to import orders from.
- Choose weight unit.
- Set the Store ID and Close ID to the corresponding IDs in Prestashop.
- Add any additional order attributes and set reference source (ID or reference)
- Click on Create order channel and you are done with the order channel.
3. Download and install the module
Once you are happy with the setup, orders will begin to appear in Webshipper through the API integration. If you would like to be able to display the drop points selector in your checkout, you can install the Webshipper Module.
- Start by clicking the Download Module button under the Information tab of your order channel settings.
- You should also see a field called "Module Configuration Token" with a string of text attached, highlight this and copy it to your clipboard.
- Switch over to your Prestashop and navigate to Modules Installed Modules (Tab) Upload a Module and select the file from before.
- Once the module has been installed, click on Configure.
- Paste the configuration token, which you copied to your clipboard, into the field with the same name.
- The option "Drop point limit" helps you define the number of drop points being shown during checkout (The default is 5).
Tip if your experience difficulties:
in the .htaccess file on the server, this has to be added to the top two lines:
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
4. Adding a new webservice token
Read more here (will open in a new window)
We need the following permissions for both reading and writing so flag all permissions for the following:
• Addresses
• Carriers
• Combinations
• Countries
• Currencies
• Customers
• Orders
• Order_carriers
• Order_histories
• Products
• States
• Webshipper_droppoint
5. Link orders to shipping methods
When orders start to flow into Webshipper, you will need to create a match or link to the given shipping method. To see read more about this click here.