Commerce Server General - createVariant method

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > December 2004 > createVariant method





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author createVariant method
CreateVariants method

2004-12-19, 5:47 pm

Hello,
i'm trying to create a product variant in my catalog using this:
CatalogManagerClass oCatMgr;
ProductCatalog oPrdCat ;
Product oPrd;
oCatMgr = new CatalogManagerClass();
ADODB.Recordset MyRs= new ADODB.Recordset();
oCatMgr.Initialize(Common.AppConfig.CommConnString,true);
oPrdCat = oCatMgr.GetCatalog("catalogName");
oPrd = oPrdCat.GetProduct("1234");
oPrd = oPrd.CreateVariant("1234-1");

it doesnt seem to work - whats wrong with my code?
Amir

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com