B S Posted January 29, 2019 Share Posted January 29, 2019 Hello, I want to replace a function in CartController.php (Front). I want to use Override. When i just duplicate native CartController.php with replacing class by CartController extends CartControllerCore and copy it in override/front directory. When I add a product to cart there is a internal server error. Please help me. Thanks. Benjamin. Link to comment Share on other sites More sharing options...
joseantgv Posted January 29, 2019 Share Posted January 29, 2019 1 hour ago, B S said: Hello, I want to replace a function in CartController.php (Front). I want to use Override. When i just duplicate native CartController.php with replacing class by CartController extends CartControllerCore and copy it in override/front directory. When I add a product to cart there is a internal server error. Please help me. Thanks. Benjamin. Enable errors. Link to comment Share on other sites More sharing options...
JBW Posted January 29, 2019 Share Posted January 29, 2019 Wrong directory I guess, should be override/controllers/front - see https://devdocs.prestashop.com/1.7/modules/concepts/overrides/#overriding-a-controller 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