This question already has an answer here:
I am trying to create a simple task as follows:
1. Write a custom controller
2. create a cart if it is not created
3. add a product to the cart
came accross this code that is similar.
I need to know a few things:
1. In which folder should i place my custom controller?
2. Which parent controller class should my controller extend?
3. what will be the url for the controller?
</div>