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

#   Admin Customer Search Not Listing Specific Custom Field Option

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

6 years 11 months ago [\#314161](#314161) by [Dan191272](/forum/user/58728-dan191272 "View Dan191272's Profile")  *[Admin Customer Search Not Listing Specific Custom Field Option](/forum/45-filters-search/898889-admin-customer-search-not-listing-specific-custom-field-option#314161 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.3 -- Browser(s) name and version -- : CHROME 79.0.3945.79  I have a GENDER custom field. when I search (in Admin&gt;Hikashop&gt;Customer) the keyword FEMALE, it will filter all customers with FEMALE gender. But when I search MALE keyword, it will list down customers with both MALE and feMALE, since 'female' contains a keyword 'male'. Is there a way where I can search and display the specific gender only? Thank you for any help.")* was created by *[Dan191272](/forum/user/58728-dan191272 "View Dan191272's Profile")*

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.3.3
-- Browser(s) name and version -- : CHROME 79.0.3945.79

I have a GENDER custom field. when I search (in Admin&gt;Hikashop&gt;Customer) the keyword FEMALE, it will filter all customers with FEMALE gender. But when I search MALE keyword, it will list down customers with both MALE and feMALE, since 'female' contains a keyword 'male'. Is there a way where I can search and display the specific gender only? Thank you for any help.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

6 years 10 months ago [\#314169](#314169) by [Dan191272](/forum/user/58728-dan191272 "View Dan191272's Profile")  Replied by *[Dan191272](/forum/user/58728-dan191272 "View Dan191272's Profile")* on topic *[Admin Customer Search Not Listing Specific Custom Field Option](/forum/45-filters-search/898889-admin-customer-search-not-listing-specific-custom-field-option#314169 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.3 -- Browser(s) name and version -- : CHROME 79.0.3945.79  I have a GENDER custom field. when I search (in Admin&gt;Hikashop&gt;Customer) the keyword FEMALE, it will filter all customers with FEMALE gender. But when I search MALE keyword, it will list down customers with both MALE and feMALE, since 'female' contains a keyword 'male'. Is there a way where I can search and display the specific gender only? Thank you for any help.")*

Any help is highly appreciated. thanks

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

6 years 10 months ago [\#314174](#314174) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Admin Customer Search Not Listing Specific Custom Field Option](/forum/45-filters-search/898889-admin-customer-search-not-listing-specific-custom-field-option#314174 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.3 -- Browser(s) name and version -- : CHROME 79.0.3945.79  I have a GENDER custom field. when I search (in Admin&gt;Hikashop&gt;Customer) the keyword FEMALE, it will filter all customers with FEMALE gender. But when I search MALE keyword, it will list down customers with both MALE and feMALE, since 'female' contains a keyword 'male'. Is there a way where I can search and display the specific gender only? Thank you for any help.")*

Hi,

There are basically two ways to go about this:
1. You change the way the search is done to only match exact terms (this would require code modification)
2. You change the terms so that their text don't overlap.

When you configure your custom field, you have for each value of the custom field a "value" input and a "title" input.
The value is the data stored in the database and the "title" is what the user sees in the dropdown/radio of the custom field.
So if you enter for example "male" and "fem" as the "value" of your custom field values instead of "male" and "female", you'll be able to search "male" and "female" without having an overlap on their text in the database, while the users will still see "male and "female" thanks to the values.
Also, you'll want to run a mass action on the user data via the menu System&gt;Mass action with a filter on the column of your custom field with the value "female" and an action "update the values" on that same field with the string "fem" so that the users who already selected "female" will get the new value in the database.

PS: please note that we don't work on weekends. That's why we couldn't answer you faster ![:)](/media/kunena/emoticons/3.png ":)")

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

6 years 10 months ago [\#314188](#314188) by [Dan191272](/forum/user/58728-dan191272 "View Dan191272's Profile")  Replied by *[Dan191272](/forum/user/58728-dan191272 "View Dan191272's Profile")* on topic *[Admin Customer Search Not Listing Specific Custom Field Option](/forum/45-filters-search/898889-admin-customer-search-not-listing-specific-custom-field-option#314188 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.3 -- Browser(s) name and version -- : CHROME 79.0.3945.79  I have a GENDER custom field. when I search (in Admin&gt;Hikashop&gt;Customer) the keyword FEMALE, it will filter all customers with FEMALE gender. But when I search MALE keyword, it will list down customers with both MALE and feMALE, since 'female' contains a keyword 'male'. Is there a way where I can search and display the specific gender only? Thank you for any help.")*

Thanks for your assistance. But what happens if the customer's name contains FEM but is a male? I think it will filter this as well. Do

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

6 years 10 months ago [\#314192](#314192) 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 *[Admin Customer Search Not Listing Specific Custom Field Option](/forum/45-filters-search/898889-admin-customer-search-not-listing-specific-custom-field-option#314192 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3.3 -- Browser(s) name and version -- : CHROME 79.0.3945.79  I have a GENDER custom field. when I search (in Admin&gt;Hikashop&gt;Customer) the keyword FEMALE, it will filter all customers with FEMALE gender. But when I search MALE keyword, it will list down customers with both MALE and feMALE, since 'female' contains a keyword 'male'. Is there a way where I can search and display the specific gender only? Thank you for any help.")*

Hello,

In that case it will require code customization of the way customers are filtered. Even if you didn't changed your custom field values, you would have faces that issue if your customers name contained "mal".

The file that will have to be customized will be "administrator\components\com_hikashop\views\user\view.html.php".

Kind regards,
Mohamed.

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

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