Developer forum

Forum » Development » Filtering with Friendly URL's

Filtering with Friendly URL's

Martijn Bokhove
Reply
Hi

I thought I had found a nice structure to show a categorypage with filters and a friendly URL, but the result is not what it should be.

It's for the website Oosterik: http://oosterik.staging.innovadis.com/
The navigation is made out of pages, with a redirect on it.
For example 'Tuinmeubelen' (gardenforniture in English), is a page with a redirect to '/Default.aspx?ID=4&GroupID=GROUP348', so it's gets the nice URL 'http://oosterik.staging.innovadis.com/nl-nl/assortiment/tuinmeubelen.aspx' in the browser.

Now I added a filter with the name GroupID and added it to the page with the productlist. On the nice URL above there are filteroptions, so it looks like it works nice.

The only problem is that it shows only a few products, not all the products from the Group I expected to be here.

When I enter the unfriendly URL with the GroupID in it (http://oosterik.staging.innovadis.com/nl-nl/assortiment.aspx?groupid=GROUP348), it shows all the products from the Group.

Putting on the TemplateTags on both pages, don't seem to be very different.

So I have 2 pages:
http://oosterik.staging.innovadis.com/nl-nl/assortiment/tuinmeubelen.aspx 
http://oosterik.staging.innovadis.com/nl-nl/assortiment.aspx?groupid=GROUP348

Both should filter on GroupID Group348, the TemplateTags look the same, only the products are not.

What can I do to show the same products with the nice URL?

Gr
Martijn

Replies

 
Nicolai Høeg Pedersen
Reply
Hi Martijn.

I'll have someone look into this.

 
Pavel Volgarev
Reply
Hi Martijn,

The search query looks exactly the same in both cases so I don't see why the results are so different.

Is there any custom code on the solution (in particular, product collection providers or template extenders)?

-- Pavel
 
Nicolai Høeg Pedersen
Reply
I Can see that there is a Oosterik.Lib.Oosterik.Lib.ProductListModifier on the dwn_ecom_productlist_before_sort notification.
What does it do - can we see the source?
 
Martijn Bokhove
Reply

I Can see that there is a Oosterik.Lib.Oosterik.Lib.ProductListModifier on the dwn_ecom_productlist_before_sort notification.
What does it do - can we see the source?

Hi Nicolai/Pavel

Sorry for the late reply, I was out of office for a couple of days.
It seems our NotificationSubscriber filters out more products in some cases.
So I have to find the problem in our own code.

Thanks for your support.

Gr
Martijn
 
Martijn Bokhove
Reply
This post has been marked as an answer
The problem seems to be in relation with an other forum issue 'Variant relations after delete variantoption (http://developer.dynamicweb-cms.com/forum/development/development/variant-relations-after-delete-variantoption.aspx)'

It looked like there were products with variants, but the variants were no longer available. Because our NotificationSubscriber filters out headproducts, when there are variants from that product, a lot of headproducts were not shown.

Solved it by looping through the database and removing the VariantGroupRelation between the Group and the Product using the API, when that relation is no longer valid.
Votes for this answer: 0

 

You must be logged in to post in the forum