Stack Exchange Network

Stack Exchange network consists of 174 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 [adminhtml]

Questions about extending the Magento admin panel and the admin theme

0
votes
1answer
13 views

Exception #0 (Exception): Notice: Undefined index: id in Iterator

I'm tryingto extend Magento2 Adminhtml with some custom nodes, which has worked good so far. What I'm trying to do now is to figure out how this error is happening: Exception #0 (Exception): Notice: ...
1
vote
2answers
43 views

Grid with multiple Resource Models

I'm trying to use one grid for multiple ResourceModels, so far I've got one grid working fine. I can load the grid up fine using http:{}/admin/grid/grid/ However when i create a new route to load ...
0
votes
1answer
23 views

How to hide price from Form when adding a product magento 2

In my website i don't need the price information so how to do to hide the price from BO when adding a new product?? and if i make the price attribute optional is there a problem in the core of magento ...
0
votes
0answers
14 views

Magento2 How to update product position (number) in specific category by custom script with csv

I would like to set all position sku wise in one specific category using csv here two column data, sku and position. So if anyone has an idea for the custom script kindly reply for me below code ...
1
vote
1answer
24 views

Fresh Magento 2 install admin does not give login box

I'm fairly new to Magento 2 and have been attempting to add a copy on my local machine (operating system: Windows 10) so that I can try out some database migration tests. I have installed XAMPP and ...
0
votes
0answers
13 views

Magento 2 - How to remove phone number validation in adminhtml

Magento 2 I want to remove phone number validation in customer addresses in admin panel --- Screenshot for your reference ----
0
votes
0answers
12 views

Magento 2.2.2 - Restrict access to Admin and redirect to 404 if unautohrized

I need to allow specific IP's/IP range as authorized users to access Magento admin area and redirect to 404 page not found if an unauthorized IP try to access http://store.com/admin. Could think of ...
0
votes
0answers
3 views

Form container can't set child form / create form block

My goal is to have a form into a form container. When I call directly my form in my controller, it works, but when I call the container, I have this issue : Fatal error: Call to a member function ...
0
votes
0answers
23 views

Magento2: custom script for category product sort order position

I need custom script run for specific category products position and use this spreadsheet to change the sort order of the specific category "position" If anyone idea reply me as soon as.
0
votes
2answers
24 views

Have a option to enable/disable the module. I need to load admin page css when my module is enabled. No need to load css while module is disable

I write css in path app/code/my/module/view/adminhtml/layout/default.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
0
votes
0answers
4 views

Fill fileds on the basis of Other Filed Value

I have created a form on the admin side using Ui component. I am getting a collection of Catalog rules in my form. now i want that whenever i select a rule from dropdown, some of the other fields, ...
0
votes
0answers
62 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 ...
0
votes
2answers
35 views

Magento 2 How to override adminhtml Js components

