From dbf7a5d8bab4c6c91772043ca0bc3216c9b50660 Mon Sep 17 00:00:00 2001 From: Marcus Gesing Date: Fri, 18 Apr 2014 11:40:20 +0200 Subject: [PATCH 01/13] #341 Orders are not cancellable --- changelog.md | 1 + .../Administration/Views/Order/Edit.cshtml | 8 +-- .../Order/_ProductAddGiftCardInfo.cshtml | 59 ++++++++++++++++--- 3 files changed, 56 insertions(+), 12 deletions(-) diff --git a/changelog.md b/changelog.md index b9a90c432a..165d9c92fa 100644 --- a/changelog.md +++ b/changelog.md @@ -7,6 +7,7 @@ * #336 Product bundle: Upper add-to-cart button label shows wrong text * #338 Serialization exception thrown when session state mode is _StateServer_ * #340 Admin: Header overlays TinyMCE in fullscreen mode +* #341 Orders are not cancellable ##SmartStore.NET 2.0.1## diff --git a/src/Presentation/SmartStore.Web/Administration/Views/Order/Edit.cshtml b/src/Presentation/SmartStore.Web/Administration/Views/Order/Edit.cshtml index bf6672f058..f31d67010e 100644 --- a/src/Presentation/SmartStore.Web/Administration/Views/Order/Edit.cshtml +++ b/src/Presentation/SmartStore.Web/Administration/Views/Order/Edit.cshtml @@ -186,7 +186,7 @@   @if (Model.CanCancelOrder) { - } @@ -612,7 +612,7 @@ - @@ -1711,7 +1711,7 @@ } - diff --git a/src/Presentation/SmartStore.Web/Administration/Views/Order/_ProductAddGiftCardInfo.cshtml b/src/Presentation/SmartStore.Web/Administration/Views/Order/_ProductAddGiftCardInfo.cshtml index e32718e789..0a5d1e6d40 100644 --- a/src/Presentation/SmartStore.Web/Administration/Views/Order/_ProductAddGiftCardInfo.cshtml +++ b/src/Presentation/SmartStore.Web/Administration/Views/Order/_ProductAddGiftCardInfo.cshtml @@ -2,35 +2,78 @@ @if (Model.IsGiftCard) { //Actually just a copy of \Presentation\SmartStore.Web\Views\Catalog\_GiftCardInfo.cshtml -
-
-
@Html.LabelFor(model => model.RecipientName):
+

 

