Developer forum

Forum » Rapido » GLS ShopDelivery - only showing 5 parcelshops

GLS ShopDelivery - only showing 5 parcelshops

Keerthy Sethupathy
Reply

Greetings, 

Is there a way to control the amount of Parcelshop's that are shown? At the moment it will only show a maximum of 5 avaiable shops. 

I cannot seem to find anywhere in the Administration where i can change this. It would be nice to have this feature, if it is not possible at the moment. 

 

I can see that the limit is hardcoded. It should be an option for the customer to choose the limit on shippingmethod. 

 public static ParcelShopSearchResult GetParcelShops(
      string street,
      string zipcode,
      int limit = 5)
    {
      try
      {
        ParcelShopSearchResult shopSearchResult = Dynamicweb.Ecommerce.ShippingProviders.GLS.GLS.Service.SearchNearestParcelShops(street, zipcode, limit);
        foreach (PakkeshopData parcelshop in shopSearchResult.parcelshops)
          Dynamicweb.Ecommerce.ShippingProviders.GLS.GLS.TrimParcelShopData(parcelshop);
        return shopSearchResult;
      }
      catch
      {
      }
      return (ParcelShopSearchResult) null;
    }

 

Capture.PNG

Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Keerthy

Apparently not - the provider is hardcoded to 5.

Just made an update of the provider (Dynamicweb.Ecommerce.ShippingProviders.GLS) and added a setting to override the default. TFS#81511

In a nuget feed near you later today! Attached a pirate version.

BR Nicolai

Votes for this answer: 1
 
Keerthy Sethupathy
Reply

You are my man Nicolai!

 

Thank you very much.

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Keerthy

The GLS provider update #81511 has been implemented in Dynamicweb version 9.8.9

You can find this in the download section

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum