Timeline for How to override a bad extensions controllers?
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 7, 2014 at 13:52 | comment | added | Rajeev K Tomy | @Marius : As your wish :) | |
Aug 7, 2014 at 13:48 | comment | added | Marius♦ | @programmer_rkt. I don't think that was not really in the scope of the question. As the OP said he considered this 'general knowledge'. | |
Aug 7, 2014 at 13:45 | comment | added | Rajeev K Tomy | @Marius : I think what i have answered here is a continuation of your answer. So it would be useful to otheres if you mention my answer on your answer. What do you think ? | |
Aug 7, 2014 at 13:39 | history | edited | Marius♦ | CC BY-SA 3.0 |
deleted 20 characters in body
|
Aug 7, 2014 at 13:39 | comment | added | Marius♦ | @Ash. I will edit the answer to remain here for posterity | |
Aug 7, 2014 at 13:37 | vote | accept | Ash | ||
Aug 7, 2014 at 13:36 | comment | added | Ash |
@Marius haha I know right! Well, that worked thanks :) Also I was being blind too - it's ProductsController which I corrected and I followed your suggestion about the _Adminhtml namespace
|
|
Aug 7, 2014 at 13:36 | comment | added | Rajeev K Tomy | @Marius : what about my answer ? is that a necessary one ? | |
Aug 7, 2014 at 13:31 | comment | added | Amit Bera♦ | yes, @Marius is right... wrong declaration of controllers | |
Aug 7, 2014 at 13:29 | comment | added | Marius♦ |
Ok, then try to lose the _Adminhtml in the code above and move your controller file also inside Vendor/AdvancedStock/controllers/ProductController.php . Damn, that's a badly written extension.
|
|
Aug 7, 2014 at 13:28 | comment | added | Ash | @Marius that is correct. | |
Aug 7, 2014 at 13:27 | comment | added | Marius♦ |
@Ash. You mean there is a ProductController that is used for admin and it is not inside an Adminhtml folder in the extension?
|
|
Aug 7, 2014 at 13:27 | comment | added | Rajeev K Tomy | @Ash : Most probably this controller would be a frontend controller. Are you sure it is an admin controller ? Can you provide the class that extend this controller here ? lcoation and its name confuses me ! | |
Aug 7, 2014 at 13:24 | comment | added | Ash |
This didn't seem to work; the extension class is: MDN_AdvancedStock_ProductController and my class is Vendor_AdvancedStock_Adminhtml_ProductController in ./local/Vendor/AdvancedStock/controllers/Adminhtml/ProductController.php
|
|
Aug 7, 2014 at 13:18 | history | answered | Marius♦ | CC BY-SA 3.0 |