Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
No need to translate exception in ShippingService
support41365fa2ff6d
diff --git a/src/Business/Grand.Business.Checkout/Services/Shipping/ShippingService.cs b/src/Business/Grand.Business.Checkout/Services/Shipping/ShippingService.csindex c7bc6a4db..af250eb38 100644--- a/src/Business/Grand.Business.Checkout/Services/Shipping/ShippingService.cs+++ b/src/Business/Grand.Business.Checkout/Services/Shipping/ShippingService.cs@@ -2,7 +2,6 @@ using Grand.Business.Core.Interfaces.Checkout.Shipping;using Grand.Business.Core.Utilities.Checkout;using Grand.Business.Core.Extensions;using Grand.Business.Core.Interfaces.Common.Directory;-using Grand.Business.Core.Interfaces.Common.Localization;using Grand.Business.Core.Interfaces.Common.Logging;using Grand.Domain.Common;using Grand.Domain.Customers;@@ -22,7 +21,6 @@ namespace Grand.Business.Checkout.Services.Shipping#region Fieldsprivate readonly ILogger _logger;- private readonly ITranslationService _translationService;private readonly ICountryService _countryService;private readonly IEnumerable<IShippingRateCalculationProvider> _shippingRateCalculationProvider;private readonly ShippingSettings _shippingSettings;@@ -37,14 +35,12 @@ namespace Grand.Business.Checkout.Services.Shipping/// </summary>public ShippingService(ILogger logger,- ITranslationService translationService,ICountryService countryService,IEnumerable<IShippingRateCalculationProvider> shippingRateCalculationProvider,ShippingProviderSettings shippingProviderSettings,ShippingSettings shippingSettings){_logger = logger;- _translationService = translationService;_countryService = countryService;_shippingRateCalculationProvider = shippingRateCalculationProvider;_shippingProviderSettings = shippingProviderSettings;@@ -222,7 +218,7 @@ namespace Grand.Business.Checkout.Services.Shipping//no shipping options loadedif (result.ShippingOptions.Count == 0 && result.Errors.Count == 0)- result.Errors.Add(_translationService.GetResource("Checkout.ShippingOptionCouldNotBeLoaded"));+ result.Errors.Add("Shipping options could not be loaded");return result;}diff --git a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xmlindex 0ea14055d..b6a0365e8 100644--- a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml+++ b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml@@ -12690,9 +12690,6 @@<Resource Name="Checkout.ShippingMethod" Area="Front"><Value>Shipping method</Value></Resource>- <Resource Name="Checkout.ShippingOptionCouldNotBeLoaded" Area="Front">- <Value>Shipping options could not be loaded</Value>- </Resource><Resource Name="Checkout.ShipToThisAddress" Area="Front"><Value>Ship to this address</Value></Resource>