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
Fix - Category navigation ignores store limitation #79
KrzysztofPajak3c71c1780934
diff --git a/src/Web/Grand.Web/Features/Handlers/Catalog/GetCategorySimpleHandler.cs b/src/Web/Grand.Web/Features/Handlers/Catalog/GetCategorySimpleHandler.csindex fc8ac90a0..e08b0b9e9 100644--- a/src/Web/Grand.Web/Features/Handlers/Catalog/GetCategorySimpleHandler.cs+++ b/src/Web/Grand.Web/Features/Handlers/Catalog/GetCategorySimpleHandler.cs@@ -66,7 +66,7 @@ namespace Grand.Web.Features.Handlers.Catalogasync Task PrepareCategories(string categoryId){- var parentCategories = await _categoryService.GetAllCategories(parentId: categoryId);+ var parentCategories = await _categoryService.GetAllCategories(parentId: categoryId, storeId: request.Store.Id);if (parentCategories.Any()){categories.AddRange(parentCategories);@@ -78,7 +78,7 @@ namespace Grand.Web.Features.Handlers.Catalog}if (currentCategory != null){- var currentCategories = await _categoryService.GetAllCategories(parentId: currentCategory.Id);+ var currentCategories = await _categoryService.GetAllCategories(parentId: currentCategory.Id, storeId: request.Store.Id);categories.AddRange(currentCategories);await PrepareCategories(currentCategory.ParentCategoryId);}