Skip to content

Commit 04db853

Browse files
committed
Theming: product detail > sample downloads
1 parent d70ee65 commit 04db853

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Presentation/SmartStore.Web/Views/Product/Partials/Product.Offer.Actions.Misc.cshtml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
@{
77
var miscActions = new Dictionary<string, RouteValueDictionary>();
88

9+
if (Model.HasSampleDownload)
10+
{
11+
miscActions["sample"] = new RouteValueDictionary(new
12+
{
13+
title = T("Products.DownloadSample").Text,
14+
icon = "fa fa-download",
15+
@class = "action-download-sample",
16+
href = Url.Action("Sample", "Download", new { id = Model.Id })
17+
});
18+
}
19+
920
if (!Model.AddToCart.DisableWishlistButton)
1021
{
1122
miscActions["wishlist"] = new RouteValueDictionary(new

0 commit comments

Comments
 (0)