Dirty Butter Posted May 5, 2018 Share Posted May 5, 2018 If a country does not have any county/states listed in my database and is set as optional - the State box on filling in the Checkout Confirm country SHOULD be blank. Instead it shows a placeholder of "State (Required)". It does allow checkout to proceed even without filling anything in the blank. The Demo Store also shows an extremely faint placeholder of County (Required), even though it allows checkout to continue without filling anything in the box. The Estimate Shipping box correctly shows an empty State box when it should. There may be other places where the (Required) shows, but doesn't make sense to me. Is this a bug? Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 5, 2018 Share Posted May 5, 2018 Probably this: Github issue #1989. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 5, 2018 Author Share Posted May 5, 2018 I actually have this test site on yesterday's 6.2.1 commit. I did run the new upgrade queries. Evidently something is still not working properly? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 6, 2018 Author Share Posted May 6, 2018 (edited) I've double checked my install and find that a customer who fills out the Addressbook gets the correct process. If the state does not have any states listed, the State box is blank. If there are states listed, required or not, it simply offers the available choices. BUT a customer who fills out the addresses from the content.checkout.confirm page (when they choose a product and then fill out address information) gets a different look, with the State (Required) placeholder. I tried to compare the way states were handled in the content.checkout.confirm vs content.addressbook.php files. I noticed this difference: checkout.confirm has var county_list = {$STATE_JSON}; addressbook has var county_list = {$VAL_JSON_STATE} Could it be that checkout.confirm needs the same line as addressbook? Well I tried using the addressbook JSON line in checkout.confirm, and it no longer offered the drop down when it should. So THAT's not it. UGH Edited May 6, 2018 by Dirty Butter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.