All Questions
131 questions
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 ...
1
vote
3
answers
1k
views
Resolved - Admin Grid Redirects to Front End Page Instead of Backend
I took steps according to this article but the newly created link displays the "text block" on the front-end instead of back-end.
http://alanstorm.com/magento_admin_controllers/
Can anyone help me ...
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:...
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/...
2
votes
1
answer
927
views
How do you create a link to BOTH the product frontend and backend from the sales order page?
We are looking to create a link to the frontend of a product and the backend of a product from the "items ordered" area of the sales order page. We have the code to create both, but not from the same ...
1
vote
1
answer
5k
views
Load jQuery in admin panel programmatically
I want to load jQuery in admin panel. How can I do this programmatically without creating layout XML files in /app/design/adminhtml/default/default/layout/? Method with layout XML is described in this ...
1
vote
1
answer
2k
views
How to set the path in form.php for admin configuration to view the image
I am uploading images in my module using the folowing code at:
\Block\Adminhtml\Visualcolor\Edit\Tab\Form.php
$fieldset->addField('image', 'image', array(
label' => Mage::helper('visualcolor'...
1
vote
1
answer
350
views
what should be the module name while adding menu in adminhtml
I've created a module which I named it in CamelCase like MyCustomModule. I've just started it as a little application and wanted to add a menu in admin for that the adminhtml.xml code is
<menu>
...
2
votes
0
answers
94
views
Config default image not saved (On first save, when no new image uploaded) [closed]
I have a module with some config options that are used in the admin configuration section, and these have defaults applied.
When the user has never pressed save in that section, all the defaults are ...
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
1
answer
453
views
Admin Area Custom Configuration
I followed the tutorial on this page
http://www.johannreinke.com/en/2012/01/30/add-custom-settings-in-magento-admin-panel/
While I was able to get the source code provided to work without a problem,...
3
votes
1
answer
2k
views
How to add a saveAndContinueEdit type button in admin view order?
I have created a module to implement a new product option type.
This product option can be configured from the admin view order page :
and for each product that has this option, I have a radio button ...
3
votes
2
answers
4k
views
How to add files for custom module under system configuration? [duplicate]
I have my own module in System->Configuration and want to add js and css files for it. Now it is so:
<layout version="0.1.0">
<default>
<reference name="head">
...
4
votes
1
answer
358
views
Magento ACL recursive permissions?
I have a module that adds a new menu in the backend.
I have the acls defined and they work:
<acl>
<resources>
<admin>
<children>
<...
36
votes
6
answers
7k
views
How to create an EAV entity?
How to create an EAV entity?
This is a question that pops up a lot on the web. There are some good blog articles that explain how to do that, but none of them are satisfying for me.
So I decided to ...
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 ...
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.
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
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 ...
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?
...
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 ...
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 $...
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
1
answer
3k
views
Module Forms - Store Value of addField to a Variable
I have something like in my custom module:
$fieldset->addField('orderinfo', 'link', array(
'label' => Mage::helper('web')->__('Order Info'),
'style' => "",
'href' =...
1
vote
0
answers
899
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
3
answers
2k
views
Extension for photo gallery and slider
I've looked at a few extensions out there but most are overkill or don't quite fit.
Keen to create a simple extension instead if someone wants to point the way.
Admin interface to easily add photos ...
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 ...
3
votes
4
answers
11k
views
Invalid login credentails - Magento Connect Manager / downloader
I have some problem! Invalid login credentails. See https://i.sstatic.net/LsIIQ.png
History:
I transferred a complete archive folder magento of my site (htdocs - magento.tar). Moved from one stack ...
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-&...
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 ...
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--...
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) {
$...
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->...
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
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'])...
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 ...