Skip to main content

Questions tagged [adminhtml]

Questions about extending the Magento admin panel and the admin theme

Filter by
Sorted by
Tagged with
0 votes
3 answers
2k views

Hide fields under Account Information on admin page

I'm trying to hide the field "Last Name" from the admin page, but I'm not sure what I need to change since the HTML gets populated from a JS code. I'm trying to do the exact same thing mentioned at ...
7 votes
2 answers
2k 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 ...
6 votes
1 answer
3k 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 ...
0 votes
3 answers
2k 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/...
1 vote
2 answers
5k views

how to fix A technical problem with the server created an error. Try again to continue what you were doing?

A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later. in magento 2 admin in orders : in products: when go to ...
4 votes
1 answer
3k 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\...
0 votes
1 answer
19 views

How to add Enable Objects system configuration in magento 2.4.6

Select objects to log actions when any admin users perform in the backend how to do? system.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
0 votes
2 answers
49 views

How do you change the Magento (Community) 2.4.7 Admin Login page logo

I want to change the admin login screen logo on my 2.4.7 install. I've followed every guide, and tried every answer I can find. Only have a basic knowledge of Magento backend. Can anyone see the ...
2 votes
2 answers
1k views

How can pass product id from Product\Form\Modifier to UiComponent DataProvider in Admin PRODUCT DETAIL

This is Tab "Staff Manager" have display but can't receive Product Id view/adminhtml/ui_component /staff_listing.xml <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2 votes
3 answers
2k views

Overwriting adminhtml block template for a products advanced pricing

---- EDIT #3 : Please ignore the code in this question. The template tier.phtml is not used by Magento 2.2.x (see edit #2) The working code can be found here: Extra column in ...
1 vote
6 answers
4k views

adminhtml/session addError not showing after redirect

