We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [adminhtml]

Questions about extending the Magento admin panel and the admin theme

Filter by
Sorted by
Tagged with
42
votes
1answer
1k views

Magento 2 Adminhtml spreading forms across multiple tabs

I'm attempting to create a backend module, wherein on my edit page I use admin-2column-left layout. I want to have a form on each tab, but I do not understand how I can do this. Ideally, I would like ...
34
votes
3answers
22k views

How to update admin routers of custom module for patch SUPEE-6788

I'm not sure how to update custom modules to work with the SUPEE-6788 patch, the instructions are not very clear. Based on Alan Storm's tutorial, I created a simple module in the generator www....
22
votes
2answers
2k views

Create tab and insert custom grid inside tab

I created a grid by following this tutorial, I would like to create 4 grids more, the problem is I need to add all these grids to tab so far I've created a controller to load the block like this: ...
18
votes
1answer
2k views

Patch 5994 is causing module Adminhtml 404 Status Error

I applied the Patch 5994 the other day and it has caused the admin section of a module I build to throw a 404. Has anyone else had this. The module is fine on the frontend though. It's Magento 1.8.1....
17
votes
1answer
3k views

Long Running Admin Page Requests Blocking Other Requests

If I'm logged into Magento's backend and perform some task that takes a long time (global search on large catalogs, long running dataflow, etc), my web browser will refuse to load other admin pages in ...
16
votes
2answers
11k views

Magento 2 : How to add custom css for adminhtml?

I need to add CSS file for Admin side in my custom module. How can I add this for Admin (back-end) only ?
16
votes
2answers
3k views

Magento Grid Component not Sorting Correctly

I've configured a grid component in Magento -- and the sorting behavior seems broken. Where can I debug this on the javascript level, and/or does anyone else have any idea why this might be happening?...
16
votes
3answers
10k views

Get Base Url Or Dynamic Url In view Js or html files

I figure it out to get dynamic url in the front end if I need I can simply define mage/url and the use it as url.build('<Modulename>/<controllername>/<action>/') When I tried the ...
15
votes
2answers
8k views

Best way to add a dynamic grid as input in custom extension Adminhtml

I've build a custom store locator extension with it's own grid and edit pages in the Adminhtml and everything works great. For the opening hours of the stores I would like to implement a dynamic grid ...
14
votes
4answers
14k views

setSaveParametersInSession() on a non-object

I'm getting setSaveParametersInSession() on a non-object It is on an admin module the path is Training/Distributor/Block/Adminhtml/ in this folder i have Distributor/Grid.php and Distributor.php ...
14
votes
3answers
15k views

Add new column to sales_flat_order_grid

How can I add a new column to the sales_flat_order_grid table and ensure that values are properly inserted there? The "source" for the new column is a custom column we've added to sales_flat_order, ...
13
votes
1answer
1k views

Magento 2 Add Category Tree Renderer Input With Modal Button

I am trying to place the category input for my custom form using uicomponent form. I am able to create dropdown but how I can create the button and open a new modal from it? Can I create a button ...
12
votes
23answers
39k views

Magento2 admin menu panel doesn't work

magento2 dashboard: All admin menu link don't work and have a strange icons. Why? I can't do anything.
12
votes
2answers
1k views

How is the start page of System Configuration (admin/system_config/index) defined?

I often notice that the start page of the system configuration (System > Configuration in admin panel) differs from installation to installation. Instead of showing the General > General section,...
12
votes
1answer
2k views

What's the Deal with the “Hint” Tag in system.xml?

I've found opaque reference to a <hint/> tag in system.xml files. What's the deal with this tag? Is its use documented anywhere?
12
votes
1answer
2k views

Magento swf XSS vulnerability - How to address it?

Per the SWF / Flash vulnerability listed at: http://appcheck-ng.com/unpatched-vulnerabilites-in-magento-e-commerce-platform/ which I've verified does still exist in Magento 1.9.1.0, what is the best ...
11
votes
1answer
9k views

Magento 2 System Configuration for Module issue

