Ractor Posted April 11, 2018 Share Posted April 11, 2018 favorite I tried to create override for classOrderCore, located in /classes/order/Order.php. The result I put in /override/classes/order/Order.php with following content: class Order extends OrderCore { /** * Generates reference number. * * Overriten to have reference numbers numeric only. */ public static function generateReference() { return strtoupper(Tools::passwdGen(9, 'NUMERIC')); } } After doing this nothing happened. Additionally I tried following (with the same unsuccesful result): Delete cache using backoffice Delete manually cache/cache_index.php Disable overrides, delete cache in the BO and cache/cache_index.php and enable overrides afterwards Can you tell me, where could be the catch? I'm using Prestashop v. 1.6.1.18. Thanks Link to comment Share on other sites More sharing options...
Ractor Posted April 11, 2018 Author Share Posted April 11, 2018 So the catch was pretty basic, as it usually is. I forgot to add <?php to the beginning of the file. 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