kerintis Posted February 12, 2016 Share Posted February 12, 2016 I have created override for /override/classes/order/order.php it works on 1.6.1.3 but for some reason its not working for 14 version. <?php Class Order extends Ordercore { public static function generateReference() { $last_id = Db::getInstance()->getValue(' SELECT MAX(id_order) FROM '._DB_PREFIX_.'orders'); return str_pad((int)$last_id + 1, 9, '000000000', STR_PAD_LEFT); } } Whats wrong here ? Link to comment Share on other sites More sharing options...
NemoPS Posted February 13, 2016 Share Posted February 13, 2016 Because on 1.6.1.4 they are disabled by default in the performance preferences. Check that out 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now