opencart/opencart — pull request #2341 by thesjg (2014-11-25 00:10:44+00:00)
Title: $total isn't valid in this context

Check $discount_total against $sub_total instead of $total -- this seems appropriate given tax calculation, may want to check against $product['total'] instead?