Skip to main content

Filter attribute: allow latin extended

8 years 1 month ago #298898 by FilipHradil
-- HikaShop version -- : 4.0.0

Hello,

I am making products search via Filter –> text field.

I need to set up placeholder in the Czech language. The problem is that I cannot enter sign "č" or it's HTML equivalent: č

Even when I fill it via database it doesn't work.


is there any solution or workaround?

I really need to use this char. Thank you very much!

F.

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

8 years 1 month ago #298924 by nicolas
Hi,

Change the line:
Code:
if(!preg_match('#^([a-z0-9_-]+ *= *"[\p{L}\p{N}\p{Z} ]+" *)* *$#i', $filter->filter_options['attribute'])){
to:
Code:
if(!preg_match('#^([a-z0-9_-]+ *= *"[^"\\\]+" *)* *$#i', $filter->filter_options['attribute'])){
in the file administrator/components/com_hikashop/classes/filter.php and that should do it.

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

8 years 1 month ago #298943 by FilipHradil
Thank you very much, Nicolas! It did the job :-).

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

Time to create page: 0.060 seconds
Powered by Kunena Forum