Created
March 12, 2015 15:52
-
-
Save bunnywong/516e9a6d01c82e331d43 to your computer and use it in GitHub Desktop.
Opencart - Fix reward as product price
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE oc_order_product SET reward = total | |
WHERE name LIKE '%以上%' | |
AND (quantity * price - reward) < 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment