IeM Posted May 21, 2013 Share Posted May 21, 2013 (edited) Prestashop 1.5.4.1 I've done it before but I can't override the OrderCore class in my current build using Prestashop 1.5.4.1 for the first time. I have made a file: /override/classes/order/Order.php As a test I've included: class Order extends OrderCore { public function __construct(){ echo "test OrderCore override<br>"; } } Before I put the __construct() in, I had my usual functions copied from my Prestashop 1.5.3.1 build that worked there. When they didn't work in my update, I removed them and put in the __construct() for testing and it does not trigger the echo. When I put my custom functions in the OderCore class they work, but I do not want them left there for obvious reasons. Any ideas? Thanks Edited May 21, 2013 by IeM (see edit history) Link to comment Share on other sites More sharing options...
Paul C Posted May 21, 2013 Share Posted May 21, 2013 Did you delete cache/class_index.php after you added your override file? If not then it will be ignored and the "Core" class gets used instead. 1 Link to comment Share on other sites More sharing options...
IeM Posted May 21, 2013 Author Share Posted May 21, 2013 Hi Paul, thank heaps for helping out. You are correct, deleting the cache/class_index.php file did the trick. Thanks again. Link to comment Share on other sites More sharing options...
amerigeau Posted June 6, 2013 Share Posted June 6, 2013 (edited) Did you delete cache/class_index.php after you added your override file? If not then it will be ignored and the "Core" class gets used instead. This works like a charm...but just 1 hour after beginning debugging... Edited June 6, 2013 by pouss1 (see edit history) 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