Developer forum

Forum » Development » Relative product bidirectional reference?

Relative product bidirectional reference?

Dmitrij Jazel
Reply

Hi everyone,

Today customer asked me, if I could ease a process of managing related products.

For example:

I have 3 relation groups (Color Size and Material)

Than, users goes to product details, and pressed "Related products" button, he chooses the group to assiciate to, and a product to link to.

Adds a product and presses Save,

So in order for all products to have a relative product, he has to go to every single one of them, and associate them to the right group/product.

 

Is it possible to make it so when user associates a product to a group - product, can associated product get the same related product reference back to the original product automatically?

 

Would be great if there would be setting for that, or I have to do some Extensebility again?


Replies

 
Nicolai Høeg Pedersen
Reply

We do not have that feature.

But do you mean when adding Product B as a related product to Product A, that Product B will have Product A as a related as well?

You can make a RelatedProductListProvider that will automatically locate products for related lists on runtime. See http://developer.dynamicweb.com/documentation/for-developers/ecommerce/extensibility/providers/related-product-list-providers.aspx

And download our implementations from here: http://developer.dynamicweb.com/Admin/Public/DWSDownload.aspx?File=Files%2fFiler%2fDownloads%2fSourceCode%2fdw8%2fDynamicweb.Searching.Specialized.zip

Be aware of performance!

BR Nicolai

 
Dmitrij Jazel
Reply

Hej Nicolai :)

Yes that was exactly what I needed. Thanks for resources, I will check them out and will let you know how it goes.

Thanks again for the performance warning, I will keep it in mind, and that is something I cannot sacrifice.

 

Dmitrij

 

You must be logged in to post in the forum