Skip to content

Commit 5aa86cf

Browse files
committed
Fixed GMC feed issue
1 parent 261e9b8 commit 5aa86cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Plugins/SmartStore.GoogleMerchantCenter/Controllers/FeedFroogleController.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using SmartStore.Services.Configuration;
88
using SmartStore.Services.Security;
99
using SmartStore.Web.Framework.Controllers;
10+
using SmartStore.Web.Framework.Plugins;
1011
using Telerik.Web.Mvc;
1112

1213
namespace SmartStore.GoogleMerchantCenter.Controllers
@@ -66,12 +67,12 @@ public ActionResult ProductEditTab(int productId)
6667

6768
var ci = CultureInfo.InvariantCulture;
6869

69-
if (_settings.Gender.HasValue())
70+
if (_settings.Gender.HasValue() && _settings.Gender != PluginHelper.NotSpecified)
7071
{
7172
ViewBag.DefaultGender = T("Plugins.Feed.Froogle.Gender" + ci.TextInfo.ToTitleCase(_settings.Gender));
7273
}
7374

74-
if (_settings.AgeGroup.HasValue())
75+
if (_settings.AgeGroup.HasValue() && _settings.AgeGroup != PluginHelper.NotSpecified)
7576
{
7677
ViewBag.DefaultAgeGroup = T("Plugins.Feed.Froogle.AgeGroup" + ci.TextInfo.ToTitleCase(_settings.AgeGroup));
7778
}

0 commit comments

Comments
 (0)