Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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]=> ...
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/...
4 votes
1 answer
4k views

Magento 2: How to add a browse button to upload file in admin section?

Working on Magento 2 custom module implementation and want to add a browse button to upload a file in admin form. I have gone through the Magento2 : Admin module Image upload code to display form ...
4 votes
1 answer
2k views

Magento 2: Fatal error: Uncaught Error: Call to a member function getId()

After adding custom module on Server. It's giving below error Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/magento/vendor/magento/module-backend/Block/...
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 ...
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 ...
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/...
3 votes
1 answer
86 views

Admin module with as many image slots as user needs?

Something I use a fair deal in wordpress is allowing users to duplicate a field, so i provide one image slot and they can click a [+] button and get another image slot. I'm trying to make a quick ...
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 ...
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 ...
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 ...
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/...
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? ...
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 ...
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 ...
2 votes
2 answers
4k views

Magento2 - Custom Admin Module - UI Form Component showing blank page

I created the Grid of my custom module successfully with Grid UI Component. Now what I want is, when edit action is selected for any row in the grid, it should open a form. I am trying to develop this ...
0 votes
2 answers
760 views

How to show bundle products on custom module admin grid in magento 2

How to show only bundle products on custom module admin grid (not in admin form tabs) in magento 2.Can you please anyone help me in this.
27 votes
11 answers
37k views

How to disable Magento 2 reviews

I'm trying to disable the Magento 2 product reviews feature. I tried Disabling the Module at the Magento 2 admin Stores\Advanced\Advanced\Magento_Review but the reviews tab on each product is still ...
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 ...
2 votes
0 answers
475 views

How to build a custom image gallery in an admin form in magento2? [closed]

I'm in the process of building a custom module to best implement the image management portion.What I want is this:
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 ...
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 ...
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) { $...
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:...
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 ...
0 votes
2 answers
1k views

Enabling a module for the first time via admin panel

I have created a very simple module. I can see it listed as disabled when I check via cli php bin/magento module:status, but when I go to admin panel Advanced -> Advanced I do not see it listed ...
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. ...
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=...
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!
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.
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?
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 ...
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. ...
1 vote
2 answers
3k views

adding new admin page to backend(magento 2)

I can get into the execute() function if I do not run the construct function. but I cannot find the bug in my __construct function. The file is \app\code\Cleargo\Contactus\Controller\Adminhtml\Grid\...
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']); ...
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
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), ...
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
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
0 votes
1 answer
1k views

how to use tinymce to admin custom module in magento2?

I have custom module with custom-template.phtml. i custom-template.phtml i want use tinymce for tags texarea. i tried code. <input type="button" class="action-default scalable" onClick="...
0 votes
1 answer
531 views

Magento 2: How to repurpose the admin product image uploader?

Using 2.1.3, I'd like to add an image uploader to a custom admin module I'm building. I've gotten as far as copying vendor/magento/module-catalog/view/adminhtml/web/catalog/base-image-uploader.js to ...
1 vote
1 answer
890 views

Value is not save in backend in magento2

I am using Magento 2.1.0, and i created two customer attribute, it succefully created in backend, and i am that in database, customer grid and customer information page. but when i enter any value ...
1 vote
2 answers
119 views

Issue in creating custom module

I have created a custom news module in Magento 2. News module includes admin listing and edit. But it is showing fatal error. Fatal error: Class Namespace\Module\Controller\Adminhtml\Enquiry ...
1 vote
0 answers
549 views

Magento 2: Custom Module Listing MassDelete Not working [SOLVED] [closed]

When i'm trying to delete all records from Listing, By selecting all. Not able to delete. app\code\Custom\Module\Controller\Adminhtml\Messages\MassDelete.php namespace Custom\Module\Controller\...
2 votes
1 answer
955 views

Magento 2 custom notifications

am trying to insert custom notifications into adminnotification_inbox table as per core module Magento-AdminNotifications approache but am't able to insert custom notifications. Code is in below ...
1 vote
1 answer
2k views

Magento 2: Is it possible to add additional general/store_information configuration through my custom module?

Reading articles relating to calling store name and other admin fields, this post specifically. I'm creating a module (my first for Magento 2) for my client but want to add an additional field (...
3 votes
1 answer
5k views

Add new field in configuration Magento2

I try create custom module config in magento2. This code add field productzoom Source file: Xyaddons\Productzoom\etc\adminhtml\system.xml. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0 votes
1 answer
190 views

How do I access the store's information from within my custom module

class Index extends \Magento\Backend\App\Action{ /** * @var PageFactory */ protected $resultPageFactory; /** * @param Context $context * @param PageFactory $...