[Skip to main content](#vessel-content)

#   Custom Field - Checkbox with special characters not selecte

##

- **[sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")**
- [![sandvalley2019's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile") Topic Author
- [ Offline](/forum/user/58125-sandvalley2019)

Less More

- Posts: 34
- Thank you received: 1
-
-
-

7 years 6 months ago [\#306219](#306219) by [sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")  *[Custom Field - Checkbox with special characters not selecte](/forum/3-bug-report/897403-custom-field-checkbox-with-special-characters-not-selecte#306219 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.1.25 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : No error message but functional problem  Hi,  I have noticed that custom fields of a product and that have the type checbox that have a value with a special character (like ë of á ) can not be saved . If you save the product and reopen it again the selection of the value is gone.  Best regards, Peter")* was created by *[sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")*

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.1.25
-- Browser(s) name and version -- : all browsers
-- Error-message(debug-mod must be tuned on) -- : No error message but functional problem

Hi,

I have noticed that **custom fields** of a product and that have the type **checbox** that have a value with a special character (like ë of á ) can not be saved . If you save the product and reopen it again the selection of the value is gone.

Best regards,
Peter

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTc0MDMtY3VzdG9tLWZpZWxkLWNoZWNrYm94LXdpdGgtc3BlY2lhbC1jaGFyYWN0ZXJzLW5vdC1zZWxlY3RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

7 years 6 months ago [\#306223](#306223) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom Field - Checkbox with special characters not selecte](/forum/3-bug-report/897403-custom-field-checkbox-with-special-characters-not-selecte#306223 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.1.25 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : No error message but functional problem  Hi,  I have noticed that custom fields of a product and that have the type checbox that have a value with a special character (like ë of á ) can not be saved . If you save the product and reopen it again the selection of the value is gone.  Best regards, Peter")*

Hi,

Thank you for your feedback.
Change the line:
$v = (string)$v;
to:
$v = (string)htmlentities($v, ENT_COMPAT, 'UTF-8');
in the file administrator/components/com_hikashop/classes/field.php and that should fix the problem.
Let us know how it goes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTc0MDMtY3VzdG9tLWZpZWxkLWNoZWNrYm94LXdpdGgtc3BlY2lhbC1jaGFyYWN0ZXJzLW5vdC1zZWxlY3RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")**
- [![sandvalley2019's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile") Topic Author
- [ Offline](/forum/user/58125-sandvalley2019)

Less More

- Posts: 34
- Thank you received: 1
-
-
-

7 years 6 months ago [\#306295](#306295) by [sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")  Replied by *[sandvalley2019](/forum/user/58125-sandvalley2019 "View sandvalley2019's Profile")* on topic *[Custom Field - Checkbox with special characters not selecte](/forum/3-bug-report/897403-custom-field-checkbox-with-special-characters-not-selecte#306295 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.1.25 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : No error message but functional problem  Hi,  I have noticed that custom fields of a product and that have the type checbox that have a value with a special character (like ë of á ) can not be saved . If you save the product and reopen it again the selection of the value is gone.  Best regards, Peter")*

Hi,

Thanks for the bugfix. It works fine!
Will it be in the next version of Hikashop or should I replace field.php again in the next update?

Regards,
Peter

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTc0MDMtY3VzdG9tLWZpZWxkLWNoZWNrYm94LXdpdGgtc3BlY2lhbC1jaGFyYWN0ZXJzLW5vdC1zZWxlY3RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

7 years 6 months ago [\#306297](#306297) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Custom Field - Checkbox with special characters not selecte](/forum/3-bug-report/897403-custom-field-checkbox-with-special-characters-not-selecte#306297 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.1.25 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : No error message but functional problem  Hi,  I have noticed that custom fields of a product and that have the type checbox that have a value with a special character (like ë of á ) can not be saved . If you save the product and reopen it again the selection of the value is gone.  Best regards, Peter")*

Hello,

Yes, but before this we were waiting news from you before add it to our code, now we can tell you that this will be in our next release !
So, thanks for your return.

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTc0MDMtY3VzdG9tLWZpZWxkLWNoZWNrYm94LXdpdGgtc3BlY2lhbC1jaGFyYWN0ZXJzLW5vdC1zZWxlY3RlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
