Expand my Community achievements bar.

SOLVED

Comparison component

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 7

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 7

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.