Developer forum

Forum » Development » Merge products

Merge products

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

in a project I am working on, I have a special need to merge 2 products.

To put it in context, I have a product that is defined by sync with ERP. The product is defined with a few properties and we have implemented a few validations in order to keep the SKU and EAN unique in the system.

I the second step in the enrichment flow, the Admin would have to populate the attributes, images and assets on the newly synched products.

The need for optimization comes when you have multiple products sharing the same assets and attributes values. In these case, the admin would normally "Copy" an existing product and change the SKU, EAN and possibly the name of the product.

In our case, copying an existing product would not work. What I would need to do is "Merge" an ERP defined product with the Assets and attribute set of another product.

What would be the best approach to accomplish something like this? For me, it is partially similar to the "Combine" functionality.

Any idea or suggestion will be highly appreciated.

Thank you,
Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

Anybody?

Thank you,
Adrian

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Adrian,

Unfortunately, there isn't a standard way to do this. You will have to create something custom to do it. Depending on your needs, you may want to hook into the notification that is fired then the import finishes and update the synchronized products.

- Jeppe

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Jeppe,

Thank you very much.

I was expecting this but I was hoping for a miracle :)

I don't actually want to handle it via import but rather as a manual operation from ProductList or ProductDetail in PIM.

But I definitely see the challenges for supporting this. I was hoping to be able to use the "Duplicate/Copy" functionality.

Thank you,

Adrian

 

You must be logged in to post in the forum