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;
}