bporcelli/simplesalestax

Exemption state field shown as text input

bporcelli opened this issue · 0 comments

The "Where does this exemption apply?" is shown as a text input instead of a dropdown if the shipping country for the WC_Customer is something other than US. This is enabling users to enter invalid values like "Georgia". For example:

Screenshot 2022-08-01 at 11-29-39 Profile ‹ Simple Sales Tax — WordPress

To fix, hard-code the country as US in the args array for the relevant woocommerce_form_field() function call.