Questions tagged [adminhtml]

Questions about extending the Magento admin panel and the admin theme

421 questions with no upvoted or accepted answers
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 ...
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 ...
7
votes
1answer
427 views

Multiple Image browse in custom admin form Magento 2

I have created a custom form in the backend and it is working fine for single image browse. If I select only one image then it is working fine. My requirement is, I want to select multiple images with ...
7
votes
1answer
452 views

Generate get parameter in XML layout Admin

I have a custom extension that generate grid using XML, the problem is that I need to add button which will generate link with a get parameter from get request that passed via url, the xml code for ...
6
votes
1answer
2k views

Mass action in custom grid block Magento 2 not showing

I've created a product grid block following this tutorial, right now i want to add new massAction item but the mass action field won't show up in the toolbar grid, here's the xml file: <?xml ...
6
votes
0answers
75 views

Why is admin logging me out?

I go to the admin login in Chrome after clearing all cookies and everything. First thing I check Chrome cookies. I see only one cookie. Name: adminhtml Domain: .mysite.com Path: / Created: ...
5
votes
1answer
69 views

Set custom tab in customer edit page Active

I created a custom tab for customer edit page in backend like this: app/code/Namespace/Module/view/adminhtml/layout/customer_index_edit.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
5
votes
1answer
115 views

How to Add customized error message in magento 2 admin form

<item name="config" xsi:type="array"> <item name="label" xsi:type="string" translate="true">My Custom Filed</item> <item name="dataType" xsi:type="string">text</item&...
5
votes
1answer
441 views

Magento 2 :- How can i add tab in customer group?

I tried to create new tabs as per the customer tab, add in admin side, but I am getting the error so can any one help me. How can i do this thing? I refer this link for that 1) http://www.dckap.com/...
5
votes
0answers
128 views

Magento 1.9x - Include Dataflow Profile Functionality for Import operation into my custom module

I have created custom module for import operation by uploading csv, xls and ods files. It is working good, but now i need to include Dataflow Profile Functionality into my module. That means I have ...
4
votes
1answer
137 views

Product edit page move tabs to sidebar

In the default layout for the admin product edit page, we have an accordion style setup. This is really annoying as you have to scroll down several pages every time you want to edit an option that's ...
4
votes
0answers
79 views

Magento 2 Admin Notifications - what makes a notification popup when the admin user logs in?

Occasionally, an admin notification can pop up when an admin user logs into the Admin Panel. The popup usually shows in an orange style box and can be closed easily, but not all poups show like this. ...
4
votes
0answers
353 views

How to display and save extension attributes on Magento 2 Admin create order page

I have created extension attributes to order for rest API services. Also, I'm able to display the attributes on the order grid. How can I display the same attributes on admin create order form and ...
4
votes
1answer
367 views

Support Multiselect Attribute in Admin Grid Column without UI

I'm extending a Magento 2 module which doesn't use UI. I've added a new column for a custom attribute to the module's Admin grid. However, I'm trying to change the attribute to a multiselect, and I ...
4
votes
1answer
67 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 ...
4
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\...
4
votes
2answers
2k views

Fatal Error, setActive = setActiveMenu appears right, erroring out

Magento 2.1 EE I'm getting a fatal error: Fatal error: Uncaught Error: Call to a member function setActive() on boolean This is in: vendor/magento/module-backend/App/AbstractAction.php on line ...
3
votes
0answers
38 views

Add Product Selection to Admin Form

I have developed a module for Magento 2 for Promotions. I have a form for this which is working and contains basic information: Title Description Price Start Date End Date I now need to add "...
3
votes
0answers
222 views

Magento 2 Uncaught Error: Script error for: tinymce

Magento 2.3 version In admin pages,i am getting this error - Failed to load resource: the server responded with a status of 404 (Not Found) Uncaught Error: Script error for: tinymce http://...
3
votes
1answer
143 views

Magento2 : How to show button in admin for custom module page?

