cancel
Showing results for 
Search instead for 
Did you mean: 

State/Province drop down missing during checkout

State/Province drop down missing during checkout

Hi,

 

I have this intermittent problem where the State/Province drop down goes missing for some customers and instead of a drop down, it is shown as a Text Field. Customers are then able to checkout without a province and all the taxes are incorrectly calculated.

 

The page starts off as having the drop down but after a few seconds it turns into a text field.

 

I have had this issue for months now and I have not been able to find a workaround.

Magento ver. 2.4.2

 

Here is the displayed CSS of the text field.

 

<input class="input-text" type="text" data-bind="
value: value,
valueUpdate: 'keyup',
hasFocus: focused,
attr: {
name: inputName,
placeholder: placeholder,
'aria-describedby': getDescriptionId(),
'aria-required': required,
'aria-invalid': error() ? true : 'false',
id: uid,
disabled: disabled
}" name="region" aria-required="true" aria-invalid="false" id="VN7K089">

 

 

6 REPLIES 6

Re: State/Province drop down missing during checkout

Hello @HussainBaig ,

It seems like some this is happening because of some external JS coming from your theme or module, can you share your website link and the steps to reproduce so I can check.

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: State/Province drop down missing during checkout

Our website is aquariumdepot.ca


We are using Porto Theme for Magento (We find this to be a very buggy theme).

You can just add an item to cart and checkout and see.

Regards,

Hussain

Re: State/Province drop down missing during checkout

Hello @HussainBaig ,

seems like some custom work has been done, actually the in few seconds the original state field is hiding and the text field is appearing that's why the validation is not working as expected.

It will require some code investigation.

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: State/Province drop down missing during checkout

We really do not have any custom codes done by ourselves.

We have bought a bunch of extensions and one of them might be causing this error.

Re: State/Province drop down missing during checkout

Hi @HussainBaig ,

appears as though some custom work has been done, really the in couple of moments the first state field is stowing away and the text field is creating the impression that is the reason the approval isn't functioning true to form.

It will require some code examination.

Issue Solved ? Click on 'Praise' and Accept as Solution to urge to compose more responses !

Re: State/Province drop down missing during checkout

We are facing the same issue after upgrading Magento to version 2.4.6. We are also using Porto theme and that is upgraded to their latest version too.

We tried enabling default Magento Luma theme for our store and still can see this issue. So looks like this is a core issue.

We are trying with guest checkout and it shows input for state/province instead a dropdown.

Does anyone know the solution? Any help will be greatly appreciated.