justasking Posted August 6, 2017 Share Posted August 6, 2017 Hi, I'm trying to override ./classes/checkout/CheckoutDeliveryStep.php, I've placed my new edited file in ./override/classes/checkout/CheckoutDeliveryStep.php but it doesn't work. I have disabled cache and removed all files from ./cache folder but it still won't work, placing the file in ./override or ./override/classes/ gives no result also. Please help, it's very important for me to get any feedback asap. Link to comment Share on other sites More sharing options...
Scully Posted August 6, 2017 Share Posted August 6, 2017 Delete the file class_index.php in the cache directory. Link to comment Share on other sites More sharing options...
justasking Posted August 7, 2017 Author Share Posted August 7, 2017 I have disabled cache and removed all files from ./cache folder but it still won't work. Link to comment Share on other sites More sharing options...
Scully Posted August 7, 2017 Share Posted August 7, 2017 it still won't work is not quite exact description. Do you get an error message or does the override have no effect. If the latter is the case, try do add some debug messages to logfile in order so see if your code is triggered at all. Link to comment Share on other sites More sharing options...
justasking Posted August 7, 2017 Author Share Posted August 7, 2017 (edited) I doesn't get anny error, the override has no effect at all and is not being triggered (I added print(), var_dump() to test). Edited August 7, 2017 by justasking (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted August 7, 2017 Share Posted August 7, 2017 Check the file class_index.php in ./cache path. Find out if your override is listed there. As an example for another override, you shoud see something like this 'path' => 'override/controllers/front/OrderDetailController.php', Of course with your own modules override name and path. Link to comment Share on other sites More sharing options...
justasking Posted August 7, 2017 Author Share Posted August 7, 2017 My cache is disabled, therefore there's no files in ./cache folder at all. Link to comment Share on other sites More sharing options...
Scully Posted August 7, 2017 Share Posted August 7, 2017 Have you checked your servers error logfile? Maybe it gives a hint on some kind of errors? Otherwise I don't have any more options for you. You haven't mentionned it but I guess you are running a 1.7 version of ps. I am more familiar with the ones up to V 1.6.xx. Link to comment Share on other sites More sharing options...
Evgenii Pavlov Posted March 25, 2018 Share Posted March 25, 2018 same problem 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