protected override void LoadData() { _shippingAddresses = ShippingProvider.GetShippingAddresses(DistributorID, Locale); _pickupLocations = ShippingProvider.GetDeliveryOptions(DeliveryOptionType.Pickup, ShippingProvider.GetDefaultAddress()); if (HLConfigManager.Configurations.PickupOrDeliveryConfiguration.AllowPickUpFromCourier) { _pickupRrefList = ProductsBase.GetShippingProvider() .GetPickupLocationsPreferences(DistributorID, CountryCode); } }
protected override void loadData() { _shippingAddresses = ShippingProvider.GetShippingAddresses(DistributorID, Locale); // Retrieve the pickupoption from the cache, not hardcoded to pickup, unless nothing is loaded, so use default _pickupLocations = ShippingProvider.GetDeliveryOptions(DeliveryOptionType.Pickup, ShippingProvider.GetDefaultAddress()); _pickupRrefList = ProductsBase.GetShippingProvider() .GetPickupLocationsPreferences(DistributorID, CountryCode); // Showing the right options according xml configurations. if (!HLConfigManager.Configurations.PickupOrDeliveryConfiguration.AllowPickUpFromCourier && DeliveryType.Items.FindByValue("PickupFromCourier") != null) { DeliveryType.Items.Remove(DeliveryType.Items.FindByValue("PickupFromCourier")); } }