How to inherite / override index controller?

Hi testseeders,

you misunderstood a key-concept here. You shouldn’t change the controller itself. You need to rely on a distpach-event.
Here’s a short overview: Shopware controller

But actually you should start here: Plugin quick Startup Guide

If you read it until the end and understand it, you should be able to solve the problem.

Best regards