Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [admin-controller]

Denotes questions related to Admin Area's Controller. A controller is a part of Model-View-Controller Architecture.

5
votes
4answers
3k views

Magento 2 - Backend custom module 404 error

I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu ...
2
votes
4answers
4k views

How to send ADMIN AJAX request?

I need to retrieve some information from my custom admin controller using AJAX. But when AJAX is used I get current page's entire HTML ! I simply want to get some JSON data from my custom ...
1
vote
4answers
693 views

Can't access magento 2.1.3 admin getting some error

While trying to access the admin panel i got following error. This was shown up from yesterday up to that time i don't have any issue 1 exception(s): Exception #0 (Magento\Framework\Exception\...
3
votes
2answers
108 views

Controller function not working after overwrite afterExecute : M2

Di.xml <type name="Magento\Catalog\Controller\Adminhtml\Category\Save"> <plugin name="mymodule" type="Module\Name\Plugin\Controller\Adminhtml\Category\Save"/> </type> ...
2
votes
2answers
1k views

Error While Compiling Magento 2 admin page module

I'm getting error while compiling the Magento 2 admin module. The error which I'm getting is Fatal error: Class Tutorial\SimpleNews\Controller\Adminhtml\News contains 1 abstract method and must ...
0
votes
2answers
704 views

Fatal error: Uncaught Error: Call to undefined method getDirectoryRead()

I have a controller that works and does what i need it to do if i manually add a path like: $mediaImages = '/magento/pub/media/images/'; But i cant get the DirectoryList injection to work, it returns ...
0
votes
2answers
983 views

How to call adminhtml controller?

I want to call my custom adminhtml controller on form action. see my config file admin please and how to call controller. <?xml version="1.0"?> <config> <modules> <...
0
votes
2answers
508 views

How to pass array from admin controller to grid block

What I need is pass some json data to grid block and display it in a grid. I have created admin module and successfully recieve json data. But I dont know how to pass json to block. class ...
4
votes
1answer
577 views

Magento 2 Blank Layout Page

I tried to create a new tab in customer edit backend. First i create the app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
4
votes
1answer
64 views

Add order status while placing order from admin Magento 1

I want to add a custom dropdown for the order status in the create an order page from admin. Admin can choose the order status while placing the order. Please see attached screenshot!!! Or Can i set ...
3
votes
1answer
1k views

Ajax not working in Magento 2 admin

I'm using ajax in Magento 2 admin. But it not working. My controller: class CustomAjax extends \Magento\Backend\App\Action{ protected $resultJsonFactory; public function __construct( \Magento\...
1
vote
1answer
223 views

call block from controller via ajax

