Filter product code from characteristic?

  • Posts: 97
  • Thank you received: 0
9 years 11 months ago #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?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 11 months ago #181593

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

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 0
9 years 11 months ago #182995

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 :)

Please Log in or Create an account to join the conversation.

  • Posts: 82865
  • Thank you received: 13372
  • MODERATOR
9 years 11 months ago #183205

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

Please Log in or Create an account to join the conversation.

  • Posts: 171
  • Thank you received: 4
9 years 9 months ago #189414

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 or Create an account to join the conversation.

  • Posts: 82865
  • Thank you received: 13372
  • MODERATOR
9 years 9 months ago #189421

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 or Create an account to join the conversation.

  • Posts: 171
  • Thank you received: 4
9 years 9 months ago #189496

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

Please Log in or Create an account to join the conversation.

  • Posts: 82865
  • Thank you received: 13372
  • MODERATOR
9 years 9 months ago #189509

With a small custom hikashop plugin yes.

Please Log in or Create an account to join the conversation.

Time to create page: 0.105 seconds
Powered by Kunena Forum