Product Types in the Ecommerce module are now shared across all the sites of your Multi site installation of Sitefinity CMS. This means that you can just define product types once and use it on any of your sites unlike 6.0 where Product Types have to be defined for each site. Product Types are separated from rest of the catalog and moved to their own shared provider, hence the breaking change in 6.1.
CatalogManager catalogManager = CatalogManager.GetManager();
//Get All Product types
var productTypes = catalogManager.GetProductTypes();
//Get single product type
var productType = catalogManager.GetProductType(Guid.NewGuid());
//pass the right id
//Create product type, below steps + any meta data persistence
var newProductType = catalogManager.CreateProductType();
//delete product type
EcommerceManager ecommerceManager = EcommerceManager.GetManager();
var productTypes = ecommerceManager.GetProductTypes();
var productType = ecommerceManager.GetProductType(Guid.NewGuid());
var newProductType = ecommerceManager.CreateProductType();
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 © 2021 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