I call controller function from phtml via ajax, it calls controller function Now i am trying to call block function in controller it is not working Controller code public function __construct( ...
1
vote
1answer
33 views

Can I make separate controller for AJAX actions? (Magento 1.x)

I have my custom module and everything works fine, but I would like to create separately controller for AJAX actions (AjaxController). Currently I Have only IndexController. Everytime I get: {"error":...
1
vote
1answer
639 views

Magento 2.2.5: Overriding Admin Controller sales/order

I need to override Admin sales/order/index controller, but still getting 404. Below the Steps I take to override - Created My Custom Module app/code/A2bizz/Order/registration.php <?php \Magento\...
1
vote
1answer
183 views

How do I implement store switcher through controllers?

How do I implement store switcher through controllers instead of using block template to implement store view like this: <forum_admin_adminhtml_forum_edit> <reference name="left"> ...
0
votes
1answer
85 views

Magento2 Admin UI Component: On fileUploader ajax completion in ui component, how can I reload the page it is on?

I have a grid that just shows a collection of a specific table. below is a file upload component that I want to use for CSV upload, that will replace all old collection. Image reference is below: ...
0
votes
1answer
47 views

Magento 2 Custom admin module not working

I have created my custom module for order export and this is working fine in my magento 2.5 and magento 2.6 but this OR any other module is installed in my magento 2.2 it will not show in admin and ...
0
votes
1answer
184 views

How to get selected Order Ids in block from Sales Order Grid? Magento2

I want to generate PDF of selected orders, Rest of the functionality is complete just wanted to get selected Ids from sales order grid. For now I am getting full list of Orders on clicking my custom ...
0
votes
1answer
191 views

Magento 2 Programmatically set theme for specific stores

Programmatically How can set a theme for specific stores in Magento 2.1
0
votes
1answer
28 views

Extending Core Controller without Custom Module

I want to extend a core controller: app\code\core\Mage\Adminhtml\controllers\CustomerController.php I simply want to customise the one of the functions. I have created the following file: app\code\...
0
votes
1answer
197 views

Magento 2 admin user role not custom menu

Hi my custom menu not showing admin user role. etc/adminhtml/menu.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
1answer
86 views

Why does magento wait for a request to complete before processing others?

I have added a script to an admin page on a magento site to initiate a long running process and periodically query the progress using AJAX (or XHR) requests so that it can update a progress bar. The ...
0
votes
1answer
43 views

Contents are showing above the header

I have just created a new module and in controller echo some text so it is showing above the header how i can wrap it under the header as the other module showd: Following is my Controller code: ...
0
votes
1answer
63 views

create an action anytime an order is canceled

For instance, i'm trying to send an API call when an order is cancelled. Shouldn't this work? /** * Cancel order */ public function cancelAction() { if ($order = $this->...
0
votes
1answer
262 views

Get list of All products and transfer to different store

I want to get a list of all the products in my Magento stores. the problem is configurable and grouped products. i want to transfer products to another server with external framework, i want to get ...
4
votes
0answers
38 views

System stuck on a controller on live instance does not return any thing nor redirect

I am duplicating the category tree with products works fine on my system while checking on live instance. scenario Duplicate category and subcategory but not products works fine. Duplicate category ...
3
votes
0answers
51 views

Extension works fine on local system but on live instance it gives me error

Can someone please give me some detail about my issue. I am duplicating categories along with the product on my local system it works fine although it takes little more time but works fine on my live ...
2
votes
0answers
290 views

Magento 2 adminhtml layout.xml not loading

The Controller File works fine, die('dasdsa') works. But i am not getting any result on the Backend Page except the Title Change within the Controller. I Guess it's just something simple :X Classy/...
2
votes
0answers
279 views

I want to upload image in each static block of magento

I have not much expertise in magento so please pardon me if i am doing pretty much wrong. I am using Magento ver. 1.9.3.2 I want to add a new image field in magento static block. I want to use this ...
1
vote
0answers
35 views

Magento 2 - How to pass parameter from menu.xml

Is there any way to pass a parameter to controller from menu.xml file? Actual URL : http://127.0.0.1/mg231/admin/vendor/module/index/key/...
1
vote
0answers
57 views

Code refactor : replace model with repository

I am trying to refactor code of app/code/Magento/Cms/Controller/Adminhtml/Page/Delete.php by replacing \Magento\Cms\Model\Page with \Magento\Cms\Api\PageRepositoryInterface and removing direct use of ...
1
vote
0answers
92 views

Magento2 backend Reorder issue

I need to display the Order custom attribute values in magento2 admin re-order page. I tried the code like $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $session = $...
1
vote
0answers
50 views

Can two modules work in local directory with different name and controller functions

I am creating local module for overriding core controller of magento ProductController.php. I created two local folders Module1 and Module2 with accessibility of ProductController.php init. My ...
0
votes
0answers
16 views

Magento 2.3 Admin product Detail show as tabs

Is there a extension that make the Admin Product detail showing in tabs instead of accordion? Liz
0
votes
0answers
29 views

How to add massaction in product grid in magento 1

What is the easiest way to add add mass action to product grid using only observer and controller(no block). I would like to see a simple example because it is the first time I create it.
0
votes
0answers
14 views

Magento 1.9 custom module for managing admin users in different role

Am working on a custom module for managing admin users in a custom role. Just finished the grid section. I need to edit the listed users, also a add form. I just tried by overriding the 'Mage/...
0
votes
0answers
28 views

Magento 1.9 admin menu is going to 404!

I am using custom module to getting tax report. It is working fine on demo site. Below is the etc/config.xml: <?xml version="1.0" ?> <config> <modules> <DS_News> ...
0
votes
0answers
28 views

Custom action won't work?

My Customized controller seems not work. Added new method which suppose to update some values in table, here is my method: public function reorderAction() { Mage::log('=> test',true,'...
0
votes
0answers
32 views

Show Model PoPuP after executing massAction in Magento 2?

I have a custom massAction after executing the function I need to show the model popup. In my case, I am sending the multiple requests to web service and storing the array of messages if I use below ...
0
votes
0answers
18 views

2 Different keys are being genereated, Admin Grid action column-> edit link and page created after clicking save and continue butotton

I have created a Module, I created an admin grid and crud operations. All are working fine when I disabled secret key form store configuration. In show secret key in url my Edit action and Delete ...
0
votes
0answers
34 views

how to get selected categoryIds in magento 2?

I want to get selected categoryId to save it : $productObj->setCategoryIds(selectedCategoryId); $productObj->save();
0
votes
0answers
443 views

Magento 2.0 Pass custom input in phtml to controller

I want pass an input data from phtm file to controller. I create a js file and I can get the value of input that I want pass but how I pass this value to controller only with JavaScript (no Jquery). ...
0
votes
0answers
23 views

Sales OrderController.php moved to my app > local folder and added some custom code

THE ORIGINAL IS STILL IN PLACE. I'm writing a custom module stored in (local folder) and API (restful api) and i need to know in admin when an ordered is cancelled manually through Sales > Orders. ...
0
votes
0answers
114 views

Controller used to handle tracking numbers on order shipments

I can't seem to find the controller responsible for the handling of tracking numbers on order shipments (in the admin). I have an issue where entering a tracking number, then hit Save (supposedly ...