Questions tagged [adminhtml]

Questions about extending the Magento admin panel and the admin theme

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

uicomponent form add new button for modal

I have build a custom form using uicomponent I want to add a button and on click want to open a modal with product grid. How can I achieve this using uicomponent form ?
0
votes
1answer
754 views

Why does my custom adminhtml form select element have two options selected?

I have a custom form in my module (in admin). It has a select, whose default value should be "*", but instead, it has both "*" and "0" selected: <select id="customer_group_id" name="...
1
vote
2answers
50 views

Magento 2: how can Override vendor\magento\module-sales\Block\Adminhtml\Order\View.php to remove/disable “Ship” button

To Disable/Remove “ship” Button from sales->order->view (click) -> Ship I commented in core file vendor\magento\module-sales\Block\Adminhtml\Order\View.php below code . if ($this->...
0
votes
1answer
71 views

Magento 2 - 401 controller in magento admin

I currently have a module that adds a field to the admin cms page. I've written a controller and on input change I want to ajax this controller. This is the simple controller I added to start testing:...
0
votes
1answer
97 views

How to add Store View Filter in Custom Listing Grid In Magento 2.X?

I have created a custom module in my Magento 2.3.1 site. The module has Admin Listing Grid and Add/Edit view. My site is multi-store site, Now I want to display "Store View" filter in listing grid at ...
0
votes
0answers
19 views

How To Change Street Address Validation Upto 35 Character In Magento 2 Backend

Here, I'm Trying to add validation in street address upto 35 character i'm almost done this in frontend but i want this into the Backend when admin create order from the admin panel of magento 2.
0
votes
1answer
70 views

How to add custom column in the product grid while creating the order in the admin in Magento 2?

I am using Magento 2.3.0 You can see above grid when you try to add products while order creation in the admin. I want to add a new column called "Stock" in the above grid and I want to display the ...
0
votes
1answer
1k views

Magento 2 How to add custom grid

How can I add this code in Magneto2 admin page. <html> <head> <link rel="Stylesheet" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css" /> <script type="text/...
0
votes
0answers
33 views

How to display specific data from custom table with filter in admin side grid

Here I want to display only those data who have emailstatus=1 from my custom table. Here I have XML code. file-path: app/code/chirag/stockproduct/view/adminhtml/layout/stockproduct_index_newlist.xml &...
0
votes
2answers
1k views

addColumn with select options in generated admin field

I want to know if someone has already added a select field in a generated admin fields Vendor/Name/Block/Adminhtml/Menu/Field/AdditionalMenu.php <?php namespace Vendor\Menu\Block\Adminhtml\Menu\...
2
votes
0answers
123 views

What's wrong with my event observer?

I have done below code in my event observer to add custom column to my sales order grid and still do not display the column to my website's admin panel? Here is my code: app/code/community/Mjsi/...
1
vote
0answers
26 views

Magento Catalog : How to add button or link bellow any field in product add/edit page

Like attached screenshot, I want to add Get Next Sku link how to do same does anyone have an idea ? on the same link I want to perform some ajax operation and get some formated SKU but I don't know ...
1
vote
1answer
41 views

how to make ui-component onload dependency field in admin

how to make ui-component onload dependency field in admin In magento 2, admin ui-component form i created some dependency field on value change handler. its working well but when edit the form ...
0
votes
1answer
647 views

'enctype' => 'multipart/form-data Issue in admin form when uploading file

I added some extra fields to store_group admin entry, the issue is that i can't upload a image file because i hanven't the enctype="multipart/form-data" in my form when i inspect the HTML code,and Im ...
0
votes
0answers
41 views

Magento 2 custom config form in admin panel is empty

I followed this tutorial https://www.magestore.com/magento-2-tutorial/how-to-create-an-admin-form-look-like-a-configuration-page-magento-2-configuration-p3/#3createa_layout_file_with_url_path. It ...
0
votes
1answer
32 views

Magento 2 Custom Admin module 404 Not Found

I have been struggling with this error all day, I have tried all the solutions on Internet, but it keeps showing 404 Error when I click the link on my custom menu. Here is my code /app/code/Vendor/...
0
votes
1answer
24 views

What is the event that will fire after assigning customer to group in Magento?

I have to fire an observer method when the admin assign customer(s) to group on adminhtml. Can you help me which event is it? I tried adminhtml_customer_save_after but it didn't worked. Edit: My ...
0
votes
2answers
49 views

How to override Adminhtml template files in Magento 2.3?

How to override Adminhtml template files in Magento 2.3? In a proper way. File to override: vendor/magento/module-sales/view/adminhtml/templates/order/totals.phtml
1
vote
1answer
122 views

How to Create a excel file in custom module?

I want to create an excel format file for download in Magento 2 <item name="buttons" xsi:type="array"> <item name="add" xsi:type="array"> <item name="name" xsi:type=...
3
votes
1answer
89 views

Magento 2 How to Add File Upload Field in Admin Form?

I want to file upload field into Admin Form By using Ui_component XML how to do same? can we use the same code as image upload or any other specific option for the same?
2
votes
0answers
41 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 ...
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 ...
1
vote
2answers
161 views

Magento 2: How to disable or remove Product SKU field in the admin panel

Magento 2: How to disable or remove Product SKU field in the admin panel see image below for more clarification.
0
votes
0answers
32 views

How to edit email preview text for emails in magento 2 when using header template

I am working on customizing emails in Magento 2 admin panel. I have created a header template and footer template, and have also created other email templates that pull the header and footer from the ...
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 ...
1
vote
1answer
383 views

How to add stock column per each item on sales order search grid at Magento2 admin page

I think it would be necessary to place an order in admin page. I want to show the stock level at order creation (in backend) during product selection stage in the search grid (...
0
votes
1answer
32 views

Magento 2 : How to hide add product button from admin panel

How I can hide add product button from admin panel? see image below for more clarification.
2
votes
0answers
103 views

How can I override an admin e-mail template using my design folder?

I'm trying to override module-user/view/adminhtml/email/user_notification.html in my Magento 2 installation. I know how I can do this in the admin by creating a new template that gets stored in the ...
4
votes
2answers
54 views

How to set hidden field with value in Admin html - Magento 2?

I have added a field using below code, hidden field appeared but value is not showing. $fieldset->addField('entity_type_id', 'hidden', array( 'name' => 'entity_type_id'...
0
votes
0answers
3 views

Magento 2.2.9 image upload using ui component listing

How do you upload image using ui component listing? Is there anything I could take a look at and follow the steps Any tips for this
0
votes
1answer
111 views

Magento 2 _extend.less in Adminhtml Theme

Magento 2 dev docs are very clear about best practices for extending module styles by placing a file named _extend.less in the <theme_dir>/<module_name>/web/css/source directory. This ...
1
vote
0answers
21 views

Magento 2 Ui Component how to upload image and save it

<column name="image" class="Vendor\mpdule-name\Ui\Component\Listing\Column\Thumbnail"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"&...
0
votes
0answers
32 views

Magento 1.9 : How can I add a button in admin role edit form?

I need a custom functionality "Duplicate Role" in Admin > System > Permissions > Roles > Edit. How can I add an extra button in this form? Any help will be appreciated. Thanks in advance.
0
votes
0answers
44 views

Magento 2 custom catalog condition rule not saving in custom module

I have added custom catalog conditions to my custom module admin form. a condition drop-down is displayed fine and in post data, condition value is also getting. but I am unable to save condition ...
0
votes
0answers
28 views

Magento 2.3: Custom template override not showing on first load

I have override sales_order_create_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
3
votes
1answer
2k views

Magento2 : how to create admin page with configuration fields

I have a module which adds a menu in backend linked to a custom page using a controller. All this works fine. I would like now to use this new admin page for configuration. I thought using my /view/...
5
votes
1answer
118 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&...
1
vote
1answer
1k views

Magento 2 add new Button in admin Controller

I am working on module which will work for sync product from Third party Api.I have already created admin controller page but don't have Idea how to add button Sync Products whose action will call a ...
1
vote
0answers
388 views

Magento 2 sales_order_save_after doesn´t trigger when edit order in admin

I had configure a observer to listen the event sales_order_save_after when the order changes its status. In Vendor/Module/etc/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www....
0
votes
0answers
38 views

Html tags are showing on frontend in custom module textarea admin form field?

I am using Testimonial extension which has textarea field in admin form. When I am adding content with html tag, html tags are showing on frontend. I have tried to change textarea to editor from ...
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\...
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: ...
0
votes
2answers
1k views

show .phtml file in admin custom module

Hi i see this question a few times here but i can't solve my error, i got well until the blank page in my admin custom module, I follow this tutorial. So can somebody tell me the right direction i got ...
1
vote
1answer
76 views

Magento 2 Sales Order Grid Mass Action Sort Order

I am trying to sort the Mass Action menu in the sales order grid, I have added <item name="sortOrder" xsi:type="number">600</item> to the sales_order_grid.xml but it has no affect. Is it ...
0
votes
0answers
16 views

Magento 2: Multi-Store Functionality Achievements

Store Requirements Admin Panel Restriction Admin Panel Store Wise Admin Dashboard Store Wise User Permissions and Resources control Different Admin panel views store wise Customers: Customers ...
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 ...
0
votes
3answers
2k views

Magento 2 - How to create custom grid menu in admin?

I want to create a grid menu in the admin panel. I'm stuck at creating layout using components. I have some records in a table. Now how can I display it in the admin grid? The following is the code ...
0
votes
0answers
52 views

Magento 2 Facing Problem :Could not save product “3194” with position 0 to category 12

I am facing a problem whenever I go into catalog->products->edit product and delete the category from product and click on save button the error is coming. Could not save product "3194" with ...
0
votes
2answers
882 views

Uncaught TypeError: $el.ColorPicker is not a function Magento 2

Magento ver. 2.0.18 I created a custom module in backend there is color picker options. for this i used this link color picker answer of @EmizenTech it works perfectly but some time it gives and if ...
1
vote
1answer
2k views

Customer save after event magento2

I have used this event "customer_save_after_data_object" used this code in events.xml file <event name="customer_save_after_data_object"> <observer name="customer_save_after_observer" ...