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.

Minor fix for search results

PatrykPorabik95ae5f933648
diff --git a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml
index 4f54585cd..a425696e5 100644
--- a/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml
+++ b/src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml
@@ -15639,6 +15639,9 @@
<Resource Name="search.noresultstextblog">
<Value>No blog posts were found that matched your criteria.</Value>
</Resource>
+ <Resource Name="search.noresultstextbrand">
+ <Value>No brands were found that matched your criteria.</Value>
+ </Resource>
<Resource Name="search.noresultstextcategory">
<Value>No categories were found that matched your criteria.</Value>
</Resource>
diff --git a/src/Web/Grand.Web/Views/Catalog/Search.cshtml b/src/Web/Grand.Web/Views/Catalog/Search.cshtml
index 252e1d6bc..ce54a1b15 100644
--- a/src/Web/Grand.Web/Views/Catalog/Search.cshtml
+++ b/src/Web/Grand.Web/Views/Catalog/Search.cshtml
@@ -133,11 +133,6 @@
</template>
<partial name="_Pagination" />
</template>
- <template v-else>
- <b-alert variant="info" show class="my-3">
- @Loc["search.noresultstext"]
- </b-alert>
- </template>
</div>
@if (!String.IsNullOrEmpty(Model.Warning))
{