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

#   Filter product code from characteristic?

##

- **[shpuser](/forum/user/30542-shpuser "View shpuser's Profile")**
- [![shpuser's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/cat.png)](/forum/user/30542-shpuser "View shpuser's Profile") Topic Author
- [ Offline](/forum/user/30542-shpuser)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 11 months ago [\#181494](#181494) by [shpuser](/forum/user/30542-shpuser "View shpuser's Profile")  *[Filter product code from characteristic?](/forum/45-filters-search/873304-filter-product-code-from-characteristic#181494 "I have a filter and the filter apply search on all options, but there is no product code from characteristic included, it's possible to include it in search?")* was created by *[shpuser](/forum/user/30542-shpuser "View shpuser's Profile")*

I have a filter and the filter apply search on all options, but there is no product code from characteristic included, it's possible to include it in search?

[ ![filter.jpg](/forum/attachment/20952) ](/forum/attachment/20952 "filter.jpg")

- [ ![filter.jpg](/forum/attachment/20952) ](/forum/attachment/20952 "filter.jpg") [ ](/forum/attachment/20952?download=1 "filter.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 11 months ago [\#181593](#181593) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Filter product code from characteristic?](/forum/45-filters-search/873304-filter-product-code-from-characteristic#181593 "I have a filter and the filter apply search on all options, but there is no product code from characteristic included, it's possible to include it in search?")*

Hi,

This will require some core file edition, because in the listings we can only display the main products.
So even if the variant product code is found we can't display the variant.

One thing could be to edit the code to get the parent product when searching for the variant product code.
This require good PHP knowledges. I think that a plugin can do the job, here is the documentation on how to make a plugin:
[ www.hikashop.com/support/support/documen...r-documentation.html](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html)

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

- **[LIP Trade](/forum/user/31348-lip-trade "View LIP Trade's Profile")**
- [![LIP Trade's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31348.png)](/forum/user/31348-lip-trade "View LIP Trade's Profile")
- [ Offline](/forum/user/31348-lip-trade)

Less More

- Posts: 32
- Thank you received: 0
-
-

11 years 11 months ago [\#182995](#182995) by [LIP Trade](/forum/user/31348-lip-trade "View LIP Trade's Profile")  Replied by *[LIP Trade](/forum/user/31348-lip-trade "View LIP Trade's Profile")* on topic *[Filter product code from characteristic?](/forum/45-filters-search/873304-filter-product-code-from-characteristic#182995 "I have a filter and the filter apply search on all options, but there is no product code from characteristic included, it's possible to include it in search?")*

Hi Xavier, we use HikaShop Business: 2.3.4 and want search by product code. We are not programer to make plugins, and for that reason we take the Business version of yours product. We expect some sollutions, to serch by produkt code ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MzMwNC1maWx0ZXItcHJvZHVjdC1jb2RlLWZyb20tY2hhcmFjdGVyaXN0aWM/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: 86555
- Thank you received: 14304
-
-

11 years 11 months ago [\#183205](#183205) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filter product code from characteristic?](/forum/45-filters-search/873304-filter-product-code-from-characteristic#183205 "I have a filter and the filter apply search on all options, but there is no product code from characteristic included, it's possible to include it in search?")*

Hi,

@LIP Trade: There is already that capability. Simply create a filter of the type "text" set its "apply on" option to "product_code" and you will be able to search your products by product code. The question of @shpuser was about having that capability also work for variants of products which is something not possible without modifying the code of HikaShop, as explained by Xavier.

The following user(s) said Thank You: [LIP Trade](/forum/user/31348-lip-trade "View LIP Trade's Profile")

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

- **[jesper](/forum/user/8151-jesper "View jesper's Profile")**
- [![jesper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/8151-jesper "View jesper's Profile")
- [ Offline](/forum/user/8151-jesper)

Less More

- Posts: 171
- Thank you received: 4
-
-

11 years 9 months ago [\#189414](#189414) by [jesper](/forum/user/8151-jesper "View jesper's Profile")  Replied by *[jesper](/forum/user/8151-jesper "View jesper's Profile")* on topic *[Filter product code from characteristic?](/forum/45-filters-search/873304-filter-product-code-from-characteristic#189414 "I have a filter and the filter apply search on all options, but there is no product code from characteristic included, it's possible to include it in search?")*

nicolas can you give more info on this ?
It does not have to show the specific variant only, just the main product, but would be good if in some way, it would be able to filter main product if variant version also matches the search product_code

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MzMwNC1maWx0ZXItcHJvZHVjdC1jb2RlLWZyb20tY2hhcmFjdGVyaXN0aWM/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: 86555
- Thank you received: 14304
-
-

11 years 9 months ago [\#189421](#189421) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filter product code from characteristic?](/forum/45-filters-search/873304-filter-product-code-from-characteristic#189421 "I have a filter and the filter apply search on all options, but there is no product code from characteristic included, it's possible to include it in search?")*

That's what Xavier and I were talking about. There is no such capability. It would be a big resources issue to be able to do that.
One alternative in that case would be to enter the product code of each variant separated by a space in a custom product field of the main product and have the filter aplied on both the product_code and that custom field.
That would produce the same result but it would mean more work to setup.

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

- **[jesper](/forum/user/8151-jesper "View jesper's Profile")**
- [![jesper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/8151-jesper "View jesper's Profile")
- [ Offline](/forum/user/8151-jesper)

Less More

- Posts: 171
- Thank you received: 4
-
-

11 years 9 months ago [\#189496](#189496) by [jesper](/forum/user/8151-jesper "View jesper's Profile")  Replied by *[jesper](/forum/user/8151-jesper "View jesper's Profile")* on topic *[Filter product code from characteristic?](/forum/45-filters-search/873304-filter-product-code-from-characteristic#189496 "I have a filter and the filter apply search on all options, but there is no product code from characteristic included, it's possible to include it in search?")*

wouldn't it be possible to do this automatic on variant editing ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MzMwNC1maWx0ZXItcHJvZHVjdC1jb2RlLWZyb20tY2hhcmFjdGVyaXN0aWM/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: 86555
- Thank you received: 14304
-
-

11 years 9 months ago [\#189509](#189509) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filter product code from characteristic?](/forum/45-filters-search/873304-filter-product-code-from-characteristic#189509 "I have a filter and the filter apply search on all options, but there is no product code from characteristic included, it's possible to include it in search?")*

With a small custom hikashop plugin yes.

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

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