Comparison component | Community
Skip to main content
Level 2
July 11, 2017
Solved

Comparison component

  • July 11, 2017
  • 1 reply
  • 963 views

Hi All,

I have a requirement where i have to create a product comparison component which can compare atleast 3 products.

Say we have 3 laptops details in the node structure in crxde lite and the nodes have values which i want to compare like ram,color,storage.

Requirement is:

Next to every product, compare button should come and on clicking it should add the products in the list and compare them and display the results.

Its similar to what we have in every ecommerce website.(like for comparing to mobiles or other products as well).

Can anyone suggest me some links or how should i go with it.

If any one has a package which i can refer plz share.

Thanks,

Arjit

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by viveksachdeva

IMO, should use JS templating - Dust, Handlebar or something.

- Create a template for product comparison that takes a JS object containing details of all products.

- On click of compare, feed this template the JS object and render it.

1 reply

viveksachdeva
Community Advisor
viveksachdevaCommunity AdvisorAccepted solution
Community Advisor
July 11, 2017

IMO, should use JS templating - Dust, Handlebar or something.

- Create a template for product comparison that takes a JS object containing details of all products.

- On click of compare, feed this template the JS object and render it.