Filter attribute: allow latin extended

  • Posts: 217
  • Thank you received: 4
6 years 1 month ago #298898

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 1 month ago #298924

Hi,

Change the line:

if(!preg_match('#^([a-z0-9_-]+ *= *"[\p{L}\p{N}\p{Z} ]+" *)* *$#i', $filter->filter_options['attribute'])){
to:
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.

  • Posts: 217
  • Thank you received: 4
6 years 1 month ago #298943

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.058 seconds
Powered by Kunena Forum