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
Issue: Hide price in search auto complete (#462)
tuanv2t500ff6b321b8
diff --git a/src/Web/Grand.Web/Features/Handlers/Catalog/GetSearchAutoCompleteHandler.cs b/src/Web/Grand.Web/Features/Handlers/Catalog/GetSearchAutoCompleteHandler.csindex 72ef3c565..317f3f812 100644--- a/src/Web/Grand.Web/Features/Handlers/Catalog/GetSearchAutoCompleteHandler.cs+++ b/src/Web/Grand.Web/Features/Handlers/Catalog/GetSearchAutoCompleteHandler.cs@@ -126,8 +126,11 @@ namespace Grand.Web.Features.Handlers.CatalogProduct = item,Store = request.Store}, cancellationToken);-- var price = displayPrices ? await PreparePrice(item, request) : (Price: string.Empty, PriceWithDiscount: string.Empty);+++ var displayPricesItem = !item.CallForPrice && displayPrices;++ var price = displayPricesItem ? await PreparePrice(item, request) : (Price: string.Empty, PriceWithDiscount: string.Empty);model.Add(new SearchAutoCompleteModel {SearchType = "Product",