Skip to content

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.

Discount System.NullReferenceException in SubTotal in Shopping Cart x.xx (#492)

Krzysztof Pajakf1e6ce6d5300
diff --git a/src/Business/Grand.Business.Catalog/Startup/StartupApplication.cs b/src/Business/Grand.Business.Catalog/Startup/StartupApplication.cs
index c0cc88f49..738b1ae89 100644
--- a/src/Business/Grand.Business.Catalog/Startup/StartupApplication.cs
+++ b/src/Business/Grand.Business.Catalog/Startup/StartupApplication.cs
@@ -80,7 +80,7 @@ public class StartupApplication : IStartupApplication
{
serviceCollection.AddScoped<IDiscountService, DiscountService>();
serviceCollection.AddScoped<IDiscountValidationService, DiscountValidationService>();
- serviceCollection.AddSingleton<IDiscountProviderLoader, DiscountProviderLoader>();
+ serviceCollection.AddScoped<IDiscountProviderLoader, DiscountProviderLoader>();
}
private void RegisterTaxService(IServiceCollection serviceCollection)