CustomDiscountLevelInfoProvider

Top  Previous  Next

This class works with discount level information. It uses the CMS.Ecommerce.DiscountLevelInfo class.

 

void DeleteDiscountLevelInfo(int discountLevelId) deletes the given discount level.
object GetDiscountLevelInfo(int discountLevelId), object GetDiscountLevelInfo(discountLevelCodeName) - returns the DiscountLevelInfo for the specified discount level.
void SetDiscountLevelInfo(object discountLevel) - updates discount level.
object GetAllDiscountLevelInfo() - get all discount levels
object GetAllDiscountLevelInfo(string where, string orderBy) - get all discount levels filtered by where condition and ordered by orderBy expression.
void AddToDepartment(int discountLevelId, int departmentId)- assigns specified discount level to the department. It means that discount is applied only to products from the specified departments then.
void RemoveFromDepartment(int discountLevelId, int departmentId) - removes specified discount level from the department.
DataSet GetDepartments(int discountLevelId) - returns DataSet of all the departments to which the specified discount level is applied.