cikidihi Posted December 2, 2009 Share Posted December 2, 2009 i want to customize order_id to something like "09110001" where 09 is year, 11 is month and 0001 is auto increament number.i know i have to change source code to make this work. i already try to looking for files that contain source code for create order_id. But still cannot find it until now.Can someone tell me in which directory and in which file(s) the code for creates order_id is? Link to comment Share on other sites More sharing options...
presta-dyr Posted December 2, 2009 Share Posted December 2, 2009 Orders are added via classes/Order.php. The inherited method add() from classes/ObjectModel.php will do an SQL insert that auto-increments the ID. I looks like you want to specialize the add method in classes/Order.php./Kjeld 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