PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Quick Search: How to search custom data

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

My products are songbooks.  Each songbook has a list of songs, and I would like the search to be able to consider the songs.

How can I direct the search to scan custom data?

Hello

It depends how the data is stored. Please  read  this - https://products-filter.com/extencion/woocommerce-filter-by-meta-fields

Thanks.  That helped.  I had to also make a code adjustment in filter\ext\quick_search\js\quick_search.js.

I change it from:
return element.title +":" + element.key_words + element.sku;
to
return element.title +":" + element.key_words + element.sku + element.meta_data.songs_list;

It is working they way I wanted it to now.  But is there a way to make this work without adjusting the code?
Or is there a child folder option that I can utilize so my changes to get overwritten when updates are released?

 

Hello

You can override the JS function where you changed the code.

In the child theme, create a JS file with the new function (use the same name) and just include the new JS file after the filter JS file