Up until Sitefinity CMS 6.0, Ecommerce module did not track who the owner of the product is. Starting with 6.0 it now tracks the owner of any newly created product. Since we never had owner information before, it is hard to guess the owner of the product. If an upgrade is run under a certain user (i.e. you logged in as admin and then you run the upgrade) the current user (admin) is picked as the owner of the product automatically. If you did not run the upgrade logged in as the desired user and want to change the owner of the product later on, use the script below:
Guid currentUserId = Telerik.Sitefinity.Security.SecurityManager.GetCurrentUserId();
(var catalogManager = CatalogManager.GetManager())
var products = catalogManager.GetProducts().Where(p => p.Status == Sitefinity.GenericContent.Model.ContentLifecycleStatus.Master && p.OriginalOwner ==
productLive.Status = Sitefinity.GenericContent.Model.ContentLifecycleStatus.Master;
(currentUserId != Guid.Empty)
masterProduct.Owner = currentUserId;
masterProduct.OriginalOwner = currentUserId;
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2022 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity