Skip to content

Commit 9709959

Browse files
committed
Fixed places where not the localized value of the product short description were displayed
1 parent ad40c42 commit 9709959

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Presentation/SmartStore.Web/Controllers/CatalogController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ protected ProductDetailsModel PrepareProductDetailModel(ProductDetailsModel mode
14741474
model.Name = product.GetLocalized(x => x.Name);
14751475
model.ShowSku = _catalogSettings.ShowProductSku;
14761476
model.Sku = product.Sku;
1477-
model.ShortDescription = product.ShortDescription;
1477+
model.ShortDescription = product.GetLocalized(x => x.ShortDescription);
14781478
model.FullDescription = product.GetLocalized(x => x.FullDescription);
14791479
model.MetaKeywords = product.GetLocalized(x => x.MetaKeywords);
14801480
model.MetaDescription = product.GetLocalized(x => x.MetaDescription);

src/Presentation/SmartStore.Web/Controllers/ShoppingCartController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private ShoppingCartModel.ShoppingCartItemModel PrepareShoppingCartItemModel(Org
227227
VisibleIndividually = product.VisibleIndividually,
228228
Quantity = item.Quantity,
229229
IsShipEnabled = product.IsShipEnabled,
230-
ShortDesc = product.ShortDescription,
230+
ShortDesc = product.GetLocalized(x => x.ShortDescription),
231231
ProductType = product.ProductType,
232232
BasePrice = product.GetBasePriceInfo(_localizationService, _priceFormatter)
233233
};
@@ -393,7 +393,7 @@ private WishlistModel.ShoppingCartItemModel PrepareWishlistCartItemModel(Organiz
393393
ProductName = product.GetLocalized(x => x.Name),
394394
ProductSeName = product.GetSeName(),
395395
Quantity = item.Quantity,
396-
ShortDesc = product.ShortDescription,
396+
ShortDesc = product.GetLocalized(x => x.ShortDescription),
397397
ProductType = product.ProductType,
398398
VisibleIndividually = product.VisibleIndividually
399399
};

0 commit comments

Comments
 (0)