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
PrivacyPreference - add model to the request
KrzysztofPajakfd6a80070dab
diff --git a/src/Web/Grand.Web/App_Data/appsettings.json b/src/Web/Grand.Web/App_Data/appsettings.jsonindex 73a5d8eb0..83a5db662 100644--- a/src/Web/Grand.Web/App_Data/appsettings.json+++ b/src/Web/Grand.Web/App_Data/appsettings.json@@ -91,7 +91,7 @@//For developers - more info you can find at https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk///https://github.com/dotnet/roslyn/wiki/Roslyn-Overview- "UseRoslynScripts": false,+ "UseRoslynScripts": true,//Gets or sets a value indicating for default cache time in minutes""DefaultCacheTimeMinutes": 60,@@ -111,7 +111,7 @@"CookieSecurePolicyAlways": false,//Gets or sets a value indicating whether mini profiler should be displayed in public store (used for debugging)- "DisplayMiniProfilerInPublicStore": false,+ "DisplayMiniProfilerInPublicStore": true,"AllowNonAsciiCharInHeaders": true,@@ -123,10 +123,10 @@"LoadAllUrlEntitiesOnStartup": false,/// A value indicating whether to ignore ACL rules- "IgnoreAcl": true,+ "IgnoreAcl": false,//A value indicating whether to ignore "limit per store" rules- "IgnoreStoreLimitations": true,+ "IgnoreStoreLimitations": false,///Enable minimal Progressive Web App."EnableProgressiveWebApp": false,@@ -143,7 +143,7 @@//sample list"SupportedCultures": [ "en-US", "pl" ],//Indicates whether to ignore startup tasks- "IgnoreStartupTasks": false,+ "IgnoreStartupTasks": true,//Enable if you want to clear /Plugins/bin directory on application startup"ClearPluginShadowDirectoryOnStartup": true,//For develop you should enable if you want to copy plugin dll files to directory /Plugins/bin on application startup@@ -157,7 +157,7 @@},//access to the api to web controllers"GrandWebApi": {- "Enabled": false,+ "Enabled": true,"SecretKey": "your private secret key", //at least 16 characters"ValidateIssuer": false,"ValidIssuer": "",@@ -170,8 +170,8 @@},//api for admin"Api": {- "Enabled": false,- "UseSwagger": false,+ "Enabled": true,+ "UseSwagger": true,"SecretKey": "your private secret key", //at least 16 characters"ValidateIssuer": false,"ValidIssuer": "",diff --git a/src/Web/Grand.Web/Controllers/CommonController.cs b/src/Web/Grand.Web/Controllers/CommonController.csindex 49b8a9d0a..8c727d8c9 100644--- a/src/Web/Grand.Web/Controllers/CommonController.cs+++ b/src/Web/Grand.Web/Controllers/CommonController.cs@@ -452,8 +452,9 @@ namespace Grand.Web.Controllersreturn Json(new{- html = await this.RenderPartialViewToString("PrivacyPreference", model, true)- }); ;+ html = await this.RenderPartialViewToString("PrivacyPreference", model, true),+ model = model,+ });}[HttpPost]