I am working on a custom magento admin module with grids. When you add a new entry, I perform custom validation and throw an error (when & if it occurs) using Mage::getSingleton('adminhtml/session'...
1 vote
2 answers
2k views

how to view record row from grid in magento

I have successfully created grid in magento admin panel. I can see all records from database successfully but now whenever I will click on any row I get error. I want to display that particular ...
2 votes
1 answer
6k views

Magento 1.9 add layout and template to custom module in admin

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 in the admin area but ...
0 votes
1 answer
30 views

Magento 2 : Customer Address Edit Form Country Default value set US in admin

In magento admin,customer address edit form country default value set US. How achieve this?
2 votes
1 answer
2k 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 ...
0 votes
4 answers
1k views

Magento 2 - How to add a custom field in admin/sales/order/view

How can I add a custom field to admin/sales/order/view? I'm trying to add a tracking number field to the sales order view. The tracking number must be saved in the db.
4 votes
2 answers
2k 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 ...
0 votes
2 answers
189 views

Magento 2 : When try to edit HTML content of CMS Page or Block, show success message but don't save content

I am using Magento 2.4.6, I can't edit the content of CMS Page. When I change the HTML content of CMS Page and hit save button it gives the success message but doesn't actually save the content. This ...
0 votes
0 answers
41 views

Admin panel sidebar links doesn't work in production mode

I have an issue while i switch my magento website in production mode, The website is finally ready to be set but now i face a problem after i've installed many modules and packages, i don't know why ...
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 ...
5 votes
1 answer
3k 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
2 answers
2k 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://...
0 votes
1 answer
1k views

Magento 1.9 : How to find the html path of a footer Block?

I want to edit the Footer paypal and other logo section. Plz check the image with path hint. and this is the site url https://goo.gl/7pQV7Y Entire path hints:
1 vote
1 answer
1k views

How can I create my custom category dropdown in admin side(Create category page)

How can I create my custom category dropdown in admin side(Create category page) like an image
0 votes
0 answers
17 views

File upload field not working magento 2.4

I've created a custom form in adminhtml, in form i have a file upload file, this form is used both when create a new row and when edit existing row, when i'm creating the upload field appears ...
7 votes
2 answers
1k 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 ...
2 votes
1 answer
2k views

Add view button in admin grid to open a view page in slide window in Magento 2

I want to create View Slider in Admin For that I'm following This my files are view/admin/ui_component/marketplace_stores.xml <actionsColumn name="action" class="Apptha\...
0 votes
0 answers
27 views

How to attach invoice pdf generate and send with custom email in magento 2.4.6

I would like to attach the invoice PDF to the custom email. I have searched through several links on Stack Exchange, but unfortunately, I have not been able to make any progress on this issue. I hope ...
0 votes
1 answer
2k views

How can I add a menu in my magento backend?

Below is my code for my menu and it does not work on my side. config.xml <config> <modules> <MasteringMagento_Example> <version>1.0.0</version> </...
1 vote
2 answers
3k 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
3 answers
3k 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
2 answers
2k 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:...
1 vote
1 answer
209 views

Magento 2 : Display log file information in an admin grid

Right now I'am logging a lot of informations about my webservices (duration , status , errorMessage) And I want to display it in a grid Ui-component like , in an admin tab I already created. How can ...
0 votes
0 answers
24 views

How to delete a file uploaded by FileUploader UI Component without submitting the form

I have prepared an admin form containing a file upload field. This form is configured in an .xml form file. <field name="files" formElement="fileUploader" sortOrder="40&...
0 votes
2 answers
3k 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 ...
2 votes
1 answer
2k 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('...
0 votes
2 answers
2k views

how to display custom amount in order summary in admin Magento 2?

I have added a custom fee in the order and displayed a custom fee in the checkout order summary. Similarly, the Custom fee displayed in the order emails in order total summary. Now I am trying to show ...
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 ...
0 votes
2 answers
2k 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 ...
0 votes
1 answer
48 views

Add new tab to product admin edit page, but for specific product type

Is it possible to add a new tab in the admin product edit page, but just for simple products? I was able to add a tab using ui_component, but I can't figure out how to add this just for simple ...
0 votes
2 answers
63 views

Changing logo in admin theme

I am trying to simple change the logo shown on the admin login page. After creating the following files i have run magento setup:upgrade magento setup:static-content:deploy -f magento setup:di:compile ...
4 votes
1 answer
105 views

Critical Error of : file_exists(): open_basedir restriction in effect.in my Magento 2?

Here I explained the issue in detail: : file_exists(): open_basedir restriction in effect. File(/autoload.php) is not within the allowed path(s): (/var/www/:/tmp/) in /var/www/mywebsite.com/...
2 votes
0 answers
21 views

Magento2: Product Admin Grid

I want to render product grid from the default store view is there any way that we can render product grid from default store view rather than all store view any help will be appreciate
3 votes
1 answer
2k views

How to Override 3rd party module requirejs-config.js file in my custom module?

The above one is the 3rd party module's require-config.js. It contains the js file inside the adminhtml/web/js. I want to override that. So I created a custom module and made changes in the require-...
-1 votes
2 answers
587 views

How can i set wish list for guest user also in magento 2?

i need set Wishlist for guest users also Guest can also able to add item in Wishlist. after add item guest login into account that time Wishlist must be marge. all Wishlist functionality must be ...
3 votes
2 answers
3k views

Magento 2: How to set default value of quantity in new product page

I am new developer of Magento 2. Is Magento provided a way to set default value of quantity in admin new product page?
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. ...
0 votes
0 answers
31 views

Write Magento2 Custom Module to set Minimum Order Amount for Selected Customer Groups

I developed a Magento 2 module to add customer groups dropdown in admin panel Store-> Configuration -> Sales -> Minimum Order Amount so I can set min order amount only for some customer ...
0 votes
1 answer
47 views

How I could install HtmlPurifier in my custom module?

I made my own form: <?xml version="1.0"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:...
0 votes
2 answers
35 views

How I can convert my form into a singe column one and place a WYSIWYG editor?

For an admin form I have implemented the following form: File app/code/MageGuide/FirstModule/view/adminhtml/ui_component/add_blogpost.xml <?xml version="1.0"?> <form xmlns:xsi=&...

1
2 3 4 5
34