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
Expected behavior - error/warning messages from shipping providers should be displayed
Actual behavior - if a shipping provider plugin returns any errors, they are ignored
Steps to reproduce the problem
Select "Estimate Shipping" button on the cart page. The dialog pops up.
Enter address information
If the shipping provider plugin reports any errors (like UPS indicating invalid address, or Shipping Director's Error/ErrorExit rule returning a warning message like "call for shipping"), they are not displayed.
(Note that if you blank out the zip/postal code field, you do see an error message for "Zip / postal code is required", so the dialog does support the display of messages)
The code does not look right. Only when 'Success' is true does it enter the block where Warnings are set:
publicvirtual EstimateShippingResultModel PrepareEstimateShippingResultModel(...)
...
var getShippingOptionResponse = _shippingService.GetShippingOptions(...);if(getShippingOptionResponse.Success){if(getShippingOptionResponse.ShippingOptions.Any()){foreach(var shippingOption in getShippingOptionResponse.ShippingOptions){...}}elseforeach(var error in getShippingOptionResponse.Errors)
model.Warnings.Add(error);}
(Note that if you blank out the zip/postal code field, you do see an error message for "Zip / postal code is required", so the dialog does support the display of messages)
The code does not look right. Only when 'Success' is true does it enter the block where Warnings are set:
\Presentation\Nop.Web\Factories\ShoppingCartModelFactory.cs
see also: https://www.nopcommerce.com/en/boards/topic/84921/estimate-shipping-on-cart-page-for-430-shipping-provider-warnings-not-displayed
The text was updated successfully, but these errors were encountered: