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 pleaseIf 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.
Quote from clara on October 6, 2022, 09:26Hi,
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.
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.
Quote from Pablo Borysenco on October 6, 2022, 12:02Hello 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".
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".
Quote from clara on October 6, 2022, 14:19I'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?
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?
Quote from Pablo Borysenco on October 7, 2022, 10:08hello
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?
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?
Quote from clara on October 7, 2022, 10:41Here 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
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
Quote from Pablo Borysenco on October 7, 2022, 11:36Ok! 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
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
Quote from clara on October 7, 2022, 11:50Oh okay, I understand! Thank you for the help! It works fine now.
Oh okay, I understand! Thank you for the help! It works fine now.
Quote from Pablo Borysenco on October 7, 2022, 12:49Great! Welcome;)
Great! Welcome;)