- Posts: 217
- Thank you received: 4
Filter attribute: allow latin extended
- FilipHradil
-
Topic Author
- Offline
Less
More
8 years 1 month ago #298898
by FilipHradil
Filter attribute: allow latin extended was created 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.
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
Replied by nicolas on topic Filter attribute: allow latin extended
Hi,
Change the line:
to:
in the file administrator/components/com_hikashop/classes/filter.php and that should do it.
Change the line:
Code:
if(!preg_match('#^([a-z0-9_-]+ *= *"[\p{L}\p{N}\p{Z} ]+" *)* *$#i', $filter->filter_options['attribute'])){
Code:
if(!preg_match('#^([a-z0-9_-]+ *= *"[^"\\\]+" *)* *$#i', $filter->filter_options['attribute'])){
Please Log in or Create an account to join the conversation.
- FilipHradil
-
Topic Author
- Offline
Less
More
- Posts: 217
- Thank you received: 4
8 years 1 month ago #298943
by FilipHradil
Replied by FilipHradil on topic Filter attribute: allow latin extended
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