We are having the same issue where the shipment details of the package is not set as delivered or the 'Shipment status events ' is not updated/created at all. We are using NopCommerce 4.10 and the DHL Connector is version 1.05
Hello
The new release works as intended. And thank you for the quick response.
The issue is that in our case the CountryCode and PaymentCountryCode is different but the plugin sets the PaymentCode after either the Warehouse location or the Shipping Origin.
Could you make it so the CountryCode and PaymentCountryCode can be different as in:
<CountryCode>DE</CountryCode> where the warehouse/Shipping Origin Address is located
<PaymentCountryCode>CY</PaymentCountryCode> where the DHL Contract is.
Cannot get rates/quotes when on the checkout page so all shipping method are 0 EUR.
Here is a request from the log:
<p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes" xmlns:p2="http://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-req.xsd ">
<GetQuote>
<Request>
<ServiceHeader>
<MessageTime>2020-11-12T19:43:08 00:00</MessageTime>
<MessageReference>319587265e6d4d66b08dfa406bde7ade</MessageReference>
</ServiceHeader>
</Request>
<From>
<CountryCode>DK</CountryCode>
<Postalcode>6310</Postalcode>
<City>Broager</City>
</From>
<BkgDetails>
<PaymentCountryCode>DK</PaymentCountryCode>
<Date>2020-11-12</Date>
<ReadyTime>PT19H43M</ReadyTime>
<DimensionUnit>IN</DimensionUnit>
<WeightUnit>LB</WeightUnit>
<NumberOfPieces>1</NumberOfPieces><Pieces>
<Piece><PieceID>1</PieceID><Height>2</Height><Depth>9</Depth><Width>7</Width><Weight>0.331</Weight></Piece></Pieces>
<PaymentAccountNumber>969901418</PaymentAccountNumber>
<IsDutiable>N</IsDutiable>
<NetworkTypeCode>AL</NetworkTypeCode>
</BkgDetails>
<To>
<CountryCode>AU</CountryCode>
<Postalcode>3073</Postalcode>
<City>RESERVOIR</City>
</To>
</GetQuote>
</p:DCTRequest> And the response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><res:DCTResponse xmlns:res='http://www.dhl.com' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation= 'http://www.dhl.com DCT-Response.xsd'>
<GetQuoteResponse>
<Response>
<ServiceHeader>
<MessageTime>2020-11-12T20:38:32.409+01:00</MessageTime>
<MessageReference>319587265e6d4d66b08dfa406bde7ade</MessageReference>
<SiteID>v62_y793UmOg1f</SiteID>
</ServiceHeader>
</Response>
<BkgDetails>
<OriginServiceArea>
<FacilityCode>GTW</FacilityCode>
<ServiceAreaCode>AAR</ServiceAreaCode>
</OriginServiceArea>
<DestinationServiceArea>
<FacilityCode>MGB</FacilityCode>
<ServiceAreaCode>MEL</ServiceAreaCode>
</DestinationServiceArea>
<QtdShp>
<GlobalProductCode>T</GlobalProductCode>
<LocalProductCode>T</LocalProductCode>
<ProductShortName>EXPRESS 12:00</ProductShortName>
<LocalProductName>EXPRESS 12:00 DOC</LocalProductName>
<NetworkTypeCode>TD</NetworkTypeCode>
<POfferedCustAgreement>N</POfferedCustAgreement>
<TransInd>Y</TransInd>
<PickupDate>2020-11-13</PickupDate>
<PickupCutoffTime>PT17H</PickupCutoffTime>
<BookingTime>PT16H</BookingTime>
<ExchangeRate>0.000</ExchangeRate>
<WeightCharge>0</WeightCharge>
<WeightChargeTax>0.000</WeightChargeTax>
<TotalTransitDays>4</TotalTransitDays>
<PickupPostalLocAddDays>0</PickupPostalLocAddDays>
<DeliveryPostalLocAddDays>2</DeliveryPostalLocAddDays>
<PickupNonDHLCourierCode> </PickupNonDHLCourierCode>
<DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode>
<DeliveryDate>2020-11-19</DeliveryDate>
<DeliveryTime>PT12H</DeliveryTime>
<DimensionalWeight>0.500</DimensionalWeight>
<WeightUnit>KG</WeightUnit>
<PickupDayOfWeekNum>5</PickupDayOfWeekNum>
<DestinationDayOfWeekNum>4</DestinationDayOfWeekNum>
<QtdShpExChrg>
<SpecialServiceType>YK</SpecialServiceType>
<LocalServiceType>YK</LocalServiceType>
<GlobalServiceName>12:00 PREMIUM</GlobalServiceName>
<LocalServiceTypeName>12:00 PREMIUM</LocalServiceTypeName>
<SOffered
I cannot view my old orders because most of them are "Downloadable product" and do NOT have an shipping address. Here is the error stack/log:
Log level:Error
Short message:Nullable object must have a value.
Full message:
System.InvalidOperationException: Nullable object must have a value.
at FoxNetSoft.Plugin.Shipping.DHLConnector.Components.DHLButtonsViewComponent.m629vJC3we(Order , Shipment )
at FoxNetSoft.Plugin.Shipping.DHLConnector.Components.DHLButtonsViewComponent.Invoke(String widgetZone, Object additionalData)
at lambda_method(Closure , Object , Object[] )
at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeSyncCore(ObjectMethodExecutor executor, ViewComponentContext context)
at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context)
at StackExchange.Profiling.Internal.ProfilingViewComponentInvoker.InvokeAsync(ViewComponentContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore.Mvc\Internal\ProfilingViewComponentInvoker.cs:line 30
at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, Object arguments)
at AspNetCore.Areas_Admin_Views_Shared_Components_AdminWidget_Default.ExecuteAsync() in C:\Webs\410.nolimitdronez.com\Areas\Admin\Views\Shared\Components\AdminWidget\Default.cshtml:line 4
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
at Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult.ExecuteAsync(ViewComponentContext context)
at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context)
at StackExchange.Profiling.Internal.ProfilingViewComponentInvoker.InvokeAsync(ViewComponentContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore.Mvc\Internal\ProfilingViewComponentInvoker.cs:line 30
at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCoreAsync(ViewComponentDescriptor descriptor, Object arguments)
at AspNetCore.Areas_Admin_Views_Shared__AdminLayout.<>c__DisplayClass19_0.<<ExecuteAsync>b__1>d.MoveNext() in C:\Webs\410.nolimitdronez.com\Areas\Admin\Views\Shared\_AdminLayout.cshtml:line 204
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync()
at AspNetCore.Areas_Admin_Views_Shared__AdminLayout.ExecuteAsync() in C:\Webs\410.nolimitdronez.com\Areas\Admin\Views\Shared\_AdminLayout.cshtml:line 96
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderLayoutAsync(ViewContext context, ViewBufferTextWriter bodyWriter)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable`1 statusCode)
at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeResultAsync(IActionResult result)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.I