I visited many sites for find solution of this issue. But after creating system.xml and acl.xml Magento give me a report generated error. Error a:4:{i:0;s:140:"Notice: Undefined index: id in /...
11
votes
1answer
745 views

Customer Attribute not showing in adminhtml customer account form in Magento Enterprise 2.2.0

I have created module "Wgac_Subscription". I want to create custom customer attribute. It is listed in admin as shown in below image, but does not show in customer adminhtml form. Wgac/Subscription/...
11
votes
1answer
922 views

How can I trigger code to run after knockoutjs render in adminhtml

UPDATE: You can access the viewmodels directly. If you need to trigger code to run after a render, use MutationObserver. I'll post my code as soon as I have a good working example. Original Question:...
10
votes
5answers
20k views

Magento 2: How to retrieve admin URI?

I forgot to take note of the admin URI during installation. Is there a way to retrieve it?
10
votes
1answer
13k views

How to get current Website ID in the Admin Panel?

I working with a custom extension related with multiple websites. I face with an issue, define a script code execute in the Admin Panel by getting Website Id. I expected result website_id like 0 (...
10
votes
4answers
20k views

How to create Admin Grid in Magento2?

I am trying to create module in magento2, now i stuck creating grid page in admin side, let me know if any one already did
9
votes
3answers
17k views

Best Practise to Add Custom Tab in Product Details (backend)

I would like to add an extra tab to the product details ( backend ) and I don't want to perform any override, if possible. What is the best way to accomplish this ?
9
votes
2answers
12k views

How can I add a custom field to an admin form in Magento 2?

I've created a form in the admin using UI components, so in my view/adminhtml/ui_component/[module]_[entity]_form.xml I have the following: <field name="configuration"> <argument name="...
9
votes
1answer
2k views

How do you add a session message after session_write_close is called?

We use the excellent uRapidFlow module by Unirgy, but have ran into a bit of an annoyance. When you run one of their profiles, they call session_write_close. The problem with this is that it means if ...
9
votes
2answers
1k views

how to increase the width of date field in admin grid

How to increase the width of date field in admin grid while searching the value is cut-off. Please See the image below
9
votes
1answer
1k views

Redirect to previous URL after admin login

I want admin users to be redirected to the url they opened after login. They should get links to a custom module page in the admin area, like https://magento.example/index.php/admin/...
9
votes
1answer
2k views

How to add time range picker to adminhtml form in Magento 2?

In Magento 2's devdocs pages there is an example of time range picker. But ,i can not find any examples of how to add it in my backend form for creating/editing of custom model. Have anyone any idea ...
8
votes
2answers
25k views

How to create a custom grid filter

I have added a custom grid column using the field URL in a custom database: $this->addColumn('url', array( 'header' => Mage::helper('companymodule')->__('Has Website'), 'align' =...
8
votes
3answers
13k views

Getting current admin username into <body> class or id

In the admin backend I would like to add a class to the body tag of all admin pages which prints out the name of the admin users currently logged in. In app/design/adminhtml/default/default/template/...
8
votes
3answers
35k views

What is my magento admin dashboard login url

I recently installed magento on web and don't remember login these links are not working and throw Whoops, our bad... The page you requested was not found, and we have a fine guess why. ...
8
votes
1answer
4k views

Magento customer grid _prepareCollection() override is not working

I had override _prepareCollection() method of Mage_Adminhtml_Block_Customer_Grid and added following lines ->addAttributeToSelect('cus_city') ->addAttributeToSelect('cus_country') ->...
8
votes
2answers
6k views

Magento Add Condition Rule In A Custom Form in magento 2

I want to add condition action in custom module admin form. How can I achieve this? Refer link for Magento 1.9 Replacement of above link for Magento 2.
8
votes
5answers
9k views

Adding a column to export but hiding from the grid?

I've created a custom report. The report has a significant number of fields in it which are required for when it's exported in CSV form. What I'm trying to figure out is if there's a way to omit the ...
8
votes
2answers
4k views

Get URL of the static content folder (for backend)

Inside a block class which is being used to render a button in the admin panel, how to get the URL of the static content folder? Specifically, URL of the folder with images? For example, in ...
8
votes
2answers
972 views

ACL Role Resource Default

Let's say we add some new resources to the ACL like so: <acl> <resources> <admin> <children> <catalog> <...
7
votes
5answers
6k views

Magento 2.1 Ui Component : Hide and show field base on dropdown field

I have a dropdown which shows day's status ;either close or open selectable form a dropdown. If the status is close , I want to collapse and hide the open and close timings within that particular ...
7
votes
4answers
35k views

How to get current store id from current scope in admin

How do I get the store id of the current scoped store in the admin? For instance, if I use the drop down box in the upper left hand corner, and change the scope to a store view, how would I get the ...
7
votes
3answers
9k views

How to add a Total row in a magento grid

I'm creating a new module that uses a order grid for particular product(this is not the report grid) in magento admin i successfully create new order grid for that but i want to get total price for ...
7
votes
1answer
6k views

Adminhtml - How to add custom template for custom product attribute

I already added custom tab and custom attribute like this. I also created a custom column in database for attributes, called custom_values. Now I want to add custom template for this attribute (in ...
7
votes
2answers
16k views

Override a controller in Adminhtml

Currently I'm trying to override the GroupController of Mage_Adminhtml_Customer so I can add some code for saving my custom field in the Customer Groups menu. As you can think it doesn't really work ...
7
votes
6answers
3k views

How to make the fields of the fieldset multidependable?

I have a fieldset in the admin panel with one parent select (has 5 options) and 2 fields, which should be displayed in case the parent value select will be 3, 4 or 5. I have not found the examples of ...
7
votes
2answers
8k views

How to enable custom admin theme in Magento 2

I have followed the instructions here: How to create admin theme for Magento2 and here: How to change backend admin theme in Magento 2.0.7 + and I still dont understand what I'm supposed to do to ...
7
votes
3answers
4k views

Magento 2 add extra button in backend

I'd like to add another button in the backend on the cms page edit view. So I've created a module (with the help of: https://community.magento.com/t5/Programming-Questions/Overriding-a-block-in-...
7
votes
2answers
4k views

dynamic key => value pair adminhtml setting for custom module

I have a custom module with adminhtml setting (system.xml), which allows the the user to assign a unique "code" to a specific shipping method. It looks something like this: As you can see, this is ...
7
votes
1answer
2k views

How to add serializable attribute to category?

I tried this $installer->addAttribute( 'catalog_category', 'ser_attr', array( 'input_renderer' => 'namespace_module/block', 'backend' => 'adminhtml/...
7
votes
3answers
6k views

How to extend backend template files in Magento 2

I could not find how to extend backend template files in Magento 2, however i have found how to extend frontend template files from here. If I extend the file at design/adminhtml/Magento/backend it ...
7
votes
1answer
659 views

How to remove Delete option from massaction dropdown for specific user role in Magento2?

I have different user role for my website. For a particular user role, I want to remove "Delete" from mass action dropdown which displays on customer grid in admin section. The Delete option is got ...
7
votes
3answers
2k views

What could cause error related to “dashboard/tunnel/key”

There is below information in the log, but no idea what could cause this :( a:5:{i:0;s:45:"Unable to read response, or response is empty"; i:1;s:1003:"#0 lib/Varien/Http/Client.php(61): ...
7
votes
3answers
313 views

How can I properly add additional columns to the sales order grid?

Is there a way (or several ways) to add additional columns to the sales order grid which one sees in the admin area?