Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

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

The bugfix has been released in EPiServer.Commerce 13.29.0 (Feb 03, 2021)

Feb 04, 2021 3:03
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.