Skip to main content

Characters

More
3 years 11 months ago #345945 by mohairbears
Characters was created by mohairbears
-- HikaShop version -- : 4.6.2
-- Joomla version -- : 4.2.2.
-- PHP version -- : 8

Hi, Please see attached. I have updated to your new version and I am now getting foreign characters appearing in the address which did not appear before, this is a regular customer.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #345946 by nicolas
Replied by nicolas on topic Characters
Hi,

I don't see the problem. That's just the name of the person. Since he lives in Taiwan, his name is in Chinese characters. And HikaShop properly supports non-latin characters.
It's just that this person decided to enter his name in hanzi (the chinese characters) instead of using the pinyin romanization ( en.wikipedia.org/wiki/Pinyin ), which is less common there.
It has nothing to do with the update. It was always possible to use hanzi in the address fields in the past too.
If you don't want that, then you can use the "regular expression" field of the custom fields to only allow latin characters.
dev.to/tillsanders/let-s-stop-using-a-za-z-4a0m
Now, it's quite tricky, because with a simple regular expression like
Code:
[a-zA-Z0-9 \-]+
, you won't accept accented characters like é è à ù, etc which are quite common in many countries using latin letters.

On our website, we do have people entering their name and address in their own language regularly, and we're perfectly fine with that.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #345955 by mohairbears
Replied by mohairbears on topic Characters
Hi, I think you may have missed the point that this is a regular customer who last bought 3 weeks ago and the name was in latin characters, since the last order, Hikashop was updated?

I have now also found an order that has gone through with 2 mandatory field not being populated? Telephone number (which is a must have for the courier) and County (came through as NULL?) this is vital for UK shipping due to different prices being charged around the UK

Updated to 4.6.2 end of last week.

Rgds

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #345956 by mohairbears
Replied by mohairbears on topic Characters
Think I may have found the answer. Recently switched to PayPal Express and the switch 'Address Override' was set to yes? now charged it to No and will see if that changes anything.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #345961 by nicolas
Replied by nicolas on topic Characters
Hi,

Ah yes, with PayPal Express, it's possible to use the address coming from PayPal instead of the address of the user in the shop. That's really useful when you allow the user to do the whole checkout on PayPal since in that case, you don't have any address on the HikaShop side.
The following user(s) said Thank You: mohairbears

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds
Powered by Kunena Forum