Specifically, I need to find:
1. Order Shipping Method
2. Ordered Items
3. Order Shipping Address (The State in the United States)
I was able to obtain these values from the PdfService.cs, utilizing the following approach:
string shipMet = order.ShippingMethod;
var orderItems = _orderService.GetOrderItems(order.Id, vendorId: vendorId);
Address orderAddress(Order o) => _addressService.GetAddressById((o.PickupInStore ? o.PickupAddressId : o.ShippingAddressId) ?? 0);
string shipAdd = _stateProvinceService.GetStateProvinceByAddress(orderAddress(order)) is StateProvince shippingStateProvince ? _localizationService.GetLocalized(shippingStateProvince, x => x.Name) : string.Empty;
I would like to repeat the steps in the OrderTotalCalculationService.cs -> GetShoppingCartSubTotal() method. How do I do that please?