Skip Navigation

[Résolu] Create a responsive comparison table

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

The issue here is that the user wanted to create a responsive bootstrap table where you get a horizontal scroll bar on small screens.

Solution:

The first I did was to add the bootstrap response table div

      <div class="table-responsive">
Table code goes here.
</div>

The second thing I did was to enable the bootstrap loading by going to Toolset->Settings->Bootstrap Loading.

This support ticket is created Il y a 6 années et 7 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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

Supporter timezone: America/Jamaica (GMT-05:00)

Ce sujet contient 7 réponses, a 2 voix.

Dernière mise à jour par davidZ-4 Il y a 6 années et 7 mois.

Assisté par: Shane.

Auteur
Publications
#688040
sampletable.JPG

Tell us what you are trying to do? Create a responsive comparison table of products similar to the enclosed image

Is there any documentation that you are following?
https://toolset.com/documentation/user-guides/creating-side-by-side-feature-comparison-with-views/
https://toolset.com/learn/create-an-ecommerce-wordpress-site/product-comparison/#comparison-results
lien caché

Is there a similar example that we can see? https://toolset.com/forums/topic/creating-a-comparison-table-from-posts/

What is the link to your site? lien caché

i tried using the view loop wizard with "table-base grid" and "Bootstrap grid" but i'm missing somthing to make this table responsive and the rows aligned.

Please advice,
thanks,

David

#688543

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi David,

Thank you for contacting our support forum.

When you say responsive table is it that you want the items to flow below each other ?

Please let me know.
Thanks,
Shane

#689548

Hi Shane,

responsive table means that when i view the table on small screen the table does not brake and the page resize user experience (UX) is not to scroll all the page to the right or left, rather the table have horizontal scroll bar to view the items n the table.
an example of bootstrap responsive table can be found here lien caché

the thing that i don't understand well is how the view loop render the products in columns for comparison. and how that can be inserted into a template of a boot responsive table.

Please let me know if you have questions.
thanks,

David

#692220

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi David,

Thanks for the clarity,

Would you mind providing me with admin access so that I can take a further look at this for you ?

The private fields will be enabled for your next response.

Thanks,
Shane

#692789

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi David,

Thanks have a look now lien caché

It should now be working with the scroll bar.

Please let me know if this helps.

Thanks,
Shane

#694008

Thanks Shane,
yes this is good!
Just couple of other questions on this topic:

1.Was it just letting toolset to load bootstrap or was there something else you changed? i.e. how did you resolve the responsive table issue?

2. how can I get the lines in the table be aligned in the same height between all products?

Thanks,

David

#694464

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi David,

I actually did 2 things.

The first I did was to add the bootstrap response table div

      <div class="table-responsive">
Table code goes here.
</div>

The second thing I did was to enable the bootstrap loading by going to Toolset->Settings->Bootstrap Loading.

I checked and its because of how the table is built and might be a limitation of the table when it comes to the comparison because of how its currently built.

Ideally each section i.e image, taxonomy and price should all be in a different row but they are currently in the same row. I dont suspected that there is anything that we can do about this.

Thanks,
Shane

#695361

ok,
got it,
thanks,

David