Basobaso Posted October 2, 2013 Share Posted October 2, 2013 Hi In prestashop 1.5.4 how it is possible change order_id to NOT HAVE it with characters, i need order_id only with numbers (e.g. next order increased by 1) where to set it ? Do i need to change the code somewhere ? Thanks for your help Baso Link to comment Share on other sites More sharing options...
tuk66 Posted October 2, 2013 Share Posted October 2, 2013 The order numbers are still numbers - id_order. Just in some cases the reference (RDFCZFZT) is displayed. You can find both fields in the ps_orders table. Link to comment Share on other sites More sharing options...
Basobaso Posted October 2, 2013 Author Share Posted October 2, 2013 Thanks And how it is possible to change refference (generation) ? Link to comment Share on other sites More sharing options...
tuk66 Posted October 2, 2013 Share Posted October 2, 2013 The reference is created in the generateReference() function (/classes/order/Order.php). Link to comment Share on other sites More sharing options...
Basobaso Posted October 2, 2013 Author Share Posted October 2, 2013 I found in /classes/order/Order.php line 1381: public static function generateReference() { return strtoupper(Tools::passwdGen(9, 'NO_NUMERIC')); } changed to: public static function generateReference() { return strtoupper(Tools::passwdGen(9, 'NUMERIC')); } going to test it now.. Link to comment Share on other sites More sharing options...
nadie Posted October 2, 2013 Share Posted October 2, 2013 Check free module: http://www.prestashop.com/forums/topic/218257-module-change-order-reference-using-order-id-andor-cart-id/ Sorry for my English 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