Developer forum

Forum » Ecommerce - Standard features » GLS to other Nordic Countries

GLS to other Nordic Countries

Anett Nissen
Anett Nissen
Reply

Hi there

We have quite a few Smaller B2B customers that really would like to take advantage of sending with GLS package shops to B2C customers from other nordic countries than Denmark

Alternatives for these customers is a rather expenssive Post Nordic service og ShipAdvisor (Consignor).
Flatrate is often not a good option for smaller B2B customers in larger Countries like Sweden with a big geographic area
And handling Fees etc after an order is placed is not a good option when the customer pays with cards etc. where the totalamount cannot be increased after placement of the order

From the GLS API it looks rather simple to expand calls with Country to make this possible

http://www.gls.dk/webservices_v4/wsShopFinder.asmx?op=GetParcelShopDropPoint 

Are there more of you out there that would like this possibility?

Is it a small operation to expand the code?

Best regards Anett


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Anett

What is a better way than to try to expand to tell you if it is a small operation? And it seems like it was!

Our implementation is using V2 of the GLS service - it does not support countries. Your link is V4 of GLS servce.

I have added V4 as a service reference to the project and made an option to use their V4 endpoint to get parcel shops. 

On the updated version of the Dynamicweb GLS shipping provider, you now have an extra checkbox saying "Use GLS V4 service" - if checked, country from the order will be used to fetch parcel shops.

It requires that the order.CustomerCountryCode or order.DeliveryCountryCode is set to a valid country code - i.e. DK, SE etc. (follows the "Use delivery address if specified" setting).

Attached find a pirate version of the changes that you can copy to your solution to test out. We have not tested it yet. Please let us know if it works for you.

BR Nicolai

 

Votes for this answer: 1
 
Anett Nissen
Anett Nissen
Reply

FANTASTIC!!!! Wonderful news and super service!

Thanx :-) Anett

 
Anett Nissen
Anett Nissen
Reply

We will try it out and write to you if it works or more is needed. I marked your post as the answer a little to soon :-)

 
Anett Nissen
Anett Nissen
Reply

Hi Nicolai

We have tried to implement the hotfix pirate version. But it does not seem to work out of the box.

We are taking a look at what it may take to make it work

But it could be that we may also need your help to test it and take a look at it

Best regards Anett

 
Anett Nissen
Anett Nissen
Reply

Hi Nicolai

Observations from trying the DLL:

Using the DLL provided above on DW 9.9.8

Orderdata is correct. We send "DE" as countrycode, but no results are returned to chose from by GLS


Do you have some recommendations on what may be the issue?

 
Nicolai Pedersen
Reply

Hi Anett

Thanks for the detailed info - it helped me.

I was translating countrycodes before sending them to the endpoint - that was a wrong approach. I have fixed that now. Updated gls provider attached.

This is the result I get now:

 
Anett Nissen
Anett Nissen
Reply

Perfect! Thanx - we are trying it out AWS

 
Allan Iversen
Allan Iversen
Reply

Hi Nicolai,

I have tested GLS V4 service API - it works with other countries.

We had to include this endpoint in Web.config - it wasn't present in DW 9.9.8.

<endpoint address="http://www.gls.dk/webservices_v4/wsShopFinder.asmx" binding="basicHttpBinding" bindingConfiguration="wsPakkeshopSoap" contract="GLSwsPakkeshopV4.wsShopFinderSoap" name="wsPakkeshopSoap" />

 
Nicolai Pedersen
Reply

Hi Allan

Great - thank you for confirming!

Yes - that is missing from web.config as the use of this version of the service is not released yet. Will make sure it is part of the final release - thanks!

BR Nicolai

 
Anett Nissen
Anett Nissen
Reply
This post has been marked as an answer

Perfect! It is working!

Nicolai will you send us a DLL ready for deploy? Then we will install it on the sites that are missing this feature

Votes for this answer: 1
 
Nicolai Pedersen
Reply

You will find it here when available: https://www.nuget.org/packages/Dynamicweb.Ecommerce.ShippingProviders.GLS/

It has to pass QA and get released first. We are low on QA these days due to vacation, so maybe monday! Otherwise you can go live with the copy you have - same code (only difference is that it is a debug build vs a release build with a slightly bigger file size).

BR Nicolai

 

You must be logged in to post in the forum