opencart/opencart — pull request #1245 by pine3ree (2014-03-07 22:12:49+00:00)
Title: remove possible unused query

If a special price exists for a product it will always override any discount price. Check special first, if not found then query for discounts.