How to display shipping method in Customer Orders List on front-end (/CustomerOrders.cshtml) ?

7 meses atrás
3.90

I want to display shipping method the list of customer orders in the /CustomerOrders.cshtml

Piece of code from there:
<div class="order-list">
                @foreach (var order in Model.Orders)
                {
                <div class="section order-item">
                    <div class="title">
                        <strong>@T("Account.CustomerOrders.OrderNumber"): @order.CustomOrderNumber</strong>
                    </div>
                    <ul class="info">
                        <li>@T("Account.CustomerOrders.OrderStatus"): <span class="order-status @order.OrderStatusEnum.ToString().ToLowerInvariant()">@order.OrderStatus</span></li>
            <li>@T("Order.Payment.Status"): <span class="order-payment-status">@order.PaymentStatus</span></li>
                        <li>@T("Order.Shipping.Status"): <span class="order-shipping-status">@order.ShippingStatus</span></li>
                        <li>@T("Account.CustomerOrders.OrderDate"): <span class="order-date">@order.CreatedOn.ToString()</span></li>
                        <li>@T("Account.CustomerOrders.OrderTotal"): <span class="order-total">@order.OrderTotal</span></li>
                    </ul>
                    <div class="buttons">
                        @if (order.IsReturnRequestAllowed)
                        {
                            <input type="button" value="@T("Account.CustomerOrders.ReturnItems")" class="button-2 return-items-button" onclick="setLocation('@Url.RouteUrl("ReturnRequest", new { orderId = order.Id })')" />
                        }
                        <input type="button" value="@T("Account.CustomerOrders.OrderDetails")" class="button-2 order-details-button" onclick="setLocation('@Url.RouteUrl("OrderDetails", new { orderId = order.Id })')" />
                    </div>
                </div>
                }
            </div>


Is it possible to do it without touching the source code? If yes, then how? :)

Thank you.
7 meses atrás
It can be done, but it would require resolving services like in this example:
https://www.nopcommerce.com/en/boards/topic/92690/orderdetailsmodel#290850