+
+ +
+ @Html.LabelFor(model => model.RecipientName, new { @class = "control-label required", @for = "RecipientName" }) +
+ @Html.EditorFor(model => model.RecipientName, "BlockInput") +
+
+ + @if (Model.GiftCardType == SmartStore.Core.Domain.Catalog.GiftCardType.Virtual) + { +
+ @Html.LabelFor(model => model.RecipientEmail, new { @class = "control-label required", @for = "RecipientEmail" }) +
+ @Html.EditorFor(model => model.RecipientEmail, "BlockInput") +
+
+ } + +
+ @Html.LabelFor(model => model.SenderName, new { @class = "control-label required", @for = "SenderName" }) +
+ @Html.EditorFor(model => model.SenderName, "BlockInput") +
+
+ + @if (Model.GiftCardType == SmartStore.Core.Domain.Catalog.GiftCardType.Virtual) + { +
+ @Html.LabelFor(model => model.SenderEmail, new { @class = "control-label required", @for = "SenderEmail" }) +
+ @Html.EditorFor(model => model.SenderEmail, "BlockInput") +
+
+ } + +
+ @Html.LabelFor(model => model.Message, new { @class = "control-label", @for = "Message" }) +
+ @Html.TextAreaFor(model => model.Message, new { @class = "message input-block-level" }) +
+
+ + @*
+
@Html.LabelFor(model => model.RecipientName)
@Html.TextBoxFor(model => model.RecipientName)
@if (Model.GiftCardType == SmartStore.Core.Domain.Catalog.GiftCardType.Virtual) { -
@Html.LabelFor(model => model.RecipientEmail):
+
@Html.LabelFor(model => model.RecipientEmail)
@Html.TextBoxFor(model => model.RecipientEmail)
}
- @Html.LabelFor(model => model.SenderName):
+ @Html.LabelFor(model => model.SenderName)
@Html.TextBoxFor(model => model.SenderName)
@if (Model.GiftCardType == SmartStore.Core.Domain.Catalog.GiftCardType.Virtual) { -
@Html.LabelFor(model => model.SenderEmail):
+
@Html.LabelFor(model => model.SenderEmail)
@Html.TextBoxFor(model => model.SenderEmail)
}
- @Html.LabelFor(model => model.Message):
+ @Html.LabelFor(model => model.Message)
@Html.TextAreaFor(model => model.Message, new { style = "Width: 300px; Height: 100px;" })
-
+
*@
} \ No newline at end of file From 081b680714c0ea1424a83b3c06c8aa3369050797 Mon Sep 17 00:00:00 2001 From: Marcus Gesing Date: Fri, 18 Apr 2014 11:47:12 +0200 Subject: [PATCH 02/13] #342 Backend: order total is not editable (see previous commit) --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 165d9c92fa..2e19a5ac17 100644 --- a/changelog.md +++ b/changelog.md @@ -8,6 +8,7 @@ * #338 Serialization exception thrown when session state mode is _StateServer_ * #340 Admin: Header overlays TinyMCE in fullscreen mode * #341 Orders are not cancellable +* #342 Backend: order total is not editable ##SmartStore.NET 2.0.1## From 3be873cd40d3020bf7e80e6891cdd708e20c3523 Mon Sep 17 00:00:00 2001 From: Marcus Gesing Date: Fri, 18 Apr 2014 20:09:22 +0200 Subject: [PATCH 03/13] Fixed a small bug in WorkingLanguage and WorkingCurrency that caused an exception in scheduled promotion feed file generation. --- src/Presentation/SmartStore.Web.Framework/WebWorkContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Presentation/SmartStore.Web.Framework/WebWorkContext.cs b/src/Presentation/SmartStore.Web.Framework/WebWorkContext.cs index cdbd876497..9c33604a3d 100644 --- a/src/Presentation/SmartStore.Web.Framework/WebWorkContext.cs +++ b/src/Presentation/SmartStore.Web.Framework/WebWorkContext.cs @@ -238,7 +238,7 @@ public Language WorkingLanguage } #region Get language from URL (if possible) - if (_localizationSettings.SeoFriendlyUrlsForLanguagesEnabled && _httpContext != null) + if (_localizationSettings.SeoFriendlyUrlsForLanguagesEnabled && _httpContext != null && _httpContext.Request != null) { var helper = new LocalizedUrlHelper(_httpContext.Request, true); string seoCode; @@ -361,7 +361,7 @@ public Currency WorkingCurrency } // find currency by domain ending - if (currency == null) + if (currency == null && _httpContext != null && _httpContext.Request != null && _httpContext.Request.Url != null) { currency = _currencyService .GetAllCurrencies(storeId: _storeContext.CurrentStore.Id) From c9d883a59e53a291d0643a10c4914412017fdbfb Mon Sep 17 00:00:00 2001 From: Marcus Gesing Date: Sat, 19 Apr 2014 10:50:08 +0200 Subject: [PATCH 04/13] Minor changes --- .../Controllers/StoreClosedAttribute.cs | 2 +- .../SmartStore.Web/App_Data/Localization/App/de/all.smres.xml | 2 +- .../SmartStore.Web/App_Data/Localization/App/en/all.smres.xml | 2 +- src/Tests/SmartStore.Web.MVC.Tests/Admin/Readme.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Presentation/SmartStore.Web.Framework/Controllers/StoreClosedAttribute.cs b/src/Presentation/SmartStore.Web.Framework/Controllers/StoreClosedAttribute.cs index e8a1aeb250..5862f17732 100644 --- a/src/Presentation/SmartStore.Web.Framework/Controllers/StoreClosedAttribute.cs +++ b/src/Presentation/SmartStore.Web.Framework/Controllers/StoreClosedAttribute.cs @@ -46,7 +46,7 @@ public override void OnActionExecuting(ActionExecutingContext filterContext) //ensure it's not the store closed page !(controllerName.Equals("SmartStore.Web.Controllers.CommonController", StringComparison.InvariantCultureIgnoreCase) && actionName.Equals("StoreClosed", StringComparison.InvariantCultureIgnoreCase)) && //ensure it's not the change language page (request) - !(controllerName.Equals("Nop.Web.Controllers.CommonController", StringComparison.InvariantCultureIgnoreCase) && actionName.Equals("SetLanguage", StringComparison.InvariantCultureIgnoreCase))) + !(controllerName.Equals("SmartStore.Web.Controllers.CommonController", StringComparison.InvariantCultureIgnoreCase) && actionName.Equals("SetLanguage", StringComparison.InvariantCultureIgnoreCase))) { if (storeInformationSettings.StoreClosedAllowForAdmins && EngineContext.Current.Resolve().CurrentCustomer.IsAdmin()) { diff --git a/src/Presentation/SmartStore.Web/App_Data/Localization/App/de/all.smres.xml b/src/Presentation/SmartStore.Web/App_Data/Localization/App/de/all.smres.xml index e8cd3b9bcb..541db16f8a 100644 --- a/src/Presentation/SmartStore.Web/App_Data/Localization/App/de/all.smres.xml +++ b/src/Presentation/SmartStore.Web/App_Data/Localization/App/de/all.smres.xml @@ -11041,7 +11041,7 @@ Nutzungsvereinbarung - + Datum: älteste zuerst diff --git a/src/Presentation/SmartStore.Web/App_Data/Localization/App/en/all.smres.xml b/src/Presentation/SmartStore.Web/App_Data/Localization/App/en/all.smres.xml index 0747fd8109..600e2ff5fd 100644 --- a/src/Presentation/SmartStore.Web/App_Data/Localization/App/en/all.smres.xml +++ b/src/Presentation/SmartStore.Web/App_Data/Localization/App/en/all.smres.xml @@ -11429,7 +11429,7 @@ User agreement - + Date: Oldest first diff --git a/src/Tests/SmartStore.Web.MVC.Tests/Admin/Readme.txt b/src/Tests/SmartStore.Web.MVC.Tests/Admin/Readme.txt index 2efb122ee7..ec2bb9d84a 100644 --- a/src/Tests/SmartStore.Web.MVC.Tests/Admin/Readme.txt +++ b/src/Tests/SmartStore.Web.MVC.Tests/Admin/Readme.txt @@ -1 +1 @@ -This folder contains tests for Nop.Admin project (admin area) \ No newline at end of file +This folder contains tests for SmartStore.Admin project (admin area) \ No newline at end of file From 1a9893c459f6177e85fa6ebaaec360475060698e Mon Sep 17 00:00:00 2001 From: Marcus Gesing Date: Sat, 19 Apr 2014 17:59:05 +0200 Subject: [PATCH 05/13] Default value for plugin description not loaded into edit popup window --- changelog.md | 1 + .../Administration/Controllers/PluginController.cs | 8 ++++++-- .../SmartStore.Web/Themes/Alpha/Content/site.less | 1 + .../Views/Checkout/OpcPaymentMethods.cshtml | 2 +- .../SmartStore.Web/Views/Checkout/PaymentMethod.cshtml | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 2e19a5ac17..72a575a605 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,7 @@ * #340 Admin: Header overlays TinyMCE in fullscreen mode * #341 Orders are not cancellable * #342 Backend: order total is not editable +* Default value for plugin description not loaded into edit popup window ##SmartStore.NET 2.0.1## diff --git a/src/Presentation/SmartStore.Web/Administration/Controllers/PluginController.cs b/src/Presentation/SmartStore.Web/Administration/Controllers/PluginController.cs index 987081a2fa..b957bed861 100644 --- a/src/Presentation/SmartStore.Web/Administration/Controllers/PluginController.cs +++ b/src/Presentation/SmartStore.Web/Administration/Controllers/PluginController.cs @@ -85,8 +85,12 @@ protected PluginModel PreparePluginModel(PluginDescriptor pluginDescriptor, bool var pluginModel = pluginDescriptor.ToModel(); pluginModel.Group = _localizationService.GetResource("Plugins.KnownGroup." + pluginDescriptor.Group); - pluginModel.FriendlyName = pluginDescriptor.GetLocalizedValue(_localizationService, "FriendlyName", 0, forList); - pluginModel.Description = pluginDescriptor.GetLocalizedValue(_localizationService, "Description", 0, forList); + + if (forList) + { + pluginModel.FriendlyName = pluginDescriptor.GetLocalizedValue(_localizationService, "FriendlyName"); + pluginModel.Description = pluginDescriptor.GetLocalizedValue(_localizationService, "Description"); + } //locales AddLocales(_languageService, pluginModel.Locales, (locale, languageId) => diff --git a/src/Presentation/SmartStore.Web/Themes/Alpha/Content/site.less b/src/Presentation/SmartStore.Web/Themes/Alpha/Content/site.less index 155151f2dd..5140b1c8ad 100644 --- a/src/Presentation/SmartStore.Web/Themes/Alpha/Content/site.less +++ b/src/Presentation/SmartStore.Web/Themes/Alpha/Content/site.less @@ -1093,6 +1093,7 @@ table.cart .cart-item-row .qty-input { .payment-method-desc { display: inline-block; + clear: left; } } .shipping-option-item.odd, diff --git a/src/Presentation/SmartStore.Web/Views/Checkout/OpcPaymentMethods.cshtml b/src/Presentation/SmartStore.Web/Views/Checkout/OpcPaymentMethods.cshtml index 1e1af76faa..c720c4b2fb 100644 --- a/src/Presentation/SmartStore.Web/Views/Checkout/OpcPaymentMethods.cshtml +++ b/src/Presentation/SmartStore.Web/Views/Checkout/OpcPaymentMethods.cshtml @@ -66,7 +66,7 @@ }
-
-
- @if (Model.HideNewsletterBlock) + @if (!Model.HideNewsletterBlock) {