Skip to content

Commit 08ddfa2

Browse files
Injected current order into widget zone
1 parent abcc38c commit 08ddfa2

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/Presentation/SmartStore.Web/Views/Order/Details.Print.cshtml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
var address = order.BillingAddress;
4545

4646
<div class="document">
47-
@Html.Widget("invoice_top")
47+
@Html.Widget("invoice_top", order)
4848

4949
<!-- Address & Info -->
5050
<div class="clearfix" style="margin-bottom: 100px">
@@ -83,7 +83,7 @@
8383
</div>
8484
</div>
8585

86-
@Html.Widget("invoice_orderinfo_top")
86+
@Html.Widget("invoice_orderinfo_top", order)
8787

8888
<div class="order-info text-small pull-right">
8989
<table>
@@ -104,14 +104,14 @@
104104
<td class="value">@order.ShippingMethod</td>
105105
</tr>
106106
</table>
107-
@Html.Widget("invoice_orderinfotable_after")
107+
@Html.Widget("invoice_orderinfotable_after", order)
108108
</div>
109109

110-
@Html.Widget("invoice_orderinfo_bottom")
110+
@Html.Widget("invoice_orderinfo_bottom", order)
111111
</div>
112112

113113
<!-- Order lines -->
114-
@Html.Widget("invoice_lines_before")
114+
@Html.Widget("invoice_lines_before", order)
115115
<h3>@T("PDFInvoice.Product(s)")</h3>
116116

117117
<table class="table order-summary">
@@ -141,7 +141,7 @@
141141
</table>
142142

143143
<!-- Checkout attributes -->
144-
@Html.Widget("invoice_checkoutattributes_before")
144+
@Html.Widget("invoice_checkoutattributes_before", order)
145145
@if (order.CheckoutAttributeInfo.HasValue())
146146
{
147147
<div class="checkout-attributes margin-bottom-30">
@@ -150,7 +150,7 @@
150150
}
151151

152152
<!-- Order totals -->
153-
@Html.Widget("invoice_ordertotals_before")
153+
@Html.Widget("invoice_ordertotals_before", order)
154154
<div class="order-totals clearfix">
155155
<div class="pull-right" style="width: 40%; page-break-inside: avoid">
156156
<table class="table order-totals">
@@ -229,7 +229,7 @@
229229
</div>
230230

231231
<!-- Order notes -->
232-
@Html.Widget("invoice_ordernotes_before")
232+
@Html.Widget("invoice_ordernotes_before", order)
233233
@if (order.RenderOrderNotes && order.OrderNotes.Count > 0)
234234
{
235235
<h3>@T("PDFInvoice.OrderNotes")</h3>
@@ -263,7 +263,7 @@
263263
</div>
264264
}
265265

266-
@Html.Widget("invoice_bottom")
266+
@Html.Widget("invoice_bottom", order)
267267
</div>
268268
}
269269
</div>

0 commit comments

Comments
 (0)