Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am creating product by program calling the product service. I am adding the product to the default inventory.
Sample program
var catalog = _warehouseService.GetDefaultWarehouse().WarehouseCatalogs.FirstOrDefault();
product.AddToCatalogInventory(catalog);
_productService.Save(product);
But when retrieving
throws error
var product = _productService.GetBySku(ProductCode);
if (product != null) { var catalog = product.CatalogInventories.First(x => x.ProductVariantKey == product.ProductVariantKey);
}
Cant find catalog
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Merchello Product Catalog not saved
I am creating product by program calling the product service. I am adding the product to the default inventory.
Sample program
var catalog = _warehouseService.GetDefaultWarehouse().WarehouseCatalogs.FirstOrDefault();
product.AddToCatalogInventory(catalog);
_productService.Save(product);
But when retrieving
throws error
var product = _productService.GetBySku(ProductCode);
}
Cant find catalog
is working on a reply...