@model CheckoutCompletedModel
@using Nop.Web.Models.Checkout;
@using Nop.Core;
@using Nop.Core.Infrastructure;
@using Nop.Core.Domain.Orders;
@{
var _orderService = EngineContext.Current.Resolve<Nop.Services.Orders.IOrderService>();
var order = _orderService.GetOrderById(Model.OrderId);
}
@{
Layout = "~/Views/Shared/_ColumnsOne.cshtml";
//title
Html.AddTitleParts(T("PageTitle.Checkout").Text);
}
<div class="page checkout-page">
@if (!Model.OnePageCheckoutEnabled)
{
@Html.Action("CheckoutProgress", "Checkout", new { step = CheckoutProgressStep.Complete })
}
<div class="page-title">
<h1>@T("Checkout.ThankYou")</h1>
</div>
<div class="page-body checkout-data">
@Html.Widget("checkout_completed_top")
<div class="section order-completed">
<div class="title">
<strong>@T("Checkout.YourOrderHasBeenSuccessfullyProcessed")</strong>
</div>
<ul class="details">
<li>
@T("Checkout.OrderNumber"): @Model.OrderId
</li>
<li>
<a href="@Url.RouteUrl("OrderDetails", new { orderID = Model.OrderId })">@T("Checkout.PlacedOrderDetails")</a>
</li>
</ul>
<div class="buttons">
<input type="button" value="@T("Checkout.ThankYou.Continue")" class="button-2 order-completed-continue-button" onclick="setLocation('@Url.RouteUrl("HomePage")')" />
</div>
</div>
@Html.Widget("checkout_completed_bottom")
</div>
</div>
<iframe width="119" height="22" frameborder="0" scrolling="no" src="http://any.server.com/checkConversion?c=123456789&[email protected]"></iframe>
But in version 3.80 does not work - it says error:
\Views\Checkout\Completed.cshtml(46): error CS0103: The name 'order' does not exist in the current context.