White Lion Posted June 11, 2015 Share Posted June 11, 2015 Hello all members.I'd like to use "Numeric Order Reference" with my prestashop store.Alphabetical order id, like "ZXCRGDSNK" is like a word. Most of my customer think that shoud be a number.I used below method to change "Alphabetical Order Reference" to "Numeric Order Reference" with my prestashop store runs on v 1.5.3.1Fdit the file " /classes/order/Order.php ", and edit the line like below.return strtoupper (Tools :: passwdGen (9 'NO_NUMERIC'));to:return strtoupper (Tools :: passwdGen (9 'NUMERIC'));Few days ago I've upgraded my store to PS v1.6 and used same method.It is working correctly.But most of Prestashop experts told me, "Do not edit CORE FILES". Use "override".I tried to do "override".I've edited " /classes/order/Order.php " line 1522 and move that file to " /override/classes/order/Order.php".But it is not working correctly.Please tell me the correct "override" method to change "Alphabetical Order Reference" to "Numeric Order Reference" 1 Link to comment Share on other sites More sharing options...
mcdado Posted August 4, 2015 Share Posted August 4, 2015 You can do it yourself, but this module I made does exactly what you said: Download Link You can look at the code itself on how to perform an override via module. In case you don't want to do it via module (even though it's more easily managed via module since you can uninstall) you just place the file in the override folder, make sure you use the right class name and extend the …Core class with the same name. 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