Setting default value did not work when creating product content


Hi Guys,

I am working on Episerver Commerce version 13.25.

I have had a defined product content type and some culture specific properties.

I want to set default value for some certain properties once a new product is created or translated. I added the setting default value by overriding SetDefaultValues like this

        public override void SetDefaultValues(ContentType contentType)
            //Insert code here

But it seems the default value is only set to master the language. I saw that the default settings like this still works well if the content type is from CMS, not Commerce.

Do you have experience like that? Please help me if you have any idea to fix this problem.


Edited, Oct 26, 2020 4:23

Hi @Binh Nguyen,

This is a bug and we are fixing it (COM-12485).

Hopefully, it will be released in the next Commerce release (13.28.0)

Thank you for bringing this into our attention 

Best regards,
Khiem Nguyen

Dec 24, 2020 7:07

It is so great! Thanks for your information

Dec 25, 2020 3:18
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.