You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current implementation does not return transit times for shipping quotes.
I can confirm these changes allow for transit times for both US Domestic and International shipments.
//set request detailsvarrequest=new RateRequest
{Request=new RateRequest_Request
{//used to define the request type//Shop - the server validates the shipment, and returns rates for all UPS products from the ShipFrom to the ShipTo addressesRequestOption="shoptimeintransit",//change from "shop" to "shoptimeintransit"}};
UPSService.cs function private async Task<IEnumerable<ShippingOption>> PrepareShippingOptionsAsync(RateResponse rateResponse) (i updated this as total transit days will be more accurate than businessDays alone, but if there are no rest days, then totalDays is null, so fallback to businessDays)
NopRateClient.cs function public async Task<RateResponse> ProcessRateAsync(RateRequest request)
Change string.Empty to "timeintransit" for the additionalInfo parameter.
nopCommerce version: 4.6+
Current implementation does not return transit times for shipping quotes.
I can confirm these changes allow for transit times for both US Domestic and International shipments.
UPSService.cs
functionprivate async Task<RateRequest> CreateRateRequestAsync(GetShippingOptionRequest shippingOptionRequest, bool saturdayDelivery = false)
:Add this just before
return request;
UPSService.cs
functionprivate async Task<IEnumerable<ShippingOption>> PrepareShippingOptionsAsync(RateResponse rateResponse)
(i updated this as total transit days will be more accurate than businessDays alone, but if there are no rest days, then totalDays is null, so fallback to businessDays)NopRateClient.cs
functionpublic async Task<RateResponse> ProcessRateAsync(RateRequest request)
Change
string.Empty
to"timeintransit"
for the additionalInfo parameter.The text was updated successfully, but these errors were encountered: