Skip Navigation

[Resolved] Custom Comparison table with any post Type

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

Problem:
How can we create searchable lists of Post Types where users can choose a few items found, to later compare to other selected items of the same list's results?

Solution:
https://toolset.com/learn/create-an-ecommerce-wordpress-site/product-comparison/ describes what is required to build such a comparison search.

The DOC uses a View listing Products (WooCommerce Products), but since Products are simply posts in the Post Type "Product", you can exchange that with any post type you want).

Simply change the Custom Post Type "Product" to what you use in your system.
It works with any post type.

This support ticket is created 5 years, 6 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by maroinA 5 years, 6 months ago.

Assisted by: Beda.

Author
Posts
#1285177

Tell us what you are trying to do?

I am trying to add the checkbox on the same page as the search view. For example, I see on e-commerce website, the ability to tick 3 product and then click on a button to open the compare page.
My website is composed of custom post type, for which I have multiple taxo, CF. I want to allow on the same page : A custom search view (with Elementor) - hidden link

+
A tickbox on each item to make possible the compare functionnality from the results.

Is there any documentation that you are following?

Yes, there is this one : https://toolset.com/learn/create-an-ecommerce-wordpress-site/product-comparison/
This is for woocommerce, I have only one CPT.
There is also this : hidden link
but Crocoblocks confirmed that this was just for woocommerce, not available for CPT.

Is there a similar example that we can see?
As you can see here : hidden link
Darty has on the left a custom search box to use all the kind of filters (price, etc.)
+
they have a tickbox called "Ajouter au comparateur" with which you can select until 5 item.
I want the same (just for 3 for example).
What is the link to your site?

hidden link

#1285439

https://toolset.com/learn/create-an-ecommerce-wordpress-site/product-comparison/ is exactly what you describe, or better, what will help you achieve the goal.

The DOC just uses a list of Products (Products are simply a Post Type, you can exchange that with any post type you want).
It lets you select the products to compare and then click on a button to compare those.

You can use https://toolset.com/learn/create-an-ecommerce-wordpress-site/product-comparison/ and simply change the Custom Post Type "Product" to what you use in your system.
It works with any post type.

#1286413

My issue is resolved now. Thank you!