LauraPresta Posted July 12, 2018 Share Posted July 12, 2018 Hello guyz, Just a little question, and i make some description because i know it will intrest some other people I need to add a prefix to order reference for exemple : PREKLKLKLKLK instead of original KLKLKLKLK reference i changed generateReference (in class order/order.php) to : public static function generateReference() { $temp = strtoupper(Tools::passwdGen(9, 'NO_NUMERIC')); return ('PRE'.$temp); } and in DB table order i had to change 'reference' structure from varchar(9) to varchar(12) At first look everything work nice, but do you think i may have some trouble in the future ? (for any reason i could'nt discover right now ?) Link to comment Share on other sites More sharing options...
LauraPresta Posted July 12, 2018 Author Share Posted July 12, 2018 damn i was so sure Property OrderPayment->order_reference length (11) must be between 0 and 9at line 909 in file classes/ObjectModel.php 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