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

#   Search by variant

##

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

3 years 7 months ago [\#350789](#350789) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Search by variant](/forum/45-filters-search/906210-search-by-variant#350789 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11  Hello,  Is it possible to search a product by variant code? I enabled the &quot;Search variants&quot; in HikaShop products search plugin but still doesn't work.  Thank you")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 3.10.11

Hello,

Is it possible to search a product by variant code?
I enabled the "Search variants" in HikaShop products search plugin but still doesn't work.

Thank you

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

3 years 7 months ago [\#350798](#350798) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Search by variant](/forum/45-filters-search/906210-search-by-variant#350798 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11  Hello,  Is it possible to search a product by variant code? I enabled the &quot;Search variants&quot; in HikaShop products search plugin but still doesn't work.  Thank you")*

Hi,

The HikaShop products search plugin integrates with the Joomla search system. I looked at your website but I don't see the Joomla search. I see that you're using the HikaShop filter module as search, along with a text filter.
The filtering system in HikaShop doesn't look into variants data, only products.
So it's not possible with what you've setup.
You could switch to the Joomla search system, however, you'll face two problems:
- the Joomla search system is removed in Joomla 4, so even if you switch to it, with Joomla 3 support by the Joomla project ending soon, that's not a long term solution
- the results screen of the Joomla search system is quite crude since it can search in Joomla articles, etc. It's just a link, the product name, and the beginning of the description for each product listed as result. So it would require heavy customization of the results view of the Joomla search to make it look nice.

I think a simpler solution would be to create a custom field of the table "product" and of the type "textarea", where you would enter all the variant codes of the product separated by spaces. Then, select that custom field in the text filter and you'll be able to search for the variant codes.
Then, you could potentially create a periodic mass action with some PHP code to automatically generate the codes and automatically fill the custom field for you.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

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

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