Skip to main content

All Questions

Filter by
Sorted by
Tagged with
8 votes
3 answers
15k views

Magento 2: How to override Adminhtml "Shipping & Handling Information" Information

I'm following https://ranasohel.me/2015/10/02/how-to-overwrite-sales-view-order-phtml-file-in-magento2/ I would like to override magento\vendor\magento\module-shipping\view\adminhtml\templates\order\...
Jackson's user avatar
  • 9,969
7 votes
1 answer
2k views

How to add a color picker field in Admin form?

How to add color picker in my custom module of Magento 2 admin panel form? Not in System Configuration.
Abhishek Panchal's user avatar
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 ...
Carmelo Catalano's user avatar
4 votes
1 answer
272 views

Admin field type with arbitrary number of subfields

I'm making some custom module for magento and need backend settings for my custom entity. So far all was ok, I made a section through xml, made general CRUD actions and some settings that are ...
nevermourn's user avatar
2 votes
1 answer
2k 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=...
Nitesh Kumar  Singh's user avatar
2 votes
4 answers
9k views

Magento 2 how to make go back button on custom admin page?

I have a custom module with an preview of orders with custom functionality. But on that preview page i want a 'Go Back' button to go back to the main overview of orders. Is there a way to add such a ...
sander758's user avatar
2 votes
2 answers
1k 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/...
Sammu Sundar's user avatar
2 votes
1 answer
5k views

Add custom textarea field to product form (admin)

I want to add a custom product attribute to the product form in the admin area. https://devdocs.magento.com/guides/v2.2/howdoi/customize-form-configuration.html and https://devdocs.magento.com/guides/...
hey's user avatar
  • 1,137
2 votes
1 answer
2k views

static files deleted after php bin/magento setup:upgrade

While setting up new module and after running php bin/magento setup:upgrade it started to clean cache and file and deleted all front end css and adminhtml css and all visual files. How Can I prevent ...
SPL's user avatar
  • 35
2 votes
0 answers
20 views

Layout of magento admin module changes

i'm creating a module for magento admin and it has so many fields, but as seen in image attached, i want field of price 2 to be on next right to price 1 field. can you anyone please suggest the ...
Akash's user avatar
  • 618
2 votes
1 answer
166 views

IsSecureMode di.xml frontend / backend don't work

Magento 2.0.10 and PHP 5.6.27 i have declare a etc\frontend\di.xlm en frondend whitch <type name="Jbpevasion\Cartebleu\Block\Info"> <arguments> <argument name="data" xsi:...
Joachim Buron Pilatre's user avatar
1 vote
3 answers
3k views

Magento 2 - HTML on the tag Comment in the custom module

How to add html on the tag comment in my module like this image?
Rafael Corrêa Gomes's user avatar
1 vote
2 answers
931 views

How can I use a custom URL for an Admin Menu Item?

I made a custom admin menu item in Magento 2 and the menu item is pointing to the Magento2 Pages URL. I want the menu item to point to a custom module URL Custom module URL is http://127.0.0.1/...
Sunil Neurgaonkar's user avatar
1 vote
2 answers
910 views

Magento 2 how to override theme-adminhtml-backend view.xml in custom module?

By default Magento 2 creates more than 20 duplicates of each product image..! (why???) I have got this down to 5 using view.xml in my theme, but there is one extra set of image sizes I need to change, ...
00-BBB's user avatar
  • 166
1 vote
1 answer
8k views

Magento 2 Fatal error: Uncaught Error: Call to a member function setSortable() on boolean

I am getting below error while loading admin grid of my custom module. Fatal error: Uncaught Error: Call to a member function setSortable() on boolean in D:\xampp\htdocs\magento2\vendor\magento\...
Vivek Shingala's user avatar
1 vote
1 answer
3k views

Magento 2 - Add custom block to admin order create form

I need to add new block to admin order create form (in totals section). First I tried to do it by adding sales_order_create_index.xml to my module and adding my block to <referenceBlock ...
Anna's user avatar
  • 1,655
1 vote
1 answer
777 views

Magento 2 Custom extension admin grid returning blank

I have a custom module on my Magento 2 installation. The problem is when I access the admin grid, it's returning a blank page, just with the title of the page, like the following picture. I already ...
Murilo Pereira's user avatar
1 vote
1 answer
2k views

Adding data to custom module grid using FK relationship

I've created a new module with a number of foreign keys to base magento db tables, i want to add data from the magento table (customer_entity) into my custom grid. I have a FK relationship connecting ...
Sophie Baxter's user avatar
0 votes
1 answer
2k 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:...
andy jones's user avatar
  • 1,383
0 votes
1 answer
679 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/...
Oscar Vazquez's user avatar
0 votes
3 answers
3k views

Magento 2 Renderer generates "Fatal error"

I don't understand what is wrong with this Renderer code: <?php namespace Darsh\Banner\Block\Adminhtml\Grid\Renderer; use Magento\Framework\DataObject as DObject; use Magento\Framework\Data\Form\...
Vicky Dev's user avatar
  • 1,992
0 votes
1 answer
83 views

Block Not Seen by Controller Magento 2

I have a module that primarily works with the admin-side of Magento 2. At the minute, I'm just trying to parse a CSV file and log the contents, here's a skimmed version of my Block class: app/code/...
treyBake's user avatar
  • 141
0 votes
1 answer
123 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 \...
Daniel Black's user avatar
0 votes
1 answer
73 views

Getting error on extending in Custom Module vendor/magento/module-shipping/view/adminhtml/templates/order/tracking/view.phtml file in Magento 2.4

On extending the file vendor/magento/module-shipping/view/adminhtml/templates/order/tracking/view.phtml File in Magento 2.4 getting error like 1 exception(s): Exception #0 (Exception): Warning: ...
Prits's user avatar
  • 623
0 votes
0 answers
362 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 ...
Oscar Vazquez's user avatar
0 votes
2 answers
2k views

Integrate js with button on uiComponent xml

I have the following custom form in my admin html and I have tried to insert a javascript function on my custom button click but the page being in a infinity loading loop. view/adminhtml/...
Murilo Pereira's user avatar
0 votes
0 answers
389 views

How to Upload image in magento 2 using UiComponent

I am trying to upload Images with a custom module in Magento admin <field name="recipes_image"> <argument name="data" xsi:type="array"> <item name=...
Nitesh Kumar  Singh's user avatar
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 ...
inrsaurabh's user avatar
  • 1,676
0 votes
1 answer
77 views

what was the correct way to update file for admin html module-backend?

i want to change in file location : /var/www/html/vendor/magento/module-backend/view/adminhtml/templates/media/Uploader.php but its core file. I'm changing MAX_IMAGE_HEIGHT and MAX_IMAGE_WIDTH in ...
Ganesh 's user avatar
  • 169
0 votes
0 answers
738 views

Magento 2 How to add DataTable script in custom module

I need a custom Grid in Magento2 admin panel, so i found data table code here. Please help me, how to add this data table code in my custom module. Downloaded plugin files: Retailers/Catalog/view/...
Rajesh Nagappan's user avatar
0 votes
0 answers
45 views

Custom Admin module: empty POST on create, not on edit

I created a custom admin module. On create, there is only the form_key in the post. So it saves an empty line in my database. On edit save, everything is fine... Anyone has a hint ?
Pol Ravalitera's user avatar