Skip to main content

Questions tagged [adminhtml]

Questions about extending the Magento admin panel and the admin theme

Filter by
Sorted by
Tagged with
45 votes
1 answer
2k views

Magento 2 Adminhtml spreading forms across multiple tabs

I'm attempting to create a backend module, where in my edit page I use admin-2column-left layout. I want to have a form on each tab, but I don't know how I can do this. Ideally, I would like to know ...
Stephen Fritz's user avatar
34 votes
3 answers
23k 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....
zitix's user avatar
  • 2,192
24 votes
4 answers
29k 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 ?
Ashish Jagnani's user avatar
22 votes
2 answers
3k 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: ...
Hunter's user avatar
  • 1,484
19 votes
5 answers
48k 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?
karthick's user avatar
  • 675
19 votes
2 answers
6k 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?...
Alana Storm's user avatar
  • 44.4k
18 votes
1 answer
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....
hammygoonan's user avatar
17 votes
1 answer
4k 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 ...
Alana Storm's user avatar
  • 44.4k
16 votes
2 answers
9k 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 ...
Sander Mangel's user avatar
15 votes
3 answers
18k 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 ...
Priyank's user avatar
  • 7,702
14 votes
3 answers
16k 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, ...
Colin O'Dell's user avatar
  • 1,215
14 votes
4 answers
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 ...
tony09uk's user avatar
  • 1,707
14 votes
1 answer
3k 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 ...
Priyank's user avatar
  • 7,702
13 votes
3 answers
55k 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. ...
khan's user avatar
  • 331
12 votes
25 answers
51k views

Magento2 admin menu panel doesn't work

magento2 dashboard: All admin menu links don't work and have a strange icon. Why it's not working? Does anyone have any idea? I can't do anything.
eugenio's user avatar
  • 121
12 votes
2 answers
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,...
Fabian Schmengler's user avatar
12 votes
1 answer
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?
Alana Storm's user avatar
  • 44.4k
12 votes
1 answer
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 ...
Rob Mangiafico's user avatar
11 votes
3 answers
23k 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 (...
LinoPham's user avatar
  • 3,778
11 votes
1 answer
11k 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 /...
krupal patel's user avatar
11 votes
2 answers
11k 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 ...
Kampaviineri's user avatar
11 votes
1 answer
2k 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/...
Shashank Kumrawat's user avatar
11 votes
1 answer
2k 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:...
CarComp's user avatar
  • 1,256
10 votes
3 answers
27k 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
Pradeep Kumar's user avatar
10 votes
2 answers
17k 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="...
Giel Berkers's user avatar
  • 12.3k
9 votes
2 answers
11k views

Customise a custom product attribute input renderer in Magento 2 the right way

I'm facing to a very ridiculous trouble, I added a custom product attribute with source model, backend model as a select box. Everything works fine (my custom attribute will get the values from a ...
Toan Nguyen's user avatar
  • 3,059
9 votes
3 answers
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 ?
Fra's user avatar
  • 6,985
9 votes
1 answer
7k views

How to get dropdown in action column in magento admin grid

I want to get dropdown of edit & delete in action column of admin grid in magento2 as like mention in the image. How it is possible? $this->addColumn( 'delete', [ 'header' =>...
Rohan Hapani's user avatar
  • 17.5k
9 votes
1 answer
2k views

Magento 2 Ui Component Difference between <setting> & <argument> node

I am developing one custom module in Magento 2.2.2 where I have referenced some internet blog and Magento core extension like cms-page or cms-block. In their grid_listing.xml files wrote code ...
Himanshu's user avatar
  • 1,761
9 votes
3 answers
3k 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): ...
Zinat's user avatar
  • 2,069
9 votes
1 answer
3k 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 ...
Peter O'Callaghan's user avatar
9 votes
2 answers
2k 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
surya's user avatar
  • 605
9 votes
2 answers
2k 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/...
Josef's user avatar
  • 511
9 votes
3 answers
3k 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 ...
jurgen's user avatar
  • 395
8 votes
5 answers
14k 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 ...
Verdu's user avatar
  • 1,730
8 votes
3 answers
25k views

Magento 2 get custom module image url from backend

I used <?php echo $this->getViewFileUrl('Vendor_Module::images/demo.jpg'); ?> <?php echo $block->getViewFileUrl('Vendor_Module::images/demo.jpg'); ?> But it's working only ...
Prince Patel's user avatar
  • 22.8k
8 votes
4 answers
40k 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 ...
Jeffrey L. Roberts's user avatar
8 votes
2 answers
27k 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' =...
Tyler V.'s user avatar
  • 2,987
8 votes
3 answers
15k 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/...
njwrigley's user avatar
  • 165
8 votes
3 answers
10k 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.
Manish's user avatar
  • 3,116
8 votes
1 answer
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') ->...
Pradeep Sanku's user avatar
8 votes
2 answers
6k 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 ...
maginfortis's user avatar
8 votes
6 answers
11k 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 ...
CVEEP's user avatar
  • 493
8 votes
3 answers
15k views

Magento 2: How to override Adminhtml "Shipping & Handling Information" Information

I'm following https://ranasohel.me/2015/10/02/how-to-overwrite-sales-view-order-phtml-file-in-magento2/ I would like to override magento\vendor\magento\module-shipping\view\adminhtml\templates\order\...
Jackson's user avatar
  • 9,939
8 votes
2 answers
2k 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 ...
Megha's user avatar
  • 81
8 votes
1 answer
4k views

Magento 2 ui component form without database table

I want to add a UI component form in the admin panel. It is just sending email, no need of database storage. I want to redirect to my form when I click my menu "Send Coupon". I have tried the below ...
Jancy Abraham's user avatar
8 votes
4 answers
4k views

Show/Hide a field in an admin form based on value of another field

My module has 2 tabs. In one, there is a text field for an API Key. In the other, a select field gets populated based off an HTTP request that is made with the API Key. I have all this working fine. ...
maxedison's user avatar
  • 181
8 votes
3 answers
323 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?
benmarks's user avatar
  • 16.7k
8 votes
2 answers
1k views

ACL Role Resource Default

Let's say we add some new resources to the ACL like so: <acl> <resources> <admin> <children> <catalog> <...
Peter O'Callaghan's user avatar
8 votes
1 answer
2k views

How to create admin grid without db collection in Magento - 2

My requirement is to display a grid of data from a web service with search and sort functionalities. Currently what I am doing is, storing all the data from the web service into a db table and ...
user43415's user avatar
  • 375

1
2 3 4 5
34