Skip to content

Commit 828c063

Browse files
minor fixes
1 parent 3a1aaea commit 828c063

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* PayPal Express: corrected basket transmission by eliminating tax transmission
3535
* Fixed password recovery redirection
3636
* #552 Left navbar should stay expanded on product detail pages
37-
* #538 Spcification attribute labels in product filter mask are not displayed localized
37+
* #538 Specification attribute labels in product filter mask are not displayed localized
3838
* #540 AmazonPay: Multistore configuration might be lost if "All stores" are left empty
3939
* #532 AmazonPay: Reflect refunds made at amazon seller central when using data polling
4040
* #577 Exception thrown because of missing TaxRate table when opening tax by region provider configuration

src/Libraries/SmartStore.Core/Domain/Catalog/CatalogSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public CatalogSettings()
4949
ShowVariantCombinationPriceAdjustment = true;
5050
ShowLinkedAttributeValueImage = true;
5151
EnableDynamicPriceUpdate = true;
52+
ShowProductReviewsInProductDetail = true;
5253
HtmlTextCollapsedHeight = 260;
5354
MostRecentlyUsedCategoriesMaxSize = 6;
5455
}

src/Presentation/SmartStore.Web/Administration/Controllers/ProductController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2940,7 +2940,7 @@ protected void PreparePrintableProductsModel(PrintableProductsModel model, IList
29402940
var pictures = _pictureService.GetPicturesByProductId(product.Id);
29412941
if (pictures.Count > 0)
29422942
{
2943-
productModel.PictureUrl = _pictureService.GetPictureUrl(pictures[0].Id, 500, false);
2943+
productModel.PictureUrl = _pictureService.GetPictureUrl(pictures[0].Id, 0, false);
29442944
}
29452945

29462946
productModel.ProductType = product.ProductType;
@@ -2960,7 +2960,7 @@ protected void PreparePrintableProductsModel(PrintableProductsModel model, IList
29602960
var pictureUrl = String.Empty;
29612961
if (picture != null)
29622962
{
2963-
pictureUrl = _pictureService.GetPictureUrl(picture.PictureId, 80, false);
2963+
pictureUrl = _pictureService.GetPictureUrl(picture.PictureId, 75, false);
29642964
}
29652965

29662966
productModel.AssociatedProducts.Add(new PrintableProductModel
@@ -2984,7 +2984,7 @@ protected void PreparePrintableProductsModel(PrintableProductsModel model, IList
29842984
var pictureUrl = String.Empty;
29852985
if (picture != null)
29862986
{
2987-
pictureUrl = _pictureService.GetPictureUrl(picture.PictureId, 80, false);
2987+
pictureUrl = _pictureService.GetPictureUrl(picture.PictureId, 75, false);
29882988
}
29892989

29902990
productModel.BundledItems.Add(new PrintableProductModel()

src/Presentation/SmartStore.Web/Administration/Views/Product/PdfCatalog.Print.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
@if (product.PictureUrl.HasValue())
107107
{
108-
<div class="text-center margin-top-50">
108+
<div class="text-center margin-top-50 detail-picture">
109109
<img src="@product.PictureUrl" />
110110
</div>
111111
}

src/Presentation/SmartStore.Web/Content/print.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,7 @@ th, td {
310310
.container {
311311
height: 100% !important;
312312
}
313+
.detail-picture img {
314+
max-width: 500px !important;
315+
max-height: 500px !important;
316+
}

0 commit comments

Comments
 (0)