I currently have this functionality in place for a decimal value, but I also need it for a checkbox. Below is what I have for the decimal value, how can I replicate this for my check box value?
Code:
if (decimal.TryParse(txtGift.Value.ToString().Replace("$", ""), out number))//93
{
addItemToCart("Gift of ", number);
addDonations(number, 93);
addOnTotal = addOnTotal + number;
}