Skip Navigation

[Resolved] Search custom fields in admin view

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to extend their Woocommerce admin page search to include custom fields from toolset.

Solution:

The user was able to achieve this by using the solution in the link below.
https://mircian.com/2018/04/06/extending-woocommerce-admin-product-search/

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by katjaL 6 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1079655

I have some custom fields for woocommerce products and I need to include those to *admin* search results.

The custom post types I have made include also the custom fields nicely to the search results, but with woocommerce custom fields it is different.

I found this:
hidden link

Perhaps it could be implemented, but as a non-coder I'm a bit shy just to start testing. If you could give me an example how the toolset created custom field - for example "product-number" would look like in that code.

Or perhaps you have a better suggestion/solution for this?

Thank you.

#1079704

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Katja,

Thank you for contacting our support forum.

If a custom field was created with toolset it will have the wpcf-prefix on it. So your "product-number" field will be "wpcf-product-number"

Please let me know if this helps.

Thanks,
Shane

#1082722

Perfect, thank you, the code works!