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

#   Filtering of exact text string

##

- **[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
-
-
-
-

12 years 2 months ago [\#168862](#168862) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#168862 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")* was created by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")*

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.4
-- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters

Hi,

I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...

I have a custom field called MATERIAL
MATERIAL contains
Cotton
Cotton Fleece
Cotton Terrycloth
Cotton/Polyester blend

I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products

I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?

Dennis

---

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

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 2 months ago [\#168939](#168939) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#168939 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

Hello Dennis,
Can you give us more information about want you want to do and where do you want to use it through some screenshots for example ?
Thanks ![:)](/media/kunena/emoticons/3.png ":)").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MDYwOS1maWx0ZXJpbmctb2YtZXhhY3QtdGV4dC1zdHJpbmc/dG1wbD1tYXJrZG93bg==) 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
-
-
-
-

12 years 2 months ago [\#169025](#169025) 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 *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#169025 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

Hi Mohamed,

I think I figured it out... I placed the values of the custom field in quotes... AND made Cotton two words... so this works and allows me to filter on the individual items:
"All Cotton"
"Cotton Fleece"
"Cotton Terrycloth"
"Cotton/Polyester blend"

Dennis

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MDYwOS1maWx0ZXJpbmctb2YtZXhhY3QtdGV4dC1zdHJpbmc/dG1wbD1tYXJrZG93bg==) 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
-
-

12 years 2 months ago [\#169041](#169041) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#169041 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

Yes, you need to not have a value inside other values of your custom field otherwise the values with that value inside them will also match when the user select that value in a filter.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MDYwOS1maWx0ZXJpbmctb2YtZXhhY3QtdGV4dC1zdHJpbmc/dG1wbD1tYXJrZG93bg==) 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
-
-
-
-

12 years 2 weeks ago [\#178736](#178736) 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 *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#178736 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

Nicolas,

I thought this was working for me but it is not... here is my situation. I have a radio button custom field with values and titles. My custom field values are a, b, c and I have so many different values that I go into double characters... so I am into values of x, y, z, aa, ab, ac etc.

What I just discovered is that when I select the filter value for "a", I get a product with a custom field value of "a" which is good, but I also get a product with a value of "ag"... which is incorrect. Both products are being returned when I filter on what should return just the a product with the value of "a". I confirmed that the additional product (the one that should not be returned) is correctly set with a value of "ag". I also exported the product, and confirmed it that way.

So, it appears that the filter does not distinguish between products with values of "a" and "ag". If I filter on values of "ag", then the filter works properly and returns only products with "ag" values. Do I need to change all my values to be the same length? For example, if should I change my custom field values from a, b, c, to a1, b1, c1, etc. and update my inventory accordingly?

Please advise me on how to proceed.

Dennis

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MDYwOS1maWx0ZXJpbmctb2YtZXhhY3QtdGV4dC1zdHJpbmc/dG1wbD1tYXJrZG93bg==) 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
-
-

12 years 1 week ago [\#178740](#178740) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#178740 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

Hi,

Yes, you should update the values with less letters to have the same amount of letters so that they aren't found inside other values.

Note that we added a patch in the filtering system with the 2.3.4 version of HikaShop which should normally avoid the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MDYwOS1maWx0ZXJpbmctb2YtZXhhY3QtdGV4dC1zdHJpbmc/dG1wbD1tYXJrZG93bg==) 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 11 months ago [\#182818](#182818) 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 *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#182818 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

This solved my problem... thanks!

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MDYwOS1maWx0ZXJpbmctb2YtZXhhY3QtdGV4dC1zdHJpbmc/dG1wbD1tYXJrZG93bg==) 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 9 months ago -  11 years 9 months ago [\#189465](#189465) 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 *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#189465 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

Hi,

My problem is back... sort of. I have different data and I am now on 2.3.5.

I have a custom field being used as a filter. The filter value is SUPER PREMIUM with no quotes or anything else in the value field within this custom field. The inventory item (when exported) has the value SUPER PREMIUM in the custom field... so far so good.

I think the issue may be the submit value (I am using the filter module) in the form of the product/filter.php file.

The submit value is SUPER and not SUPER PREMIUM. Thus I select no inventory items. Here is the code that is generated: Code:

&lt;input onchange="document.forms['hikashop_filter_form_module_148'].submit();" type="checkbox" name="filter_Quality__Glove_Price_Range_[]" value="Super" premium="" id="field_8_0_module_148"&gt;

Thanks,

Dennis

---

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

Last edit: 11 years 9 months ago by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile"). Reason: spelling

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MDYwOS1maWx0ZXJpbmctb2YtZXhhY3QtdGV4dC1zdHJpbmc/dG1wbD1tYXJrZG93bg==) 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 9 months ago [\#189574](#189574) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#189574 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

Hi,

Could you provide a link to the page with the filter so that we could look at the issue ?

Could you also provide a screenshot of the options of the filter ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MDYwOS1maWx0ZXJpbmctb2YtZXhhY3QtdGV4dC1zdHJpbmc/dG1wbD1tYXJrZG93bg==) 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 9 months ago [\#189583](#189583) 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 *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#189583 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

Nicolas,

Here you go...
page with the issue
[ 181.224.147.219/~steineri/index.php?opti...t=listing&amp;Itemid=367](http://181.224.147.219/~steineri/index.php?option=com_hikashop&view=product&layout=listing&Itemid=367)

Screenshot of options of the custom field used as the filter
[ prntscr.com/6108ik](http://prntscr.com/6108ik)

The filter screen
[ prntscr.com/6109h8](http://prntscr.com/6109h8)

Thanks,

Dennis

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MDYwOS1maWx0ZXJpbmctb2YtZXhhY3QtdGV4dC1zdHJpbmc/dG1wbD1tYXJrZG93bg==) 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 9 months ago [\#189715](#189715) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#189715 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

Hi,

Thank you. We found the issue.
Change the line: Code:

if($type!='hidden') $input = '&lt;INPUT '.$onClick.' '.$checked.' type="'.$type.'" name="filter_'.$filter-&gt;filter_namekey.$tab.'" value='.$val[0].' id="field_'.$filter-&gt;filter_id.'_'.$key.'_'.$divName.'"&gt;';

to: Code:

if($type!='hidden') $input = '&lt;INPUT '.$onClick.' '.$checked.' type="'.$type.'" name="filter_'.$filter-&gt;filter_namekey.$tab.'" value="'.htmlentities($val[0]).'" id="field_'.$filter-&gt;filter_id.'_'.$key.'_'.$divName.'"&gt;';

in the file administrator/components/com_hikashop/classes/filter.php and that will 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=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MDYwOS1maWx0ZXJpbmctb2YtZXhhY3QtdGV4dC1zdHJpbmc/dG1wbD1tYXJrZG93bg==) 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 9 months ago [\#189757](#189757) 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 *[Filtering of exact text string](/forum/45-filters-search/870609-filtering-of-exact-text-string#189757 "-- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Error-message(debug-mod must be tuned on) -- : Question pertaining to filters  Hi,  I am trying to search for an exact text string... and need some advice. I have read several of the posts regarding this subject...  I have a custom field called MATERIAL MATERIAL contains Cotton Cotton Fleece Cotton Terrycloth Cotton/Polyester blend  I need to be able to search for each distinct set of products and I would like to keep these values in the database of products so that I can see them on back end display, and also make them available when comparing products  I know that I can have values for the custom field like 001, 002, 003, etc. and map these to filter module, but is there an easy way to make them distinct without changing their values in the database?  Dennis")*

Nicolas,

This worked... thanks for the prompt reply!

Dennis

---

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

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

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