Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server Catalog > CatalogClassTyp...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 719 of 763
Post > Topic >>

CatalogClassTypes.AllClassTypesClass never returns all class types

by "Nick Champion" <nick.champion@[EMAIL PROTECTED] > Nov 22, 2006 at 10:08 PM

Hi,

I want to retieve all products from a category including the products 
variants in a single dataset, however when I set the CatalogClassTypes to 
AllClassTypesClass the variants are not returned.

I have performed a trace on the stored procedure calls and the i_ClassType

property defaults to 12, however when I change this to 63 (All Class
Types) 
and execure in query analyser I get the variants included on the dataset.

Here's the code

CategoryConfiguration categoryConfiguration = new CategoryConfiguration();
    categoryConfiguration.LoadChildProducts = true;
    categoryConfiguration.ChildProducts.SearchOptions = new 
CatalogSearchOptions();
    categoryConfiguration.ChildProducts.SearchOptions.PropertiesToReturn =

Helpers.GetDefaultProductPropertiesToReturn();
    categoryConfiguration.ChildProducts.SqlWhereClause = 
Helpers.GetDefaultSqlWhereClause();
    categoryConfiguration.ChildProducts.SearchOptions.ClassTypes = 
CatalogClassTypes.AllClassTypesClass;
    categoryConfiguration.InventoryOptions = 
Helpers.GetDefaultInventoryOptions();

    try
    {
     //Attempt to get the Category's child products
     products = CatalogHelper.GetCatalog().GetCategory(categoryName, 
categoryConfiguration).ChildProducts.DataSet;
    }
    catch (Exception ex)
    {
     bool rethrow = ExceptionPolicy.HandleException(ex, 
"BasePlatformPolicy");

     if (rethrow)
      throw;
    }

Can anyone enlighten me as to why I cant get all class types out in a
single 
call.

Thanks

Nick
 




 1 Posts in Topic:
CatalogClassTypes.AllClassTypesClass never returns all class typ
"Nick Champion"  2006-11-22 22:08:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Nov 23 7:05:17 CST 2008.