anupama.synicsys Posted January 5, 2015 Share Posted January 5, 2015 Hi, I tried to override OrderConfirmationController to do some actions after successfull order placement. As per the prestashop 1.6 documentation i tried to override OrderConfirmationController by placing OrderConfirmationController.php in modules/mymodule/override/controllers/front/OrderConfirmationController.php and the code as follows class OrderConfirmationController extends OrderConfirmationControllerCore{ public function displayOrderConfirmation() { echo 'test'; exit; }} But its not working. Default function only getting called. I tried by deleting class_index.php also. Please help.. Link to comment Share on other sites More sharing options...
belenos31 Posted January 6, 2015 Share Posted January 6, 2015 you must to delete /cache/class_index.php file Link to comment Share on other sites More sharing options...
bellini13 Posted January 6, 2015 Share Posted January 6, 2015 you really should create a module that uses the correct orderConfirmation hook. creating an override is not necessary for this type of thing. 1 Link to comment Share on other sites More sharing options...
jprr773 Posted January 23, 2015 Share Posted January 23, 2015 Hi, I tried to override OrderConfirmationController to do some actions after successfull order placement. As per the prestashop 1.6 documentation i tried to override OrderConfirmationController by placing OrderConfirmationController.php in modules/mymodule/override/controllers/front/OrderConfirmationController.php and the code as follows class OrderConfirmationController extends OrderConfirmationControllerCore { public function displayOrderConfirmation() { echo 'test'; exit; } } But its not working. Default function only getting called. I tried by deleting class_index.php also. Please help.. I had a similar issue with PS v 1.6.0.11 . This was what I did: In the backoffice, go to Performance->Advanced Parameters->Debug mode and check button «Disable all overrides» if YES, I think it will not load the override modules... Link to comment Share on other sites More sharing options...
Recommended Posts