@inherits Dynamicweb.Rendering.RazorTemplateBase>
@foreach (LoopItem orderline in GetLoop("OrderLines")) { var image = "http://" + GetGlobalValue("Global:Request.Host") + "/Admin/Public/GetImage.ashx?width=40&height=30&crop=0&image=" + orderline.GetString("Ecom:Product.ImageSmall.Default.Clean"); @if (orderline.GetString("Ecom:Order:OrderLine.Type") == "0"){ @* Check if a product *@ } else { } } @{ var freight = GetString("Ecom:Order.ShippingFee.PriceWithVATFormatted"); var totalVAT = GetString("Ecom:Order.Price.PriceWithVATFormatted") + " "; var totalNoVAT = GetString("Ecom:Order.Price.PriceWithoutVATFormatted"); var customerCountry = GetString("Ecom:Order.Customer.Country.Code"); var VAT = GetString("Ecom:Order.Price.VATFormatted"); var paymentMethod = GetString("Ecom:Order.PaymentMethod"); var paymentPrice = GetString("Ecom:Order.PaymentFee.PriceFormatted"); }
  Product Quantity Total
@orderline.GetValue("Ecom:Order:OrderLine.ProductName") @if (Dynamicweb.Input.FormatBoolean(orderline.GetValue("Ecom:Order:OrderLine.ProductVariantText"))) {
(@orderline.GetValue("Ecom:Order:OrderLine.ProductVariantText"))
}
@if (orderline.GetString("Ecom:Order:OrderLine.Type") == "0"){ @* Check if a product *@ @orderline.GetValue("Ecom:Order:OrderLine.Quantity") } else {
}
@orderline.GetValue("Ecom:Order:OrderLine.Price.PriceWithoutVATFormatted")
@Translate("Shipping", "Shipping") @freight
@paymentMethod @paymentPrice
@Translate("Price excl. VAT", "Price excl. VAT") @totalNoVAT
@Translate("VAT", "VAT") @VAT
@Translate("Total", "Total") @totalVAT
@{ string CartUrl = "http://" + GetGlobalValue("Global:Request.Host") + "/Default.aspx?AreaID=" + GetGlobalValue("Global:Area.ID") + "&ID=" + @GetGlobalValue("Global:eCommerce.CartPageID") + "&CartCmd=loadorder&LoadingOrderId=" + @GetString("Ecom:Order.ID") + "&LoadingOrderSecret=" + @GetString("Ecom:Order.LoadingOrderSecret"); }
@Translate("Checkout Now", "Checkout Now")