-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UPS and ShipStation plugins break cart #5554
Comments
@Ochapparel please share the detailed log error (admin area > system > log) |
Log level Short message Full message IP address Customer Page URL Referrer URL Created on |
The code fix for this is that GetFixedRateAsync needs to return a Task with result null: return Task.FromResult<decimal?>(null); (Alternately, one could make the method async, but in this case there's no point incurring the async wrapper overhead, and you'd also get warning “This async method lacks 'await' operators and will run synchronously”) This is not limited to the UPS plugin; the ShipStation plugin has the same problem. |
I note that Andrei added this to the Version 4.50 milestone, but I suspect it really should be done in a minor release (e.g. 4.40.2 ;) |
Agreed, this is a big thing and couldn't wait for a whole release cycle. @AndreiMaz please consider a 4.40.2 release @noptools I'll update it locally so i can continue using 4.40 |
Closed #5554 |
@AndreiMaz @skoshelev thanks for the minor release. |
nopCommerce version:
4.40.1
Steps to reproduce the problem:
Install UPS Plugin
Configure it to get rates
Enable Only UPS (turn others off) (/Admin/Shipping/Providers)
Add an item to your cart that requires shipping
Go to Cart
Get the below error:
The UPS Version of GetFixedRateAsync returns null and causes the error (public class UPSComputationMethod)
When I turn "Manual (Fixed or By Weight and By Total)" on the error goes away:
This was tested on a 4.40.1 download on 3/16
The text was updated successfully, but these errors were encountered: