| Max Akbar 2004-02-07, 9:37 am |
| Use the following code to add products but first read the xml file and based
on it's structure you need to iterate the nodes and get the related product
information then add the product into Commerce Server. You will need to set
references to ADODB and the Catalog Interop.
CatalogManagerClass CatMgr = new CatalogManagerClass();
CatMgr.Initialize("sCatalogName", "bIsDBConString");
IProduct prd = PrdCat.CreateProduct("ProductDef", "varProductID", "Price",
null);
_Recordset rs = prd.GetProductProperties;
rs.Fields["ProductDefValues"].Value = "";
prd.SetProductProperties(rs, true);
good luck,
-Max
"Zach" <anonymous@discussions.microsoft.com> wrote in message
news:bc1e01c3ecc7$77a142d0$a401280a@phx.gbl...
> i need to insert products stored in an xml file into my
> product catalog does anyone have any examples of how to do
> this using c#.
>
> thank you
|