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">
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.
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
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.
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.
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 !