I noticed a function "apply_total_discount" in the sales.php file in the model folder. I desperately want this feature, can you shed some light as to how this function works and whether it does work or not? I'm an intermediate php programmer. Thanks.