I might be missing the big picture here, but why don't you access the SeoInformation directly. Would be easier that way
Pseudo code:
var seoInfo = commerceContent as ISearchEngineInformation;
if(seoInfo != null)
{
seoInfo.SeoInformation.Title = "...";
//save stuffs
}
The commerceContent is a variant or product and the SeoInformation is internal block property on that product or variant.
var seoInfo = commerceContent as ISearchEngineInformation;
Wouldn't that give me just null? I can't think that that line of code would give me the property SeoInformation from the commerceContent?
This is a part of a tranlations plugin so I do not always know the name of the property of type SeoInformation, it could be anyting.
No it's not an internal block. It's from ISearchEngineInformation, which is implemented by EntryContentBase and NodeContent. If your commerceContent is defined as a CatalogContentBase then it's not publicly visible (may be that's why), but if you defined it as EntryContentBase or one of the derived classes, you should be fine.
Hi!
After upgrade to Commerce 11 I cannot update an internal block on a page by setting the propertyData.Value. The property looks ok before publishing, it has values but they doesn't show up in the Episerver edit after publish.
This is waht the Code used to look like:
This used to work just fine but after upgrade the values are not published.
Has something changed or maybe I am missing something?
Thanks!
/Kristoffer