Developer forum

Forum » Ecommerce - Standard features » Compare product question

Compare product question

Dmitrij Jazel
Reply

Hello everyone,

Wanted to ask how do you use Compare products in DynamicWeb, maybe someone know any good resources I could use here?

I can see that every product has it's own <!--@Ecom:Product.CompareID--> and you can eventually use that when comparing as Compare= parameter.

But that requires that you must select several products from one page. So I am a bit not sure how do I set this feature up?

The way how I eventually want to setup compare function is like this:

Every product should have it's own "compare link" if you click this link than - this product should be automatically added to comparison with other already added products in exactly the same way (via clicking the link).

 

Regards,

Dmitrij

 


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Dmitrij

 

You just send Compare=prod1,prod2,prod3 etc to the querystring. You can collect those ID's with i.e. a cookie in JS, and then have the add to compare Work that way.

 

Attached a template and JavaScript that does something like that. You might need to change it a Little to do exactly what you want.

 

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum