Questions tagged [adminhtml]

Questions about extending the Magento admin panel and the admin theme

Filter by
Sorted by
Tagged with
0
votes
1answer
671 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
58 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
39 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
60 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
2
votes
1answer
234 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
326 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
47 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
223 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
48 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 ...
0
votes
1answer
43 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
104 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
74 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
194 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
22 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
34 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
70 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
30 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
128 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
0answers
412 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
40 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 ...
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: ...
1
vote
1answer
103 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 ...
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
60 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 ...
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" ...
0
votes
1answer
2k views

Magento2 system.xml Adding Section To Existing Tab

On Stores -> Configuration -> Sales i amtrying to add one more section there is no groups yet: Lukas\DeliveryNotification\etc\adminhtml\system.xml <?xml version="1.0"?> <!-- /** * ...
1
vote
0answers
22 views

Magento 2 - No minified files generated in admin

I've recently minified my website with a huge success, but this little thing. I don't get any generated .js files in the Admin panel, which causes the menu and a bunch of buttons not to work. It ...
0
votes
3answers
529 views

Magento - can't find - $this->getForm()->toHtml()

In my store when dealing with orders in the admin section via Admin > Sales > Orders > Edit Shipping Address the "State" field is missing for some reason. I finally found the file in the ...
1
vote
1answer
681 views

Adding a custom checkbox in sales orders admin grid

I want to add a checkbox on admin grid in sales order page. I want to have in between "New order Rss" and "export menu". Having a hard time figuring out how to do this as I am quite new to Magento. ...
0
votes
0answers
7 views

Setting UI Component (Sales Order Grid) Settings for Specific Route

I can add the sales order grid to a route easily by adding this in the layout file: <referenceContainer name="content"> <uiComponent name="sales_order_grid"/> </referenceContainer>...
0
votes
1answer
289 views

Magento 2 : Show custom table data in grid

I have created a form and the data of that form is saving in a custom table. Now I want to create a grid in admin which shows the saved data in that table. Please help
0
votes
3answers
12k views

Custom Admin Edit form

I'm having some difficulty setting up an edit form within my custom module, when i inspect i see the header "New Manufacturer", but the div which would typically be rendered with the class "page-...
1
vote
2answers
957 views

How to add an input_renderer for a custom customer attribute?

I added a custom attribute for customer collection named customer_mode. It have 2 values first, and second in the following maner: $data = array( 'customer' => array( 'customer_mode' => ...
0
votes
1answer
17 views

Error setting an adminhtml from a frontend path

I'm using a third-party which set an appendPaymentBlock Observer method <adminhtml> <events> <payment_info_block_prepare_specific_information> <observers&...
2
votes
1answer
44 views

How to add extra column in Item ordered tab in Magento2.3?

How to add an extra column in Item ordered tab in Magento 2? PFA Any ideas?
1
vote
1answer
177 views

Magento 2 - Bulk update stock programmatically - Using database query [duplicate]

I have 10 products; 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. I want to be able to bulk change 1, 3, 4, 5 and 9 to 0 quantity and out of stock and 2, 6, 7, 8 and 10 to 100 quantity and in stock. How can I do ...
7
votes
1answer
3k 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' =>...
0
votes
0answers
20 views

Unable to modify categories in magento due to error

Fatal error: Uncaught Error: Call to a member function toHtml() on boolean in /var/www/vhosts/Site/httpdocs/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php:153 Stack trace: #0 /var/www/...
6
votes
3answers
3k views

Remove button from customer admin form in Magento 2

I want to remove the Create Order button from the admin customer edit form and I don't know how to do this via a plugin or an event. The button is added from Magento\Customer\Block\Adminhtml\Edit::...
0
votes
3answers
2k views

Magento 2 : How to Override vendor files in my custom theme

How to override below admin file in my custom admin theme ? /vendor/magento/module-sales/view/adminhtml/templates/order/view/info.phtml
0
votes
0answers
51 views

How we can use Js Mixins for order scripts.js

I want to override switchPaymentMethod from module-sales/view/adminhtml/web/order/create/scripts.js for that I use mixins: app/code/Vendor/Module/view/adminhtml/requirejs-config.js var config = { ...
0
votes
1answer
29 views

How to create a complete group tab to admin?

I want to add a group tab in system > configuration > general > general. This tab will contain a text area where the user will be able to modify the text. This text area will be connected ...
0
votes
1answer
2k views

Widget's field dependencies generate warning and do not work

Problem: Using the following widgets.xml, I get the following error in system.log: ERR (3): Warning: array_values() expects parameter 1 to be array, string given in app/code/core/Mage/Widget/Block/...
0
votes
2answers
1k views

Add a custom field per store view

I need to add a custom field(drop-down list) for a store view, what is the conditional statement I need to display this, it would be nice to have it dynamic and have it added in the admin side. Would ...
0
votes
1answer
1k views

Product name and order shippment method, on the order grid

I'm trying to add the Product Name, Product SKU, and Order shipment method, to the Sales Order Grid. this is how my function looks: protected function _prepareCollection() { echo $collection = ...