Skip to content

Commit 0879a99

Browse files
committed
Resolves smartstore#436 Make %Order.Product(s)% token to display a product thumbnail
1 parent 2239e2a commit 0879a99

6 files changed

Lines changed: 140 additions & 41 deletions

File tree

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* #800 Multi-store: Option to display all orders of all stores for customer in frontend
3838
* #457 Added option to hide the default image for categories and products
3939
* #451 Add message token for product shipping surcharge
40-
* #436 Make %Order.Product(s)% token to link the product detail page
40+
* #436 Make %Order.Product(s)% token to link the product detail page and a add product thumbnail
4141

4242
### Improvements
4343
* (Perf) Implemented static caches for URL aliases and localized properties. Increases app startup and request speed by up to 30%.

src/Libraries/SmartStore.Core/Domain/Media/MediaSettings.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-

2-
using SmartStore.Core.Configuration;
1+
using SmartStore.Core.Configuration;
32

43
namespace SmartStore.Core.Domain.Media
54
{
@@ -11,6 +10,7 @@ public MediaSettings()
1110
ProductThumbPictureSize = 100;
1211
ProductDetailsPictureSize = 300;
1312
ProductThumbPictureSizeOnProductDetailsPage = 70;
13+
MessageProductThumbPictureSize = 70;
1414
AssociatedProductPictureSize = 125;
1515
BundledProductPictureSize = 70;
1616
CategoryThumbPictureSize = 125;
@@ -30,16 +30,17 @@ public MediaSettings()
3030
public int ProductThumbPictureSize { get; set; }
3131
public int ProductDetailsPictureSize { get; set; }
3232
public int ProductThumbPictureSizeOnProductDetailsPage { get; set; }
33-
public int AssociatedProductPictureSize { get; set; }
33+
public int MessageProductThumbPictureSize { get; set; }
34+
public int AssociatedProductPictureSize { get; set; }
3435
public int BundledProductPictureSize { get; set; }
35-
public int CategoryThumbPictureSize { get; set; }
36+
public int CategoryThumbPictureSize { get; set; }
3637
public int ManufacturerThumbPictureSize { get; set; }
3738
public int CartThumbPictureSize { get; set; }
3839
public int CartThumbBundleItemPictureSize { get; set; }
3940
public int MiniCartThumbPictureSize { get; set; }
4041
public int AutoCompleteSearchThumbPictureSize { get; set; }
4142

42-
public bool DefaultPictureZoomEnabled { get; set; }
43+
public bool DefaultPictureZoomEnabled { get; set; }
4344
public string PictureZoomType { get; set; }
4445

4546
public int MaximumImageSize { get; set; }

src/Libraries/SmartStore.Data/Migrations/201512151526290_ImportFramework.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,15 +360,21 @@ public void MigrateLocaleResources(LocaleResourcesBuilder builder)
360360

361361
builder.AddOrUpdate("Admin.Configuration.Settings.Catalog.HideCategoryDefaultPictures",
362362
"Hide default picture for categories",
363-
"Kein Standardbild bei Warengruppen",
363+
"Standardbild bei Warengruppen ausblenden",
364364
"Specifies whether to hide the default image for categories. The default image is shown when no image is assigned to a category.",
365365
"Legt fest, ob das Standardbild bei Warengruppen ausgeblendet werden soll. Das Standardbild wird angezeigt, wenn der Warengruppe kein Bild zugeordnet ist.");
366366

367367
builder.AddOrUpdate("Admin.Configuration.Settings.Catalog.HideProductDefaultPictures",
368368
"Hide default picture for products",
369-
"Kein Standardbild bei Produkten",
369+
"Standardbild bei Produkten ausblenden",
370370
"Specifies whether to hide the default image for products. The default image is shown when no image is assigned to a product.",
371371
"Legt fest, ob das Standardbild bei Produkten ausgeblendet werden soll. Das Standardbild wird angezeigt, wenn dem Produkt kein Bild zugeordnet ist.");
372+
373+
builder.AddOrUpdate("Admin.Configuration.Settings.Media.MessageProductThumbPictureSize",
374+
"Thumbnail size of products in emails",
375+
"Thumbnail-Größe von Produkten in E-Mails",
376+
"Specifies the thumbnail image size (pixels) of products in emails. Enter 0 to not display thumbnails.",
377+
"Legt die Thumbnail-Bildgröße (in Pixel) von Produkten in E-Mails fest. Geben Sie 0 ein, um keine Thumbnails anzuzeigen.");
372378
}
373379
}
374380
}

0 commit comments

Comments
 (0)