Jump to content

Override doesn't work


B S

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...