I want to show the button in my custom module (admin page) but I am getting an error I want to add a button and how I add action process for that button i already tried this answer : (https://...
3
votes
0answers
831 views

How can I pass a URL parameter to admin grid data provider?

I have a custom admin grid, which lists only the orders that contain the product given as a URL parameter. My URL is of form https://www.example.com/admin/mymodule/orders/index/product_id/123/ I ...
3
votes
3answers
395 views

form content goes into tab section issue Magento2

I am creating a form for admin but my form content display on tab section instead of content area, I have tried several possibility but never succeed, so someone can guide me at some point to resolve ...
3
votes
1answer
527 views

Magento 2 filter_condition_callback

How can I perform the same logic of filter_condition_callback of Magento 1 in Magento 2 I have a country column which I save comma separated values in db I have managed to create the filter but I am ...
3
votes
0answers
313 views

Magento2 : Override Admin Js file

I am working on Magento 2.1 CE. My current active Theme is the Default LUMA Theme I wish to override the CORE Modules "bundle-input-type.js" located in "vendor\magento\module-bundle\view\adminhtml\...
3
votes
0answers
212 views

Add upload field from code at new product form - Magento 2.1

I'm developing an extension that adds an additional upload field to the product edit form. In Magento 2.0.x I could just simple add an input and the file would be added to the post. Now, with Magento ...
3
votes
0answers
396 views

How to apply Backend Theme in Magento 2?

I have created a new admin theme under app/design/adminhtml. I verified that the new theme gets deployed as well. I am using bin/magento setup:static-content:deploy Unlike in the frontend there is ...
3
votes
2answers
2k views

Create custom “Catalog Input Type for Store Owner” for magento 2

I need to create a special input type in adminhtml product form. My input will display as a table but save data as a standard text input. Following the module Edge ProductAttachments I've created the ...
3
votes
0answers
72 views

Where admin ajax grid filter logic?

I want to know where Magento handle the filter of admin grid For example, when you search something in the grid, how it handled the search and reload the grid? Thank you very much.
3
votes
1answer
1k views

Custom renderered column sorting not working magento2

I have created the custom grid with one custom column(Products) by renderer method which shows product name. When I tried to apply sorting it looks the custom table in which other columns exists but ...
2
votes
1answer
34 views

Magento2.3.1 How to add customer grid mass action link reset forget password and custom reset forget email sent to customer

I am using Magneto 2.3.1 and how to add customer mass-action inside link add reset forget password and when select customer sent to email for customer, but email not use in default Magento our custom ...
2
votes
0answers
39 views

Magento 2 Is there a way to use product chooser in ui component form (NOT BLOCK)?

Im building module using ui components and need product chooser in my form. But can't find any useful info related to product chooser implementation using ui component. Is it possible to do this ...
2
votes
1answer
303 views

How to make drop-down dependent on another drop-down value in admin ui component Magento 2

I want to update one drop-down option on the change of another drop-down using UI Component in Magento admin section. Like: have one drop-down with color option ex: Red, Pink, Black, etc. and another ...
2
votes
1answer
42 views

Add Manufacturer in Related product grid in magento 2

I want to add the manufacturer column in the Product edit form section in the backend in the Related Products, Up-Sells, and Cross-Sells tab. I have to also add a filter for the manufacturer in the ...
2
votes
0answers
30 views

Magento1 admin product image upload issue

I have installed Magento1 Patch SUPEE-8788 in my local system. But I have an issue, in Admin Panel, Product Image Upload Browse Button is Not Working. 1 File: app\code\core\Mage\Adminhtml\Block\Media\...
2
votes
0answers
96 views

Add popup on clicking custom button in product edit page in admin in magento 2.3

I have added a custom button in product edit page using product_form.xml like below : app/code/Company/Module/view/adminhtml/ui_component/product_form.xml <?xml version="1.0" encoding="UTF-8"?>...
2
votes
0answers
62 views

Disable button for certain user groups/roles

How to disable certain buttons of the features to specific roles in the admin panel. For eg If the role "tester" is given access to view feature in sales/customize-feature in the admin panel, he ...
2
votes
1answer
29 views

Increase number of shown related products in the administration (Magento 2)

When you edit a product in the magento administration the number of items listed in the related products, up-sells and cross-sells list is limited to 20. Also there is no possibility to change this ...
2
votes
1answer
100 views

how to add onclick method in magento2 admin custom module page?

my edit.php file in magento admin custom module $this->addButton( 'approve', [ 'label' => __('Approve'), 'onclick' => 'deleteConfirm('...
2
votes
1answer
360 views

Magento 2 dynamic admin config

I'm working on a custom module. I need a admin config section with dynamic options. The idea is to have a list of all enabled shipping methods. Next to each method i need a select dropdown with ...
2
votes
0answers
18 views

Set product attribute “comment” from backend

No time for coding actually, so I just want to ask if maybe someone already has a working solution (w/o rewrites) :) I just want to add a text input field to "edit product attribute" page, that show "...
2
votes
1answer
172 views

magento 1.9 open adminhtml menu external link in new browser tab

I need to add a link in the admin menu to an external web that opens in a new browser tab. So I developed a module, and this is its config.xml <frontend> <routers> <crmlink&...
2
votes
2answers
2k views

Magento 2 How to do export products csv & xml from admin end?

I would like to implement export catalog products functionality from admin end from custom module. I have followed below steps for displaying export button at admin end catalog > products but unable ...
2
votes
0answers
200 views

Setting custom product attribute value in magento 2

I have used below code to change the value of custom attribute when the product is viewed in admin. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
1answer
129 views

Magento2 - adminhtml_customer not showing in Forms to Use In

I have programatically created a customer attribute and set it to be displayed in adminhtml_customer. All is good, the attribute is being displayed only in the admin customer edit section as desired. ...
2
votes
0answers
241 views

Magento 2 : How to remove the default Store langauge code from the URL

I have integrated multi language stores one for "EN" and second for "DE" After changed options "Add Store Codes to URL"=>"YES" (Magento2:: System -> Configuration -> Web -> Add Store Codes to URL=>...
2
votes
1answer
63 views

Magento admin showing multiple icons on buttons

I see multiple icons on all admin buttons, please have a look at the screenshot below And I see that Magento is spitting two extra span tags while it should wrap the button text in single span tag ...
2
votes
0answers
370 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
1answer
2k views

Magento 1.9 add layout and template to custom module in admin

I am new to Magento. When I try to create a custom module that shows two tabs on the main page with the option to change titles, backgrounds, and colors, I was successful in adding the module's tab ...
2
votes
0answers
236 views

Grid Serializer Magento 2.2 In product edit page - adminhtml

module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module....
2
votes
1answer
297 views

Add block after shipping methods on admin page

I want to add a <select> element after the shipping methods. I've created a layout file in Company\MyModule\view\adminhtml\layout\sales_order_create_load_block_shipping_method.xml <?xml ...