Developer forum

Forum » Development » Compare products

Compare products


Reply
I'm struggling to get the product compare module to work properly.

I can select a number of products to compare, but when I go to the product compare page all products from all groups connected through the ecom module are shown in stead of only the products mentioned in the querystring.

For example:

When I select 2 products and click the 'compare' button the following url is called: mydomain.ext/pagename/[Compare/PROD10$LANG1$VO23.VO40,PROD10$LANG1$VO25.VO40]/DWMODULEPAGENAME.aspx

The querystring seems to have the product id's, language and variant id's needed to show the comparison, but shows all products.

The template provided by DW contain numerous Product loops, I don't see how to filter in this page and think that shouldn't be nesesary ... I don't see any other usefull loops when viewing the dwtempatetags either ...

Do I miss a step in  my configuration?
Does anyone have a clue, working samples, or a bit more documentation on this subject?

PS
Don't know where the 'DWMODULEPAGENAME' comes from, happens a lot lately, does anyone have a fix for that?!


Replies

 
Reply
Hi Peter!
It seems in DW  version 19.2.1.0 this error is fixed. I can't reproduce it now.
Please send me at  vshdynamicweb.dk URL of your site.
URL UiRL mydomain.ext/pagename/[Compare/PROD10$LANG1$VO23.VO40,PROD10$LANG1$VO25.VO40]/DWMODULEPAGENAME.aspx is incorrect, it should be like mydomain.ext/Default.aspx?ID=nn&Compare=PROD10$LANG1$VO23.VO40,PROD10$LANG1$VO25.VO40

Best regards, Vladimir


 
Reply
OK, I'll try it with the 'nice-url-option' turned off, haven't tried that one yet.

This project is in development stage, there is no online reference at this moment.

thanks for your reaction and please keep following this post, i'll post my findings sometime today i think ...
 
Reply
I will keep this post)
By the way try to change please URL type in management center/Web and HTTP/Customized URLs

Regards, Vladimir
 
Reply
hmmm ....

customized urls on or off doesn't seem to make any difference ...

The DW version we use is 19.2.1.3 by the way ....

One thing, the documentation found via http://manual.dynamicweb-cms.com/Default.aspx?ID=7348 seems to be a bled of 2 sreenshots i think ...

In the settings section 'Product' is selected ans the template section has 2 checkboxes (groups/search), i can't reproduce this configuration :-(
 
Reply
Vladimir,

I think I found my problem ...
Seems to be in our code (productlistnotificationsubscriber) ...We'll try to fix it ..

Thanks for your support so far :-)
 
Reply
I fixed it ...
I wasn't aware of a piece of code my colleague embedded in the project.

There are no functional questions, I just don't understand the prtscr in the documentation as i described in one of my previous posts ...

And I still don't understand why my URL is uglyfied by the term 'DWMODULEPAGENAME'

http://mydomain.ext/shop/productcompare/[Compare/PROD10$LANG1$VO23.VO40,PROD10$LANG1$VO22.VO39]/DWMODULEPAGENAME.aspx
 
Reply
 Hi Peter,

Your uglyfied URL is caused by module URLs. Make shure that "Convert module URLs" is unchecked as it is not compatible with the new URL providers.

BR.

Morten

 

You must be logged in to post in the forum