Hi,
I am adding products to a Catalog using Catalog API.
I create a Product & a Inventory SKU.
BUT in site Inventory is not reflected, for all the products I get "Out of
Stock" message. Could this be because of "No Variant" getting created?
How do I remove the "Varient" being mandatory? because for our product we
do
not have Varients.
The Code is
Product oProd = baseCatalog.CreateProduct("LPProdDef", sProductID,
dOriginal_Price, sCategory,....);
oProd["Manufacturer"] = sManufacturer; //custom property
oProd.Save();
// Get the product family from the catalog.
ProductFamily productFamily =
(ProductFamily)baseCatalog.GetProduct(sProductID);
// Add the variant to the product family.
productFamily.AddVariant(sProductID);
//now save the inventory...
InventorySku oSku =
oLPInventoryCatalog.CreateSku(sCatalogName, sProductID, dQuantity,
StockStatus.Enabled);
oSku.Backorderable = true;
oSku.StockOutThreshold = 1;
oSku.Save();
Regards
Peter


|