nopSolutions / nopCommerce

ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
https://www.nopcommerce.com
Other
9.21k stars 5.29k forks source link

Avalara tax plugin. Address validation updates State to incorrect region from other countries #7211

Closed RomanovM closed 4 months ago

RomanovM commented 4 months ago

nopCommerce version: 4.70

When validating a street address, the State code is reading the the first matching value from the StateProvince table without regard for what country was specified. This causes the validation to return an incorrect value for the state in many cases.

Example: Florida, abbreviation FL. The validation changes Florida to Flevoland, a province in the Netherlands.

Real world example: For the correct tax calculation we need the most accurate address, so we clarified the address you entered (1 SE 3rd Ave., Suite 1410, Miami, Florida, United States of America, 33131) through the validation system. Do you confirm the use of this updated address (1 Se 3rd Ave Ste 1410, Miami, Flevoland, United States of America, 33131-1726)?

Example: California, abbreviation CA. The validation changes California to Catamarca, a province in Argentina.

We have tried disabling use of the countries for addresses, but that had no effect.

Source: https://github.com/nopSolutions/avalara-plugin-for-nopcommerce/issues/21