All Questions
17 questions with no upvoted or accepted answers
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/...
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
...
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']);
...
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 ...
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]=> ...
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 ...
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. ...
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/...
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
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
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
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) {
$...
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
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/...
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.
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 $...