nopCommerce: 4.90.8
UPS plugin: 4.90.3
Server: Linux
When using German as the storefront language, the UPS plugin calculates an incorrect ShipmentTotalWeight.
Steps to reproduce:
- Set a product’s weight to 2 kg.
- Select “Pack by one item per package”.
- Add one unit to the cart.
- Request shipping rates with German selected as the storefront language.
The request contains:
- PackageWeight.Weight: "2.00" KGS
- ShipmentTotalWeight.Weight: "200.00" KGS
UPS returns:
111547: Weight is out of allowable range.
With English selected, both values are correctly sent as "2.00" and the request succeeds.
The likely cause is decimal.TryParse using the current culture when reading package weights that were formatted using InvariantCulture.
Expected behavior:
Use culture-independent parsing when calculating ShipmentTotalWeight, so shipping rates work regardless of storefront language.
Related: #8065 fixed InvoiceLineTotal, but the total-weight calculation appears to have a similar culture issue.
nopCommerce: 4.90.8
UPS plugin: 4.90.3
Server: Linux
When using German as the storefront language, the UPS plugin calculates an incorrect ShipmentTotalWeight.
Steps to reproduce:
The request contains:
UPS returns:
111547: Weight is out of allowable range.
With English selected, both values are correctly sent as "2.00" and the request succeeds.
The likely cause is decimal.TryParse using the current culture when reading package weights that were formatted using InvariantCulture.
Expected behavior:
Use culture-independent parsing when calculating ShipmentTotalWeight, so shipping rates work regardless of storefront language.
Related: #8065 fixed InvoiceLineTotal, but the total-weight calculation appears to have a similar culture issue.