CustomOptionCategoryInfoProvider

Top  Previous  Next

This class works with product option category information. It uses the CMS.Ecommerce.OptionCategoryInfo class.

 

object GetOptionCategoryInfo(int optionCategoryId) returns the OptionCategoryInfo object selected by given ID.
void SetOptionCategoryInfo(object manufacturer) updates/inserts the product option category record with data from given OptionCategoryInfo object. If CategoryID is set, updates the record, if not inserts the record.
void DeleteOptionCategoryInfo(int optionCategoryId) deletes the specified option category record.
bool CheckDependencies(int categoryId) returns true if some objects depend on given product option category record.
DataSet GetOptionCategories() returns the DataSet of all the product option categories. See database reference for column details.
DataSet GetOptionCategories(string where, string orderBy) - returns the DataSet of all the  product option categories filtered by where condition and ordered by orderBy expression.
DataSet GetSKUOptionCategories(int skuId, string where) returns the DataSet of all the option categories which are assigned to the specified SKU filtered by specified where condition.
void AddOptionCategoryToSKU(int categoryId, int skuId) - assigns option category to the specified SKU.
void RemoveOptionCategoryFromSKU(int categoryId, int skuId) - removes option category from the specified SKU.
void SortProductOptionsAlphabetically(int categoryId)- sorts product options of the specified option category alphabetically (A-Z).