Developer forum

Forum » Ecommerce - Standard features » Changing filter options or use user specific assortment

Changing filter options or use user specific assortment

Martijn Bokhove
Reply

Hi

We are building a B2B webshop with user specific assortment. The part with the user specific assortment means that not all customers can view all products.

The way we are building right now:
- The user has a list of EAN numbers in a session, the list contains the products that are allowed to be viewed by the user
- In the EcomProductListBeforeSortObserver we remove the products that don’t match with the EAN numbers

This works, but the problems is there is no relation to the filteroptions. So the more products are filtered out in the BeforeSortObserver, the more options in the filtering can lead to wrong/no result.

Is there a better way to use user specific assortment, with correct filtering?

Gr
Martijn


Replies

 
Hans-Henrik Stefansen
Reply
This post has been marked as an answer

Hi Martijn,

Currently Dynamicweb do not provide a generic way to create user specific assortments in the eCommerce.
So your solution by using the EcomProductListBeforeSortObserver is one way to achieve the functionality.

In order to archieve the same filtering of the filter options returned from Product Index, you should implement a EcomSearchFilterAfterComposeQueryObserver and provide your list of EAN numbers to the query.
Doing this should get the filter options to match your existing filtered productlists.
You will find the documentation regarding Indexed Search here: http://developer.dynamicweb-cms.com/documentation/for-developers/ecommerce/indexed-search/introduction.aspx

I'm a bit unsure about performance impacts on the search in the Product Index, but you should give it a try.

With Dynamicweb 8.5 scheduled for release in late August, we will be introducing Assortments in the eCommerce.
This will allow you to create various assortments to match individual customer segments containing entire shops, groups - even specific products down to the variant-level.

Votes for this answer: 1
 
Martijn Bokhove
Reply

Hi Hans-Henrik

Thanks for your reply and examples!
We will discus it with our customer, what they prefer.

Gr.
Martijn

 

You must be logged in to post in the forum