1) What Server language? (I'll answer in php)
Most likely you would add a column to your cart for the category.
Then you would add a calculation like:
TotalDiscount = (([category] == '03')?([TotalPrice] * 0.25):0)
Then add a discount that is equal to the total of the TotalDiscount column in the discount tab.