Anyone know what I'm doing wrong?
here are the instructions:
One pixel integration for your website.
1. Open or create new file in your theme Themes/../Views/Checkout/Completed.cshtml
2. After row
Html.AddTitleParts(T("PageTitle.Checkout").Text);
add new line
var order = Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Services.Orders.IOrderService>().GetOrderById(Model.OrderId);
3. In the end of above file add
<!--Shareasale-->
<img src="//shareasale.com/[email protected](order.OrderTotal, 2)&[email protected]&transtype=sale&merchantID=[54105]" width="1" height="1" />
Here is the code on my Completed.cshtml
[code]
@model CheckoutCompletedModel
@using Nop.Web.Models.Checkout;
@{
Layout = "~/Views/Shared/_ColumnsOne.cshtml";
//title
Html.AddTitleParts(T("PageTitle.Checkout").Text);
var order = Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Services.Orders.IOrderService>().GetOrderById(Model.OrderId);
}
<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>
<!--Shareasale-->
<img src="//shareasale.com/[email protected](order.OrderTotal, 2)&[email protected]&transtype=sale&merchantID=[myid]" width="1" height="1" />
[/code}