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

#   Filter accepts a quote but admin form.php does not

##

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

Less More

- Posts: 69
- Thank you received: 1
-
-
-
-

11 years 4 months ago [\#206668](#206668) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#206668 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")* was created by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.25

Hi,

I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).

In my case the quote mark is a single quote used to represent inches.. so for example 14" for 14 inches

Here is a screen shot of the filter value
[ prntscr.com/7mqkaj](http://prntscr.com/7mqkaj)

Here is one of my products (the center one) after I selected 14" in admin product/form.php and saved it
Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)
[ prntscr.com/7mql2t](http://prntscr.com/7mql2t)

Please advise how to fix this.

Thanks,

Dennis

---

\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Dennis Kmetz

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3Nzg1MS1maWx0ZXItYWNjZXB0cy1hLXF1b3RlLWJ1dC1hZG1pbi1mb3JtLXBocC1kb2VzLW5vdD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

11 years 4 months ago [\#207240](#207240) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#207240 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")*

Hi,

Thank you for your feedback.
Add the line:
$oneValue = htmlentities($oneValue, ENT_COMPAT, 'UTF-8');
before the line:
$checked .= ((is_string($value) &amp;&amp; $oneValue === $value) &#124;&#124; is_array($value) &amp;&amp; in_array($oneValue,$value)) ? 'checked="checked" ' : '';
in the file administrator/components/com_hikashop/classes/field.php
That should fix the problem.

The following user(s) said Thank You: [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")

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

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

Less More

- Posts: 69
- Thank you received: 1
-
-
-
-

11 years 4 months ago [\#207542](#207542) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  Replied by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")* on topic *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#207542 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")*

Nicolas,

This worked... thank you! Will this fix be in a future lease? If so, do you know which release?

Thanks again,

Dwennis

---

\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Dennis Kmetz

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

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

Less More

- Posts: 69
- Thank you received: 1
-
-
-
-

11 years 4 months ago [\#207556](#207556) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  Replied by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")* on topic *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#207556 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")*

Nicolas,

I am having the exact same issue... but now with the ® (as in Kevlar®) and the ™ and the ² (as in 10 oz/yd²) symbols... the fix for the double quote works just fine.

Dennis

---

\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Dennis Kmetz

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 4 months ago -  11 years 4 months ago [\#207545](#207545) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#207545 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")*

The fix will be in the next version of HikaShop.

Thanks to stop using special characters in values. You're not supposed to do that. You should put the special characters only in the title of your custom field values and keep a simple value. Then, it will work just fine and it won't look any different to what you have.

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 11 years 4 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 69
- Thank you received: 1
-
-
-
-

11 years 4 months ago [\#207566](#207566) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  Replied by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")* on topic *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#207566 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")*

Hmmm...
Not really the answer I was looking for... and not consistent with your last reply.

Remember... data needs to have integrity both on import AND on export.

Dennis

---

\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Dennis Kmetz

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3Nzg1MS1maWx0ZXItYWNjZXB0cy1hLXF1b3RlLWJ1dC1hZG1pbi1mb3JtLXBocC1kb2VzLW5vdD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

11 years 4 months ago [\#207611](#207611) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#207611 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")*

Hi,

I don't see why that would be a problem with the import/export or with my previous answer.
When you have a value with a different title, the value is used for the export/import and the storing in the database. The title is only used for the display on the website.

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

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

Less More

- Posts: 69
- Thank you received: 1
-
-
-
-

11 years 4 months ago [\#207651](#207651) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  Replied by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")* on topic *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#207651 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")*

Nicolas,

Thank you for your prompt reply... here is my situation. I have data imported and the data has values that get changed via a product save... and thus do not work as filters... here is why:

Take for example a product with a custom field that has the double quote used for inches... my data has a value of 14" in it and that did not work, because when I saved that item using the admin from.php, that item stripped out the inch mark for that item/product. Now when I search for 14" I do not see that product... before I saved that product, I did. Also, I use that value elsewhere for display... and now all the other items have 14" displayed, but that item was saved has 14 displayed. BUT you fixed this for me by making a change to the field.php class.

I have other fields like this one... with other special characters... and need to be able to have them fixed, as you did for the inch mare, for example:

FIELD TITLE - FIELD VALUE
Fabric Weight - 10 oz/yd²

When I go to a product... and do nothing but save the product, the Fabric Weight field becomes null and is no longer displayed on the front end... and of course I now have a product that I cannot find using this value as the filter.

You recognized this as an issue for the inch symbol... why would the ® (as in Kevlar®) and the ™ and the ² (as in 10 oz/yd²) symbols be any different?

How can I import a value of 10 oz/yd² and keep it un-altered after a product save?
What am I missing?

Dennis

---

\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Dennis Kmetz

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

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

Less More

- Posts: 69
- Thank you received: 1
-
-
-
-

11 years 4 months ago [\#207774](#207774) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  Replied by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")* on topic *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#207774 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")*

The ampersand and the comma also do not work

---

\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Dennis Kmetz

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

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

Less More

- Posts: 69
- Thank you received: 1
-
-
-
-

11 years 4 months ago [\#208001](#208001) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  Replied by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")* on topic *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#208001 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")*

Nicolas,

Can you let me know the status of this request.

Thanks,

Dennis

---

\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Dennis Kmetz

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#215366](#215366) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Filter accepts a quote but admin form.php does not](/forum/45-filters-search/877851-filter-accepts-a-quote-but-admin-form-php-does-not#215366 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.25  Hi,  I have a radio button custom field being used as a filter. When the filter value of the field has a double quote in it, the admin product/form.php form does not recognize the value, and when that value is selected and saved, the form removes the quote mark from the value (the value with the quote mare was placed there via an import).  In my case the quote mark is a single quote used to represent inches.. so for example 14&quot; for 14 inches  Here is a screen shot of the filter value   prntscr.com/7mqkaj  Here is one of my products (the center one) after I selected 14&quot; in admin product/form.php and saved it Notice that the inch mark... the double quote, has been deleted from this produce (it was there prior... but did not show as selected in the admin form)   prntscr.com/7mql2t  Please advise how to fix this.  Thanks,  Dennis")*

Hi,

Like I wrote in the post #207545 ; you should not use complexe values for the custom fields.
The goal of the value is to be just a value and you can put the text you want for the label.
But if you want something which work fine ; you must keep the value as simple as possible.

Filters are using the values of the custom fields, so when you have a "dropdown" field, it will list all values and generate the filters. And still, it will use the value as internal value with the label as the customer display information.
That is the correct way to use custom fields and use them with filters.

If you use complexe values with special characters, I understand that you will face issues when submitting the filter.
I also understand that you do not appreciate my answer but the current structure of the fields with the different elements which secure the fields values ; you just can't.. I'm sorry but that's not my fault, I'm just the messenger.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3Nzg1MS1maWx0ZXItYWNjZXB0cy1hLXF1b3RlLWJ1dC1hZG1pbi1mb3JtLXBocC1kb2VzLW5vdD90bXBsPW1hcmtkb3du) 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.077 seconds

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