protected List <cart_items> get_cart_list() { int group_id = 0; Rain.Model.users userInfo = this.GetUserInfo(); if (userInfo != null) { group_id = userInfo.group_id; } return(ShopCart.GetList(group_id) ?? new List <cart_items>()); }
public static cart_total GetTotal(int group_id) { return(ShopCart.GetTotal(ShopCart.GetList(group_id))); }