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.

Add new store settings - VoiceNavigation

KrzysztofPajak6ae180af9d82
diff --git a/src/Business/Grand.Business.System/Services/Installation/InstallDataSettings.cs b/src/Business/Grand.Business.System/Services/Installation/InstallDataSettings.cs
index b794db688..489dd823d 100644
--- a/src/Business/Grand.Business.System/Services/Installation/InstallDataSettings.cs
+++ b/src/Business/Grand.Business.System/Services/Installation/InstallDataSettings.cs
@@ -330,6 +330,7 @@ namespace Grand.Business.System.Services.Installation
InstagramLink = "https://www.instagram.com/grandnode/",
LinkedInLink = "https://www.linkedin.com/company/grandnode.com/",
PinterestLink = "",
+ VoiceNavigation = false,
});
await _settingService.SaveSetting(new LoyaltyPointsSettings {
diff --git a/src/Core/Grand.Domain/Stores/StoreInformationSettings.cs b/src/Core/Grand.Domain/Stores/StoreInformationSettings.cs
index b55ba23a7..4ade2ece1 100644
--- a/src/Core/Grand.Domain/Stores/StoreInformationSettings.cs
+++ b/src/Core/Grand.Domain/Stores/StoreInformationSettings.cs
@@ -67,5 +67,10 @@ namespace Grand.Domain.Stores
/// Gets or sets a value of Pinterest page URL of the site
/// </summary>
public string PinterestLink { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether we enable voice navigation
+ /// </summary>
+ public bool VoiceNavigation { get; set; }
}
}
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Setting/GeneralCommon.TabStoreInformationSettings.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Setting/GeneralCommon.TabStoreInformationSettings.cshtml
index cf4148ca9..d1c4bf0e2 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Setting/GeneralCommon.TabStoreInformationSettings.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Setting/GeneralCommon.TabStoreInformationSettings.cshtml
@@ -204,6 +204,18 @@
<span asp-validation-for="StoreInformationSettings.PinterestLink"></span>
</div>
</div>
+ <div class="form-group">
+ <div class="col-8 col-md-4 col-sm-4 text-right">
+ <admin-label asp-for="StoreInformationSettings.VoiceNavigation" class="control-label" />
+ </div>
+ <div class="col-4 col-md-8 col-sm-8">
+ <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
+ <admin-input asp-for="StoreInformationSettings.VoiceNavigation" />
+ <div class="control__indicator"></div>
+ </label>
+ <span asp-validation-for="StoreInformationSettings.VoiceNavigation"></span>
+ </div>
+ </div>
<div class="form-group">
<div class="col-8 col-md-4 col-sm-4 text-right">
<admin-label asp-for="CommonSettings.StoreInDatabaseContactUsForm" class="control-label" />
diff --git a/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs b/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs
index e39d9463a..861ab0a9b 100644
--- a/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs
+++ b/src/Web/Grand.Web.Admin/Models/Settings/GeneralCommonSettingsModel.cs
@@ -81,7 +81,10 @@ namespace Grand.Web.Admin.Models.Settings
[GrandResourceDisplayName("Admin.Settings.GeneralCommon.PinterestLink")]
public string PinterestLink { get; set; }
-
+
+ [GrandResourceDisplayName("Admin.Settings.GeneralCommon.VoiceNavigation")]
+ public bool VoiceNavigation { get; set; }
+
#region Nested classes
public partial class ThemeConfigurationModel