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.

0
votes
1answer
395 views

Save SKU from Observer

I am having some trouble with Magento Observers. What I am trying to do is: as I am saving a custom product in my adminhtml form I want to my the product sku with a 3rd party API sku. To do this I ...
0
votes
1answer
217 views

Invalid product id. Should be numeric value greater than 0

I have created custom button on Adminhtml Product edit page and it's showing fine. When I hit the button it's redirecting to Product List page and throwing Error. Error: Invalid product id. Should ...
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 ...
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. ...
1
vote
2answers
2k views

adding new admin page to backend(magento 2)

I can get into the execute() function if I do not run the construct function. but I cannot find the bug in my __construct function. The file is \app\code\Cleargo\Contactus\Controller\Adminhtml\Grid\...
1
vote
1answer
170 views

Magento controller override not working in other systems

I have installed Magento CE 1.9.2.4 in my local system. Now I have successfully overrided the Admin >> CMS >> Static Block controller in my local system in such a way that when I save any ...
4
votes
1answer
862 views

Magento 1: how to properly redirect from an admin controller observer?

Ok, so I want to do some validations when submitting the mass update product attributes. I've setup an observer like this: <adminhtml> <events> <...
1
vote
2answers
7k views

Magento 2: how to redirect from an admin controller

In Magento 1, we were able to do the following directly in a controller action method : $this->_redirect('*/*/index'); Or in a more generic way: $this->_redirect('adminhtml/controller/action')...
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 ...
1
vote
2answers
300 views

Magento2 error when making reference for a module controller

I think I am misunderstanding the concepts of reference when it comes to controllers. Reference class <?php namespace Vendor\Module\Controller\Adminhtml\Index; use Magento\Ui\Controller\...
1
vote
1answer
761 views

Cannot write a file

I need to write file by pushing retrieved data in to text file. But the file not write. This is the relevant code section. This code section contains within function in controller. $...
0
votes
1answer
671 views

How to call a function in PHP file in another folder by a controller in custom module?

I need to call PHP function within my custom module controller. But the relevant PHP file contain in different folder. How I solve this? ` <?php function doLog($text) { // open log file $filename ...
1
vote
2answers
5k views

Magento2 custom admin controller always redirects to the admin index page

I've created custom extension in the admin panel under the menu of products. The problem is that I can't get the controller working. Code as fallows: in etc/adminhtml/menu.xml: <config xmlns:xsi="...
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 ...
2
votes
2answers
4k views

How to create menu and it's controller in magento 2

I want to add my custom menu in admin and also want to add related controller for that. So how can I do that?
0
votes
2answers
37 views

Parse syntax error when accessing CMS->Pages inside admin

I am getting the following PHP fatal error and blank white screen when trying to access the CMS >Pages page inside admin: Parse error: syntax error, unexpected '%' in Mage/Adminhtml/...
0
votes
1answer
216 views

Call admin controller from another server

My team and I are building a Magento website for a client and we need to regularly perform data exports from another server to the Magento server. I'd like to call a custom admin action from another ...
17
votes
5answers
12k views

Magento 2 Custom Admin Action Redirected to Dashboard

I am taking the Magento 2 fundamentals development course and the Admin Router / Controller exercise seems out of date. The router does work, but the controller does not, it always just re-routes to ...
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
109 views

SUPEE-6788 Patch CMS Pro News/Blog by MageWorld not working

I'm preparing my Magento module config.xml file for SUPEE-6788 security patch, following this post http://magento.com/security/patches/supee-6788-technical-details According to this post, I need to ...
3
votes
1answer
215 views

Magento Adminhtml Controller looking for the wrong URL

So I'm trying to make an Admin menu for a module I'm developing. The menu itself displays fine but when I click on it I get a 404 page. This is my code: Jiri/Servicepunten/etc/config.xml <...
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
1answer
431 views

override admin system account controller in magento

click System > My Account When I click on 'save account' button,it will call saveAction() method,saveAction() location is "Mage/Adminhtml/controllers/System/AccountController.php",I tried to ...
4
votes
2answers
618 views

How to add common logic to all module controller actions?

I have module with license based.I have to check license is valid or not in my all controllers. Now Actually i'm placing my logic in each action. Is there any better way to check logic & ...
1
vote
1answer
3k views

Custom module controller 404 error

My controller is not being read by Magento though and I can't find my error. I would like it to extend the admin sales order info controller and pass a variable to the renderLayout(). config.xml: &...
-1
votes
2answers
2k views

Custom Admin controller not working

I am developing a module & created admin controller but working on url mymagentosite.com/index.php/admin/transaction/index show error:There has been an error processing your request error in the ...
2
votes
1answer
738 views

Display Block on Custom Admin Page

This should be a fairly easy one, I hope. I've looked over Alan Storm's tutorial on the topic a hundred times, but still can't figure out what I'm missing. I just want to get my custom admin page to ...
2
votes
1answer
70 views

Overwrite admin controller in version 1.6

I am trying to overwrite the controller located at: app/core/code/Mage/Adminhtml/controllers/Catalog/ProductController.php First of all I tried just making a copy in my local code directory app/local/...
2
votes
2answers
1k views

Dynamic hide form fields for different action

I have 2 action in IndexController: newAction() and editAction(). Both those actions will use a same form (about 5 inputs: First Name, Last Name, Email, Status, Example) But in the newAction(), I ...
5
votes
1answer
3k views

Is it necessary to override _isAllowed in your Admin controller?

The _isAllowed method is where you, as a Admin Panel programmer, should place your ACL checks. As you can see, by default, this method returns true. That means if you don’t define your own ...
0
votes
2answers
251 views

Controller method does not work

I'm using Magento 1.8.1.0 community edition. I have managed to add a custom admin controller and the default indexAction() method does work. However, if I try to access the other method, ...
3
votes
2answers
237 views

How can I point admin action method to other than `indexAction()`?

In my module, I am setting up my menu like this. <menu> <catalog> <children> <rkt_arattr translate="title" module="rkt_arattr"> <...