Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [adminhtml]

Questions about extending the Magento admin panel and the admin theme

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

Add new column to sales_flat_order_grid

How can I add a new column to the sales_flat_order_grid table and ensure that values are properly inserted there? The "source" for the new column is a custom column we've added to sales_flat_order, ...
34
votes
3answers
22k views

How to update admin routers of custom module for patch SUPEE-6788

I'm not sure how to update custom modules to work with the SUPEE-6788 patch, the instructions are not very clear. Based on Alan Storm's tutorial, I created a simple module in the generator www....
7
votes
1answer
6k views

Adminhtml - How to add custom template for custom product attribute

I already added custom tab and custom attribute like this. I also created a custom column in database for attributes, called custom_values. Now I want to add custom template for this attribute (in ...
12
votes
23answers
40k views

Magento2 admin menu panel doesn't work

magento2 dashboard: All admin menu link don't work and have a strange icons. Why? I can't do anything.
6
votes
1answer
996 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 ?
17
votes
1answer
3k views

Long Running Admin Page Requests Blocking Other Requests

If I'm logged into Magento's backend and perform some task that takes a long time (global search on large catalogs, long running dataflow, etc), my web browser will refuse to load other admin pages in ...
16
votes
3answers
11k views

Get Base Url Or Dynamic Url In view Js or html files

I figure it out to get dynamic url in the front end if I need I can simply define mage/url and the use it as url.build('<Modulename>/<controllername>/<action>/') When I tried the ...
10
votes
4answers
20k views

How to create Admin Grid in Magento2?

I am trying to create module in magento2, now i stuck creating grid page in admin side, let me know if any one already did
3
votes
2answers
9k views

Add Company column to Customers Admin Grid with Observer

I want to add the "Company" column from the customer's Address attributes. Is there any way to populate this column through an observer or do I need to extend the prepareCollection or preparePage ...
7
votes
3answers
6k views

How to extend backend template files in Magento 2

I could not find how to extend backend template files in Magento 2, however i have found how to extend frontend template files from here. If I extend the file at design/adminhtml/Magento/backend it ...
2
votes
1answer
3k views

Magento 2: How to override adminhtml CSS?

I would like to implement a CSS file that contains only the styles that I'd like to override for the default admin theme. For example, let's say I want to change the textarea font to Consolas and my ...
4
votes
6answers
9k views

Optimizing app/etc/local.xml - caching like Redis

This is an interesting one. I've been looking into methods of improving the performance of the Magento backend. I stumbled across this module: colinmollenhour/Cm_Cache_Backend_File Which looks quite ...
1
vote
1answer
371 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....
4
votes
1answer
3k views

How to override adminhtml phtml in magento 2?

Does anyone know how to override the below template? vendor\magento\module-backend\view\adminhtml\templates\media\uploader.phtml.
0
votes
3answers
2k views

How to solve the error : “Could not save product ”20072“ with position 0 to category 7” in magento 2 [duplicate]

While unasign the product from multiple categories to single category and trying to save the product, it thorow the error like below Could not save product "20072" with position 0 to category 7 I ...
9
votes
2answers
12k views

How can I add a custom field to an admin form in Magento 2?

I've created a form in the admin using UI components, so in my view/adminhtml/ui_component/[module]_[entity]_form.xml I have the following: <field name="configuration"> <argument name="...
16
votes
2answers
12k views

Magento 2 : How to add custom css for adminhtml?

I need to add CSS file for Admin side in my custom module. How can I add this for Admin (back-end) only ?
7
votes
3answers
9k views

How to add a Total row in a magento grid

I'm creating a new module that uses a order grid for particular product(this is not the report grid) in magento admin i successfully create new order grid for that but i want to get total price for ...
7
votes
2answers
16k views

Override a controller in Adminhtml

Currently I'm trying to override the GroupController of Mage_Adminhtml_Customer so I can add some code for saving my custom field in the Customer Groups menu. As you can think it doesn't really work ...
7
votes
2answers
7k 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\...
5
votes
2answers
5k views

How to change backend admin theme in Magento 2.0.7 +

How and what to add to be able to override any of the magento-backend module templates and what is the sequence order of the custom module or theme
7
votes
2answers
8k views

How to enable custom admin theme in Magento 2

I have followed the instructions here: How to create admin theme for Magento2 and here: How to change backend admin theme in Magento 2.0.7 + and I still dont understand what I'm supposed to do to ...
3
votes
1answer
2k views

Changing the address book drop down (for shipping) from drop down list to radio buttons

I need to know how to change the address book drop down on a registered account checkout to radio buttons (similar to Amazon)
1
vote
3answers
4k views

add new column with custom attribute in sales > order grid in Magento ver. 1.9.3.3

Magento ver. 1.9.3.3 I am trying to add columns with **custom product attribute **(like publisher which was created by me) in Admin > sales >order. Copied app/code/core/Mage/Adminhtml/Block/...
0
votes
3answers
6k views

Programmatically invoice a single product off of an order

How could I go about programmatically invoicing a single product off of a sales order of more than one product? I.E Order X has three products, SKU1, SKU2 & SKU3. I only want to create an invoice ...
4
votes
2answers
6k views

Customise a custom product attribute input renderer in Magento 2 the right way

I'm facing to a very ridiculous trouble, I added a custom product attribute with source model, backend model as a select box. Everything works fine (my custom attribute will get the values from a ...
13
votes
1answer
1k views

Magento 2 Add Category Tree Renderer Input With Modal Button

I am trying to place the category input for my custom form using uicomponent form. I am able to create dropdown but how I can create the button and open a new modal from it? Can I create a button ...
8
votes
2answers
25k views

How to create a custom grid filter

I have added a custom grid column using the field URL in a custom database: $this->addColumn('url', array( 'header' => Mage::helper('companymodule')->__('Has Website'), 'align' =...
12
votes
2answers
1k views

How is the start page of System Configuration (admin/system_config/index) defined?

I often notice that the start page of the system configuration (System > Configuration in admin panel) differs from installation to installation. Instead of showing the General > General section,...
2
votes
2answers
3k views

How to add custom column of custom table field or module to sales order admin grid in magento2?

I am trying to add my custom table field to order grid but its not working fine for sales order grid but its working fine product grid so below are the code adding column to sales order grid and ...
1
vote
1answer
972 views

Magento2: How to add multiple fields in single row in magento edit form

Help me to add the multiple fields in single row of magento 2 edit form backend/admin.. for example: I have two fields First name & Last Name which I want in same row.
2
votes
1answer
5k views

Magento 2 - Load custom javascript with requirejs

The Problem I want to use custom JavaScript in Products/Inventory/Catalog page to modify the "Add Product" button behavior and hide some fields in product edit form (where the SKU, weight, name, qty, ...
0
votes
3answers
6k views

Adminhtml - Blank Edit Form, not showing data in the edit input fields

I'm using Magento 1.9.0.1 and i'm working a custom extension. Right now i'm stuck on the part of creating a admin form. Let me show you. Here is the grid table in a custom page which i've created in ...
8
votes
2answers
6k views

Magento Add Condition Rule In A Custom Form in magento 2

I want to add condition action in custom module admin form. How can I achieve this? Refer link for Magento 1.9 Replacement of above link for Magento 2.
11
votes
1answer
9k views

Magento 2 System Configuration for Module issue

I visited many sites for find solution of this issue. But after creating system.xml and acl.xml Magento give me a report generated error. Error a:4:{i:0;s:140:"Notice: Undefined index: id in /...
18
votes
1answer
2k views

Patch 5994 is causing module Adminhtml 404 Status Error

I applied the Patch 5994 the other day and it has caused the admin section of a module I build to throw a 404. Has anyone else had this. The module is fine on the frontend though. It's Magento 1.8.1....
14
votes
4answers
14k views

setSaveParametersInSession() on a non-object

I'm getting setSaveParametersInSession() on a non-object It is on an admin module the path is Training/Distributor/Block/Adminhtml/ in this folder i have Distributor/Grid.php and Distributor.php ...
3
votes
2answers
8k views

Add custom grid to custom tab in admin panel

I have created a tab in the admin panel (Add tab to Product Information in admin panel) and now want to create a grid to show, filter, etc the data from a custom table. How do I extend my module to ...
5
votes
1answer
1k views

Magento 2 : How can I upload files of dynamically added file input fields in the admin

Short story: I have a form in my admin in which I can dynamically add multiple file upload fields in the admin. This mechanism is built with Knockout. But when I submit the form the files are not ...
5
votes
1answer
3k views

Is it necessary to override _isAllowed in your Admin controller?

The _isAllowed method is where you, as a Admin Panel programmer, should place your ACL checks. As you can see, by default, this method returns true. That means if you don’t define your own ...
1
vote
1answer
1k views

Broken Magento 2 Admin Design

Current version is Magento 2.1.3. Installed from dist. Many admin pages are looking broken like this. Although CSS seems to be loaded like following: I tried clearing/flushing cache, deleting pub/...
7
votes
4answers
35k views

How to get current store id from current scope in admin

How do I get the store id of the current scoped store in the admin? For instance, if I use the drop down box in the upper left hand corner, and change the scope to a store view, how would I get the ...
6
votes
3answers
15k views

Magento 2 get custom module image url from backend

I used <?php echo $this->getViewFileUrl('Vendor_Module::images/demo.jpg'); ?> <?php echo $block->getViewFileUrl('Vendor_Module::images/demo.jpg'); ?> But it's working only ...
5
votes
2answers
1k views

How do I make certain frontend pages accessible only by admin?

How do I make certain frontend pages accessible only by admin? I have tried using Mage::getSingleton('core/session') and Mage::getSingleton('admin/session') to no good end. Any suggestions? Oh, and ...
4
votes
1answer
3k views

How to add depended form field in magento admin

I am not so familiar with magento so i am facing some trouble I am creating a form in magento admin & trying to add depended form field eg- parent field is dropdown type & name is amount_type ...
3
votes
2answers
3k views

admin edit form content showing in left

I'd created a module for admin where I need to display a form. But its not appearing properly and the form is not submitting. screenshot directory structure The code is as below Excellence/PosImg/...
3
votes
1answer
1k views

How Does Magento Include the admin-icons.svg File?

In Magento 2, the icons for the backend Menu are Unicode code points that are part of the Private User Area code point range, and appear to be defined via the file vendor/magento//theme-adminhtml-...
3
votes
1answer
7k views

Magento: add button on order view page with custom module

I want to add a button on the Order View page of the Admin. I created a custom module in app\code\community\CPT\TCS and added subfolders Block, controllers, etc, Helper, Model, sql This is my ...
3
votes
1answer
345 views

Magento Dashboard Graph

I'm wondering if anyone knows what I would need to do to adjust the dashboard to show the last day (since midnight) instead of the last 24 hours.
1
vote
3answers
6k views

how to add customer's shipping address detail in Admin > Sales > Order grid

I trying to add customer's shipping address detail in Admin > Sales > Order grid with following code in protected function _prepareCollection() $collection->getSelect()->join(array('Shipping'=...