I am developing a tool for migrating data from Sitecore to Kentico. I'm looking for a way to create a product with two different cultures using Kentico API 9. I want to extract data from Sitecore and store it to Kentico using API.
I've checked out the Kentico documentation and it provides us with code to create a product:
// Gets a department
DepartmentInfo department = DepartmentInfoProvider.GetDepartmentInfo("NewDepartment", SiteContext.CurrentSiteName);
// Creates a new product object
SKUInfo newProduct = new SKUInfo();
// Sets the product properties
newProduct.SKUName = "NewProduct";
newProduct.SKUPrice = 120;
newProduct.SKUEnabled = true;
if (department != null)
{
newProduct.SKUDepartmentID = department.DepartmentID;
}
newProduct.SKUSiteID = SiteContext.CurrentSiteID;
// Saves the product to the database
// Note: Only creates the SKU object. You also need to create a connected Product page to add the product to the site.
SKUInfoProvider.SetSKUInfo(newProduct);
But I can't figure out how to create a multi-culture product with attachments per culture.
Would any one help or recommend a different way to migrate data from Sitecore to Kentico?