cancel
Showing results for 
Search instead for 
Did you mean: 

Change instance of TypeA to TypeB (TypeB inherits from TypeA)

Former Member
0 Kudos

Hello,

Everything is in the title, I have some products in my hybris database that are simple 'Product' but now these products needs use variants so i'd like to "transform" them to VariantProduct.

1/ Deletion of product isn't possible since I have already orders on this product 2/ Changing itemType in hmc/ImpEx isn't allowed by Hybris platform 3/ I requested if our backend team could resend the product using new type/new ref so it will be recreated in hybris as totally new products but I don't know yet if it will be possible.

Do you have any other suggestion to perform this change?

Best regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I am new to Hybris so forgive me if i am saying anything wrong, but i think... Export all the products to a impex file then take all the details of products and update those details to VariantProduct table. This way new VariantProduct objects will be created but with Product details.

Former Member
0 Kudos

That would require that I delete the "old" Product to avoid duplication of product code (same code on Product and VariantProduct, which isn't allowed). And since I have orders on these products, i'd rather not delete them.