Basically I want to override grid.js component file in Magento 2 Require config view/adminhtml/require-config.js Require config code. var config = { map: { '*': { ...
1
vote
1answer
20 views

Add custom text/price to product edit in admin (not custom attribute or editable field)

I have a shop that uses prices excl tax. I want to add the price incl. tax below the price field as text (not as an editable field or an attribute, just an information). I've already added a new ...
1
vote
0answers
15 views

How to create a admin views in my custom module?

I have succesfully created a custom module and added menu also on clicking it redirects to the controller index action where it displays the header and footer section , but I didn't figure out how can ...
0
votes
1answer
40 views

Magento 2, how to add 'textbox' into 'cancel modal'?

Using magento 2.2, admin. I need to add textbox into dialog when confirm Cancel status in sale order.
0
votes
0answers
36 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:...
0
votes
0answers
25 views

Product admin edit issue in magento 2

I am getting below error in console, when i try to edit product in admin Uncaught TypeError: data.some is not a function Referred below link and used that didn't solve my issue. Uncaught TypeError:...
0
votes
0answers
15 views

How to create view page of custom form inquries in admin?

How to create a link/action (View) in grid list of my custom module (like edit action). And that will render data of particular entity_id from moduleFactory. For example Order view page. Kindly help.
1
vote
2answers
59 views

How to remove create an order button in sales order grid in magento2

i m overriding above code in di.xml file in magento2 <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory"> <arguments> <argument name="...
0
votes
1answer
27 views

Magento 2: How to remove input option from grid filter

I want to remove some of filters from my grid in Magento 2 backend admin grid. Currently I have grid like displayed on image. But if I want to remove customer name how to do so. please explain thanks
0
votes
1answer
100 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" ...
1
vote
1answer
30 views

Magento 2.2.X How to create system.xml in admin panel and show & hide field based on parent (depends)

Step 1 : Create a new module (app/code/) Step 2 : Create system.xml (app/code/vendor/module_name/etc/adminhtml/system.xml) <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
0
votes
0answers
20 views

Store custom table records based on website and storeview

I am creating on plugin in which I am creating a custom table and in that table, I want to store records based on website and storeview. this functionality is in backend admin only.
0
votes
1answer
66 views

Magento 2 filter customer collection by website id wise in admin grid

Actually I have requirement to create a Dealer module. I have create it but when dealer login in to admin section. At that time only those customer should display who is created from that specific ...
1
vote
1answer
37 views

Magento 2: AJAX POST to AdminHTML

I have an AJAX POST setup within my template file currently that has 3 values, which I want to POST to my Index.php within my Block. However, my module is an AdminHTML module and this cannot be ...
1
vote
2answers
33 views

How to setup a rest api for adminhtml only?

Magento 2 version 2.1.10. Admin base url : /admin Site base url : / How can I create a rest api and make it available only under the admin base url, like /admin/testapi ? Furthermore, some day I ...
0
votes
1answer
81 views

How to hide Vat number?

I want the VAT number filed on to present when i click the user to zero vat customer group.If click any other group i dont want to show the vat field. Anyone has any idea how to fix this. /private/...
0
votes
1answer
25 views

How to set the value of select in admin config Magento2

I am creating multi-column config, the problem is it's only setting the value of the first select field, the second field is not being selected following is my code : <?php namespace ...
1
vote
1answer
93 views

Product edit form issue in admin panel magento2

Here is my etc/adminhtml/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events....
2
votes
1answer
28 views

How to create admin custom from using UI in Magento 2 using layout?

I want to create admin custom from using UI component But I am not able to understand to structure, can someone please explain.
0
votes
0answers
21 views

UI Component - Disable Fieldset Collection

I want to figure out a way to take a <fieldset> collection (ex. customer's addresses), from a form ui component, and disable it due to a certain value of a field like a select drop down. The ...
0
votes
0answers
12 views

Magento 2: grid data source definition in compact form

I have my own grid data provider \Vendor\Module\Ui\DataProvider\Grid\Base class Base extends \Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider { public function ...
0
votes
0answers
42 views

Magento 2: admin base URL for UI Components

There is BASE_URL variable on the adminhtml pages (see ./vendor/magento/module-backend/view/adminhtml/templates/page/js/require_js.phtml): <html> <head> <script> ...
0
votes
1answer
29 views

Modified JS file not changing Magento 2 Backend paging grid

I'm currently attempting to change the "sizes.js" file using a child theme in adminhtml. This is with the "Commerce" version of Magento 2.2.5. As we have a large number of customers and orders. What ...
1
vote
0answers
13 views

Change layout in adminhtml to columns with left sidebar on product edit and add new product page

In magetno1 product edit page looks with left sidebar tabs, but in magento2 it looks without tabs in left sidebar and it is too long page. How can i change page layout in adminhtml on add product page?...
1
vote
1answer
98 views

How to make custom html form in Admin in Magento 2?

I want create custom html form in Magento 2 - Admin Panel Where from block i can save all form data in new database table. Drop-down 1, Drop-down 2, Price text-box 1, Price text-box 2, Price ...
2
votes
2answers
80 views

How to include external JS in adminhtml using requirejs-config.js

I try to include external JS (fabric.js) in my custom module. I try so many different way but still not getting success. i don't understand what i missing below is my code. Add external JS (fabric....
0
votes
1answer
29 views

Admin Module not Working

I'm trying to create a super simple Admin module that will add a button to the Cache Management page. So far I have created the following files. Gamma/ExtendedAdmin/registration.php: <?php \...
2
votes
1answer
44 views

Magento 2: form & grid components on one page

I want to create smth like this in adminhtml: This page contains form to type customer ID & grid to display downline data for the customer. This is my description of the form component: ./...
4
votes
0answers
54 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&...
2
votes
1answer
117 views

Magento 2: available options for grid column config (UI Component)

I add custom grid to adminhtml in Magento 2. This is definition of my UI Component ./view/adminhtml/ui_component/my_own_grid.xml ``` ... <column name="id"> <...
0
votes
4answers
53 views

Magento 2.2.5 Override tracking.phtml at vendor/magento/module-shipping/view/adminhtml/templates/order

Has someone an idea on how to override this template? I have tried the following without any success: In app/code/Custom/Shipping/registration.php <?php \Magento\Framework\Component\...
0
votes
0answers
17 views

Create modal admin without losing content at closing

I created a modal in the backend with the object ´Window ({})´ the problem and that creating it so I create a modal that must necessarily reload the content via ajax. My code: Window....
0
votes
1answer
121 views

Magento 2 - Admin module - how to SELECT data from database to display in Admin page

I'm building out an Admin module that's intended to SELECT data from a specific table in magento database and display that data on page, it's a custom table called "commission_sales". At this point I ...
0
votes
0answers
79 views

Magento2 - Adminhtml - UI Component switcherConfig

Looking at this example from this question to find a way to change a UI Component form field to do something from another form field (in the example, show or hide the field), and noticed this <item ...
0
votes
0answers
37 views

Sending HTTP request to admin controller

I am currently writing a module that requires sending a HTTP request to a controller in the AdminHtml folder. When ever my request hits the controller it is returning raw html and not returning the ...
0
votes
2answers
86 views

Override admin block file issue in magento2

I am trying to override block file of adminhtml of sales module. Below is the code of my di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
39 views

How the customer address rendered in admin order create page magento2

I am trying to override the file how the customer address is rendered in create order page of Magento2 admin panel. Sales -> Order -> Create new order here is the screenshot attached. I am ...
0
votes
1answer
129 views

Magento2 system.xml Adding Section To Existing Tab

On Stores->Configuration->Sales trying to add one more section theres no groups yet: Lukas\DeliveryNotification\etc\adminhtml\system.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento,...