Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Img on detail #1585

Open
wants to merge 2 commits into
base: 3.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public OrderDetailsModel()
public AddressModel ShippingAddress { get; set; }
public string ShippingMethod { get; set; }
public IList<ShipmentBriefModel> Shipments { get; set; }
public string BundleItemImages { get; set; }

public AddressModel BillingAddress { get; set; }

Expand Down
18 changes: 11 additions & 7 deletions src/Presentation/SmartStore.Web/Views/Order/Details.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@
<div class="row mb-3">
<div class="page-title mb-3 col">
<h1 class="h2 mb-0">
@T("Order.OrderDetails")
<small class="text-muted"><small>@Model.OrderNumber</small></small>
</h1>
@T("Order.OrderDetails")
<small class="text-muted"><small>@Model.OrderNumber</small></small>
</h1>
</div>

<div>
<img alt="@Model.BundleItemImage" src="@Model.BundleItemImage" title="@Model.BundleItemImage" />
</div>

<div class="print-buttons col col-auto">
Expand All @@ -25,10 +29,10 @@
</a>
@if (Model.DisplayPdfInvoice)
{
<a href="@Url.Action("print", new { id = Model.Id, pdf = true })" class="btn btn-secondary btn-sm pdf-order-button" rel="nofollow">
<i class="far fa-file-pdf"></i>
<span>@T("Order.GetPDFInvoice")</span>
</a>
<a href="@Url.Action("print", new { id = Model.Id, pdf = true })" class="btn btn-secondary btn-sm pdf-order-button" rel="nofollow">
<i class="far fa-file-pdf"></i>
<span>@T("Order.GetPDFInvoice")</span>
</a>
}
</div>
</div>
Expand Down