Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
235 views

Magento 2.4.6: Getting error "Namespace not defined properly" when compile command running

When I am trying to compile, then I am getting Below error: Namespace not defined properly you can see proper command running here : www-data@robert-php-fpm:/var/www/html$ bin/magento setup:di:...
Amit Dwivedi's user avatar
  • 1,550
0 votes
1 answer
29 views

my First Admin Page is not shown up

I try to write a own module. After 1 week of searching I hope u can help to go on. Its a very simple admin page. module_dir: app/code/famberg/module_afterbuysync/ ... Controller/Adminhtml/Settings/...
Michael Berg's user avatar
0 votes
1 answer
87 views

Magento 2: How to display author's name outside the admin grid

I just have learned magento 2. I have a table ecommage_blog in which there is an author_id attribute (which is the id of the customer that created that blog), so how can I display the author's name of ...
Bùi Thế Phước's user avatar
0 votes
1 answer
592 views

Magento 2 - Add custom attribute to custom section admin

I installed my "customsection_adminbackend" module which adds a new menu item in the Magento 2 backend. For now in this new section there is only a text "Hello world", but I would ...
Jackom's user avatar
  • 503
0 votes
1 answer
53 views

Can't access Magento 2.2.1 admin,

Can't access Magento 2.2.1 admin, Stores > Configuration, anyone have this error before? How I can fix this. Thank you 1 exception(s): Exception #0 (Exception): Notice: Undefined offset: 2 in /home/...
Robert's user avatar
  • 2,186
0 votes
1 answer
618 views

Magento 2 href to Add product link from template phtml

I Have made custom admin page view module, now i want add button there click on which should take user to add product URL . i tried below but it is not working <a href="<?PHP echo $...
user1799722's user avatar
1 vote
0 answers
898 views

Magento 2 How to get category tree with checkbox to select only one category?

I want to call the categories into my custom admin form for admin. How can I call that? I want to show all categories into my custom form in admin and it will allow selecting only one category. I ...
Utsav Gupta's user avatar
  • 1,243
2 votes
1 answer
4k views

Magento 2 How to add grid/phtml file on Slide out panel [ popup modal ] in custom grid action?

Here is the link of what I expected to do in my custom module http://admin-actions-log-m2.demo2.amasty.com/_router/redirect/admin-actions-log-m2/index.php/admin/amaudit/actionslog/index/ just open ...
Mohit Rane's user avatar
  • 1,964
0 votes
2 answers
2k views

Magento 2 Get data to admin UI Form without key and collection

Is there a way to get data from a DataProvider to my UI Form component, without having a collection or a key? My DataProvider currently only has a "getData" function and the form is rendered, but I ...
Sunita's user avatar
  • 101
0 votes
2 answers
2k views

Magento 2.3 - Product stock alert not display

I use Magento 2.3 and I create a custom theme based on Luma theme. I enable the Magento_ProductAlert module from backend but the message "notify me when this product is in stock" is not display in ...
Robert's user avatar
  • 2,186
0 votes
2 answers
1k views

Magento 2 - Disable some modules per store view

I have setup two stores in Magento 2.2.6, each store have their own theme and url address. In one store I have Porto theme installed in the second store I have other theme. How I can disable for ...
Robert's user avatar
  • 2,186
1 vote
0 answers
26 views

Magento2 : I want to use admin theme from magento custom module controller

How can I use this url as examplhttp//localhost/m2/seller/account/dashboard (which is from my custom module route/controller/action ) to access admin like dashboard. i.e : I want to use admin theme ...
Mguru48's user avatar
0 votes
2 answers
3k views

How to add phtml file at edit tab of Magento 2 custom module in admin?

I have created a custom module. When we click on the admin grid to edit, it opens edit page. In that I am showing tabs. When I click on that tab I need to show template file. If you see the below ...
Pawankumar's user avatar
0 votes
1 answer
49 views

Can't add custom configuration options for module in backend - 404 page not found

I was following different tutorials from the internet and from books, but none of them works. Let's follow this tutorial (https://code.tutsplus.com/tutorials/custom-back-end-configuration-in-magento--...
Black's user avatar
  • 3,431
1 vote
1 answer
182 views

Magento 2 - How I can remove default extensions

I want to remove some Magento 2 components like: Magento_Analytics, Magento_Braintree ... I just want to have just a product management system. How I can remove this modules completely, files and ...
Robert's user avatar
  • 2,186
0 votes
0 answers
2k views

Magento 2:- how to show selected value in ui components?

