CustomSKUInfoProvider

This provider manages the products (SKUs). It uses the SKUInfo class.

 

object GetSKUInfo(int sKUId) returns the SKUInfo object selected by given ID.
object GetSKUInfo(Guid sKUGuid) - returns the SKUInfo object selected by given GUID.
void SetSKUInfo(object sKU) updates/inserts the SKU record from given SKUInfo object. If SKUID is set, updates, else inserts a new record.
void DeleteSKUInfo(int sKUId) deletes specified SKU record.
bool CheckDependencies(int sKUId) returns true if some objects depend on given SKU.
DataSet GetSKUs() returns the DataSet of all products. See database reference for detailed column information
DataSet GetSKUs(string where, string orderBy) returns DataSet of products selected with condition and order.
DataSet GetSKUList(string where, string orderBy) returns the DataSet of product list. Result contains the SKU data and public and internal status display name.
bool IsSKUInWishlist(int userId, int skuId) - returns true if the given SKU is present in the user's wish list
void RemoveSKUFromWishlist(int userId, int skuId) - removes the given SKU from wish list of the given user
DataSet GetWishlist(int userId) - returns the content of wish list for the given user as a DataSet

 

Read also: Using the Product datalist web part