Developer forum

Forum » Ecommerce - Standard features » Product compare feature

Product compare feature

Jon Thorne
Jon Thorne
Reply

Is there a product comparison feature in DW10?


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Yes, and no, and in next release a little better... :-).

  • The classic product catalog app running with the template tags, still have that feature on DW10.
  • The product catalog for viewmodels which you hopefully use, does have support for the compare template, but it seems like it is currently not fully implemented. I just made a small change to actually support it. Using a format like this - would use the compare list template instead of the normal list template on that app instance
    ?compare=true&productnumber=sku123,sku.234,sku.345
  • If you want a quick workaround, you can create a seperate page, e.g. "compareproducts" and add the product catalog for viewmodel app to it, create a compare template as the list template, and choose a query that supports finding products out of an array of e.g. SKUs in the querystring:
    /compareproducts?productnumber=sku123,sku.234,sku.345

The template settings related to the product catalog for viewmodel app:

  • List template is default used for lists - e.g. a search or using ?groupid=Group123
  • Detail template is used when you have ?productid=prod123 in querystring
  • Feed list template is used if you are in list mode and add ?feed=true
  • Compare list template is used if you are in list mode and add ?compare=true (This is my change coming in next DW10 minor)

Votes for this answer: 1

 

You must be logged in to post in the forum