how to show selected value in edit form in Magento admin using UI component many-to-many relation public function toOptionArray() { if (!$this->_options) { $...
Nitesh Kumar  Singh's user avatar
2 votes
3 answers
4k views

Magento:2 How to Image upload in custom module

Image upload working fine in tmp folder, then store in DB. I want to after saving data image stored in the base folder pub/media/events var_dump($data); " ["events_url"]=> array(1) { [0]=> ...
Nitesh Kumar  Singh's user avatar
7 votes
1 answer
841 views

Best way to replace the die function?

I have the following Magento code : protected function _sendUploadResponse($fileName, $content, $contentType='application/octet-stream') { $response = $this->getResponse(); $response->...
Robert's user avatar
  • 2,186
1 vote
1 answer
84 views

Magento 2 - Creating admin page error 404

I have create an admin page but i get 404 error. What i'm wrong? etc/adminhtml/routes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Altravista's user avatar
0 votes
2 answers
920 views

Magento 1.9 - Resize images

I create a custom module in Magento 1.9 to upload some images. But I want to have this big images as a thumbnails too, how I can made a resize of the big images? if(isset($_FILES['image']['name'])...
Robert's user avatar
  • 2,186
0 votes
2 answers
72 views

Magento 2.2 - I need little help with install one module

I try to add this new module in Magento 2.2.2, but after php bin/magento setup:upgrade nothing happens. I try to enable this module in the app/etc/config.php too but is the same. I can't install it. ...
Robert's user avatar
  • 2,186
1 vote
2 answers
32 views

Admin Module not appears

I'm doing a admin module, but I do not get module tab appears in admin menu. Here is my config.xml inside Company/LeadPEC/etc/config.xml <?xml version="1.0"?> <config> <modules> ...
Sergioh Lonet's user avatar
2 votes
1 answer
525 views

Magento 1.9 Adminhtml Form Block not visible

This question is asked for many times, but none of the solution worked for me. I tried referring core modules to correct the errors in my config files, but it helped me little. Following are the code ...
Sagar Guhe's user avatar
1 vote
1 answer
1k views

Magento 2 custom module - get media base url

I use this module and I create a image upload field in my custom module. Everything is okay but I want to get the full url of image in the frontend. How I can do this? if I use this in the Data.php ...
Robert's user avatar
  • 2,186
0 votes
1 answer
215 views

Magento 2 custom module admin field output must be true

I want to add a filed in the Magento 2 admin panel, this field must return in the frontend True if in admin is selected Yes. I try to add this in the system.xml: <field id="do_something" translate=...
Robert's user avatar
  • 2,186
1 vote
0 answers
104 views

Magento 2 Resource Model not working [closed]

Di.xml <?xml version="1.0"?> <!-- /** * Mageplaza_HelloWorld extension * NOTICE OF LICENSE * * This source file is subject to the Mageplaza ...
Aish's user avatar
  • 81
0 votes
1 answer
218 views

MultiStore with Independent Admin

I would like to know if there is a way, maybe some module, that allows me to have Magento 2 installation with several stores where each store has an independent Admin Login. Thanks!
Rafael Padovani's user avatar
4 votes
0 answers
2k views

How to create a custom Report in Magento2 [closed]

How to create a custom Report in Magento2. Please provide any sample code / link.
user3374995's user avatar
0 votes
1 answer
23 views

How to append module url to an area?

So I have a module (Menu) that I built following a tutorial and I want to treat it as an area. I then want to build other modules (I have Magento's Hello World module currently integrated for testing) ...
treyBake's user avatar
  • 141
8 votes
6 answers
9k views

How to solve admin grid error?

I am getting this error in admin custom module of Magento 2. Something went wrong with processing the default view and we have restored the filter to its original state. admin grid error.
sakshi's user avatar
  • 81
1 vote
0 answers
479 views

Magento 2 - Create Admin Grid and show Custom Module list with Enable/Disable option

I have been working on custom module in Magento 2 which will perform some kind of calculations on frontend. Now I need to port those modules into Admin, where user can see menu and module list. ...
Slimshadddyyy's user avatar
2 votes
3 answers
103 views

Make custom theme in magento [duplicate]

I am designing a store and finding it hard to customize a theme. I have worked on html only but not on xml so please ignore my mistakes. Is it good to make your own-theme or should i stick with the ...
tech_geek's user avatar
  • 321
0 votes
2 answers
178 views

“Save and Continue Edit” button is not working if it is creating quote

Why Cant I click if im creating a new Quote, but if the will edit the save quote, it will be functional. Here is my file code. public function __construct() { parent::__construct(); $this-&...
Jon Carl Maramara's user avatar
0 votes
1 answer
1k views

Magento 2 hide section in admin panel

How do you hide a default magento 2 config section in the backend (Admin Panel)? For example I want to hide the "Mail Sending Settings" section located in Stores->Configuration->Advanced->...
DustyMan's user avatar
  • 171
0 votes
1 answer
933 views

Custom Module Displays Blank Page

I am trying to add my own module to the admin in version 1.x but I'm getting the blank page when I try to open the module This is what I have managed to achieve so far; My module appears as a ...
Alan A's user avatar
  • 133
3 votes
0 answers
2k views

How to upload multiple images/files in magento2 custom module backend?

I have uploaded single image successfully by below code. $uploader = $this->_objectManager->create('\Magento\MediaStorage\Model\File\Uploader',['fileId'=>'image_photo']); ...
PHP Team's user avatar
  • 141
0 votes
1 answer
137 views

Binding Click to select widget in Admin Panel

Has any of you successfully binded click to admin panel select widget? Or have idea how to? So far I've successfully binded click on admin panel button widget (I've added code in its action method), ...
adyry's user avatar
  • 271
2 votes
1 answer
2k views

Magento2:How to add a custom button that sends few edit form fields via ajax to call to an API to populate its response in another field?

How to implement a custom button in edit form page that takes few edit form values,sends to ajaxURL and populates some API response in another field on same page in magento2?
MSQ's user avatar
  • 211
0 votes
4 answers
2k views

Magento module access denied for user with custom role

I have a module 'BlogMate' which is only accesible for users that have access to everything. Even when I change the role so the user can't access a completely unrelated part, the module gives an ...
twan's user avatar
  • 168
0 votes
2 answers
707 views

How to extend the grid in the form?

I've got the grid in a form but it's in the middle and doesn't take all space forem. How can I do it? <?php class Ns_Thorleif_Block_Adminhtml_Commerciaux_Edit_Form_Renderer_Fieldset_Grid extends ...
javaTodev's user avatar
13 votes
5 answers
25k views

How to solve the message "Character content other than whitespace"?

I've received that message below when I try to reset my admin password using the Admin panel, I've my custom module installed. I see this same message on a white screen when I try to access using the ...
Rafael Corrêa Gomes's user avatar
0 votes
2 answers
129 views

How to set many extensions in the same tab in Magento 2 admin panel?

I'd like to create many extensions using the same tab like this sample on the image below, what I need to do in each extension to keep at the same tab? Stores > Settings > Configuration
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
974 views

How to add an icon in my extension tab on the admin panel in Magento 2?

I'd like to add an icon like this image below, my custom module creates a new tab on this same route Stores > Settings > Configuration. So how can I add an icon like that red? Thanks
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
3k views

How to add WYSIWYG functionality on my custom Magento 2 module?

Today I'm using the textarea to fields in my custom module, but I want to improve with the WYSIWYG. How could I use WYSIWYG in a custom field in the admin configuration panel that my module creates? ...
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
2k views

Magento 2 : Invalid block type while creating custom grid in backend

I've been trying to create custom gird in magento 2.0.11 but it keep returning Invalid block type: This error occurs while executing the file Tomrain/Appcustomizer/Block/Adminhtml/...
user54031's user avatar
4 votes
0 answers
675 views

Magento 1.9 : Add form field to Admin Credit Memos

I need to add custom dropdowns to the Credit Memo create form. I read that you should be able to add a simple field without having to rewrite core code. The following line fails in the Observer: $...
proulxs's user avatar
  • 141
0 votes
2 answers
41 views

How to get module name used to show option on admin menu

Hi I currently have a very peculiar problem. Please check the image below. I dont know from where the customer group is coming . I want to find a way to remove this block. Please help me.
Subhajyoti De's user avatar
1 vote
3 answers
5k views

Magento 2 - How to create a custom module with admin config?

How could I create a simple module to Magento 2 with admin configuration, like Porto theme or Amasty modules? Store > Configuration
Rafael Corrêa Gomes's user avatar
0 votes
0 answers
16 views

Magento Extension for vendor verification

I'm developing an extension for vendor verification. What i want to develop is to get input from vendor i-e token and validate that input through curl response if the response matches the token then ...
rameez.hashmi's user avatar
0 votes
1 answer
139 views

Adding Custom Attribute to Admin Users - Magento 1.7

Currently in creating Admin Users we collect: Username, First Name, Last Name, Email, Password, Password Confirmation I would also be interested in adding Address as a field but am not sure how to ...
CodingMageSheen's user avatar