I am trying to setup the Sales tax in Drupal Commerce 8.x.2.16 (Drupal Core 8.8.1). I remember that previously when the United State is selected in the Territory list, a selection list of States will show up. It does not seem to work now. Has the behavior been changed? How do I setup the state sales tax, specifically for California? Through using the Zip Codes? Appreciate any comments and suggestions.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff-4-5.txt | 465 bytes | czigor |
| #5 | address-3105484-zone_bug-5-ONLY_TESTS.patch | 2.85 KB | czigor |
| #5 | address-3105484-zone_bug-5.patch | 3.44 KB | czigor |
| #3 | address-3105484-zone_bug-3-ONLY_TEST.patch | 2.86 KB | czigor |
Comments
Comment #2
czigor commentedI can confirm the bug exists using the latest commerce and address dev. Might also be an address bug.
Comment #3
czigor commentedThis seems to be a regression from https://git.drupalcode.org/project/address/commit/d78ba8f from June. It's weird that it's been noticed only now.
Comment #4
czigor commentedFixing some code comments.
Comment #5
czigor commentedFix tests.
Comment #6
Bao Ha commentedIt works after I applied the patches in the "address-3105484-zone_bug-5.patch" file. The dropped down list of states shows up again when United States is selected as the territory. Thank you!
Comment #7
bojanz commentedBetter title.
Comment #9
bojanz commentedExpanded the test and committed. Thanks, czigor!
Comment #10
playful commentedI updated to the latest version of address (8.x-1.8) yesterday and am now having this problem. Several countries such as United States and Mexico don't load state or city fields when selected and produce the below error. The same error occurs when trying to edit any previously created nodes for which the address field country was set to United States, Mexico, etc.
The only other patch I have applied is this one: https://www.drupal.org/project/address/issues/2857593
Comment #11
bojanz commented@playful
That's not caused by this issue. You didn't update Address properly so now your module and library are out of sync (library is behind the module). You need to use composer update --with-dependencies
Comment #12
playful commentedSilly me... thank you, bojanz!