happy fred Posted June 13, 2015 Share Posted June 13, 2015 (edited) Hello, If I want to modify OrderCore class I should have to put inside /override/classe/order directory my custom Order Class that extends OrderCore class but I can't find which methodes I've to extend. I would like generate invoice number like this : YYYYMMDD0001, YYYYMMDD0002, YYYYMMDD0003 etc... In Order.php I've found the method below, Is the method that I have to extend ? Or is there another methods to modify ? public static function getLastInvoiceNumber(){ return Db::getInstance()->getValue(' SELECT MAX(`number`) FROM `'._DB_PREFIX_.'order_invoice` '); } } Please, someone could help me ? Thank you. Best regards, Fred Edited June 13, 2015 by zefri (see edit history) Link to comment Share on other sites More sharing options...
pishkus Posted June 13, 2015 Share Posted June 13, 2015 Take a look at this free module: https://www.prestashop.com/forums/topic/433999-free-module-order-reference-change-module/ Link to comment Share on other sites More sharing options...
happy fred Posted June 13, 2015 Author Share Posted June 13, 2015 Take a look at this free module: https://www.prestashop.com/forums/topic/433999-free-module-order-reference-change-module/ Hi Pishkus, Thank you for you reply but some people seems to have troubles with this add-on since Prestashop latest update... Regards, Fred Link to comment Share on other sites More sharing options...
pishkus Posted June 13, 2015 Share Posted June 13, 2015 Did you have any troubles? Anyway, if you do have troubles, you can at least look at the module code to see what you should override. 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