Skip Navigation

[Resolved] Compare blocks with custom field checked

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.

Our next available supporter will start replying to tickets in about 6.94 hours from now. Thank you for your understanding.

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

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Waqar 1 year, 4 months ago.

Assisted by: Waqar.

Author
Posts
#2624119

jww

Hi,
I’m trying to figure out a way to do the following…I’d appreciate some direction.

I want to create compare checkboxes.
I have a custom post type “profile”
I have a custom field “offer”
I want to create a page or post with Blocks where a user can check the name of the company profile (post title) from a list, so there would be a list of the profile titles with a checkbox next to it then in a container below, the custom field “offer” would be displayed for the posts checked off in the list above.
Can I do this with Toolset? Would it be a search? Seems like not really since they are checking off the titles of posts to see one custom field contained within that custom post type but maybe so?
I was thinking if the checkbox is a custom field “choose to compare” then the container below could query that custom field type to display the field? Or is the query loop only for posts?

Thanks so much in advance.

#2624537

Hi,

Thank you for contacting us and I'd be happy to assist.

I'm afraid, this comparison feature is not available in Toolset plugins and I can't think of any simple workaround to achieve this through a Toolset view.

It would be better to use a third-party comparison table feature for this and here are some useful resources on the topic:
hidden link
https://wordpress.org/plugins/tags/comparison-table/
hidden link

regards,
Waqar

#2624809

jww

Why wouldn't it work to do a two column search, and let them choose the post title (Company) on the left, and then the details field on the right. Wouldn't this give them all of the results for whatever companies they tick off + the data in that custom field for each?

#2624827

jww

What I'm picturing is:
A page with a view "Compare Plans"
A search drop down "post title" - but this is what I'm not seeing. I see a search box where they can type in a search term which will search post title/content, but how do I get it to display a list of Post Titles to then filter/search by a particular custom field? If I want a list of checkboxes where they can select as many of the checkboxes as they want, then filter by the custom field "plans" ... I'm not seeing how to do this. I don't see where/how to list the post titles as a checkbox list.

#2624831

jww

What about this:
I created a new Custom Field "Company Name" which is the same as the post title (although then has to manually typed in which seems weird, i'd prefer it was just the post title in there - can that be done dynamically?)

Ok so now they can select from a checkbox of companies.
In the view below the search, I have the field "price plans".
So they can now select from the companies and see the price plans for those companies.

What if I want to them them choose which fields they see in the view?
Ex custom fields
Price Plans
Deals
Overview
Let them select from those three fields to show all or just one or two of them in the view.
How would I do that?

#2625993

> What if I want to them them choose which fields they see in the view?
> Ex custom fields
> Price Plans
> Deals
> Overview
> Let them select from those three fields to show all or just one or two of them in the view.
> How would I do that?

- To achieve this, you'll need to use some custom jQuery/JavaScript code.

Basically, your view will load all those fields to begin with, but they'll be hidden on the page load.

When the visitor will check options for the specific fields, only then those specific fields will become visible.

I don't have a copy/paste code snippet available for this functionality. But for more personalized assistance around custom code, you can consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/