falcon icon indicating copy to clipboard operation
falcon copied to clipboard

🐛 [BUG] - pattern problem in the address form

Open maofree opened this issue 4 months ago • 3 comments

Description

Hi today 4 people had problems to create a new address in the checkout page all reported as an error, an incorrect formatting problem in the text fields. I checked and I think this is due to the pattern attribute present in the form-fields.tpl file of the form_field_item_other block because one told me that the format was not recognized in the city field. perhaps the type of pattern does not consider some particular cases her city was made up of two words. After several attempts I saw that she had managed to create the address. the same error was also reported on another site to be safe I removed this type of attribute the person was recording from a slightly dated Samsung tablet and was using Chrome

1qqq

Here I show an example of an error to understand what it depended on https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_pattern the biggest problem is that they didn't understand the nature of this error, I think it depends on the fact that the title attribute is missing, to indicate the conditions present in the pattern

bye

Node.js version

v18

php version

8.1

OS and it's version

linux

Browsers

Chrome

Required module/theme

theme

Reproduction steps

1. from my PC I don't know how to reproduce the error, but from the error text I understood that it is related to the pattern

Logs

No response

maofree avatar Mar 06 '24 17:03 maofree

Hi @maofree,

unfortunately I need more information. Exactly input value, chrome version for example. W/O this data I am not able to check if that is chrome bug for this particular version or something else 😕. I need to reproduce it to fix it 😞 Are you able to provide more information? Without them I can only close this issue.

Oksydan avatar Mar 06 '24 23:03 Oksydan

Hi unfortunately I have no way to ask these 4 customers for this technical information, I had the opportunity to talk for a few minutes and I was told that he used Chrome and a slightly dated tablet, but Chrome also updates on dated devices. however since this problem appeared on two different sites, I prefer to remove this attribute, however this error notice needs a title to give information on what they are doing wrong in entering the text. since it happens on the most important page of the site, the checkout page, I prefer to reduce any problems

maofree avatar Mar 07 '24 09:03 maofree

Hi yesterday I learned that on a third site a customer had also had the same error when creating an address. However, they are sites with many users, and this problem only occurs with some, so I think it's a compatibility issue

maofree avatar Mar 08 '24 10:03 maofree