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

Custom field filter

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.

Hi,

As you can see on this video where I detail the problem step by step, the filter displays at the end the name of the filter instead of its values (in our case, the product had"dur" as value for"sol"):

https://watch.screencastify.com/v/epebBa19mFkwH4lLkZzL

Am I doing something wrong?

Regards,

Clara.

Hello Clara.

Please  read  this - https://products-filter.com/extencion/woocommerce-filter-by-meta-fields  - https://c2n.me/4gNQNxz.png

to work this field must store 1(I doubt it).

In any case,  to set up a meta filter, you should know how a third-party plugin stores data.

For example, in your video, I see two similar keys. I think the third-party plugin stores the title using one key and the value of the meta field using another key. First of all, you need to determine which key stores the value and use this key in the filter. Next, you need to find out what value this meta field uses. Often it is"yes" and"no".

I'm sorry but I don't really understand what you mean.

I searched into the database which field was the correct one, it turned out it was"sols", because this one had meta values attached to it.
I wrote 1 in the"search value" input, but the result was the same.

For your information, I'm using ACF, which is a big plugin to create custom fields. Do you have the procedure to make your plugin work with ACF?

hello

I wrote 1 in the"search value" input, but the result was the same. - Please  read  this - https://share.pluginus.net/image/i20221007080344.png

Do you have the procedure to make your plugin work with ACF? - This is just a meta field, and you need to set it up like a regular meta field

I searched into the database which field was the correct one, it turned out it was"sols" - what is stored in this field?

Here is a screenshot of what I found in the database: meta value and meta key.

https://drive.google.com/file/d/1ZRIZfCABNtOnnVi0aIPPHWFD-5euYkkc/view?usp=sharing

Ok! this field stores a lot of different text information, so why are you using a checkbox, and what are you planning to filter with this checkbox (by what principle?)

When you select a checkbox, it will always be only one checkbox, which means you can only filter by one parameter

If you want to be able to filter by multiple parameters - https://share.pluginus.net/image/i20221007093616.png

Oh okay, I understand! Thank you for the help! It works fine now.

Great! Welcome;)