Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Marius's user avatar
  • 199k
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 ...
Omry Zobel'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
8 votes
4 answers
40k 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 ...
Jeffrey L. Roberts's user avatar
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
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
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> <...
Josef's user avatar
  • 511
4 votes
1 answer
8k views

"Save and Continue Edit" button is not working properly

I have a form in my module, and now I want to add the new button to it i.e. Save and Continue Edit button. I added this button but it is working partially, means it is saving the values in the ...
Waseem's user avatar
  • 813
4 votes
1 answer
2k views

Module disabled in app/etc/modules is still showing in admin in Disable Modules Output

I have changed the active parameter from true to false in a module's app/etc/modules/Namespace_Module.xml file, and flushed the cache. I've also logged out and then in again. However, the module is ...
Sarah's user avatar
  • 870
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
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
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/...
Jackson's user avatar
  • 9,969
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 ...
Amit Dwivedi's user avatar
  • 1,550
3 votes
1 answer
1k views

How to redirect my custom module url after admin login

What I want: Admin should redirect my custom module url('adminhtml_module1/testimonial/index') instead of dashboard page after successfully admin login. Any idea ? How can I do this ?
Niraj Patel's user avatar
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 ...
user9714's user avatar
  • 117
3 votes
3 answers
5k views

Custom admin backend module page in Magento 1.x - blank page (layout not loading)

I am trying to follow http://alanstorm.com/magento_admin_hello_world_revisited tutorial and setup a custom admin module in magento 1.9.x. The downloadable boilter plate http://alanstorm.com/2013/...
Latheesan's user avatar
  • 1,038
3 votes
3 answers
4k views

Custom module menus are not showing in another user account

My custom module is not showing its menus in another user role account. Here is the adminhtml.xml-- <?xml version="1.0"?> <config> <menu> <kartparadigm_storecredit ...
Shashank Kumrawat's user avatar
3 votes
1 answer
2k views

How to hide a admin menu based on config value for enable or disable for custom module in magento?

Is there any possibility to hide a menu related to a custom module in the admin side when the custom module is deactivated using the system config options written in the system.xml of the magento. ...
amesh's user avatar
  • 561
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-...
xanka's user avatar
  • 2,114
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"> ...
user avatar
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 ...
Alexglvr's user avatar
  • 1,675
3 votes
2 answers
389 views

How to add custom entity from admin in magento

I am working on a project where I need to add a custom user from the magento admin panel. This user cannot purchase the products. He can only login to his section and write reviews on products or ...
mudit mehrotra's user avatar
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
3 votes
0 answers
447 views

Display Custom Attribute in Custom Tab [closed]

I have a module which use to add a custom tab in customer section in admin. I have created custom tab successfully. Now I want to add some custom attributes that I have added through installation file ...
Rajeev K Tomy's user avatar
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 ...
Chris Morris's user avatar
  • 1,517
2 votes
2 answers
1k views

Why ACL is not working for new Action

I have create a custom admin action for a custom admin controller and have allow to this action for acl. But till now, ACL is not working Controller: <?php class ...
Amit Bera's user avatar
  • 77.7k
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
2 votes
1 answer
4k views

Passing multiselect via form with getRequest()->getParam in admin module

I have an admin module and cannot get the multiselect to pass properly to the observer $fieldset->addField('hidden_field', 'hidden', array( 'name' => 'hidden_field', ...
eleven11's user avatar
  • 515
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
2 votes
3 answers
3k views

Show customers last login in customer grid

Im trying to show the customers last login in the customer grid. (with data from the log_customer table) To accomplish this, i created a Module with the neccesary Files. With the help from these ...
Mage_248's user avatar
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 ...
Reena Parekh's user avatar
  • 1,947
2 votes
1 answer
2k views

Add Layout To Custom Module's Admin Area

I have created a custom module in Magento. The idea of the module is to provide the ability to report a product. I have configured the front end and that is all working fine. The basic idea is that ...
Josh-Mason's user avatar
2 votes
1 answer
2k views

Add multiple custom tables for for a custom admin module

I have a custom admin mdoule. I need to store the datas of this admin module to 3 different custom tables. I have created admin module with one basic table and successfully stored basic informations ...
Rajeev K Tomy's user avatar
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 ...
MagentoMac's user avatar
  • 1,062
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,...
Jeffrey L. Roberts'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
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 ...
Ramesh's user avatar
  • 986
2 votes
1 answer
521 views

Custom Report extending another Report

I used the following project and created a custom report: https://github.com/technodelight/magento_custom_reports_example I changed stuff in the report. mainly there is another table joined to the ...
Josef's user avatar
  • 511
2 votes
1 answer
1k views

why delete() function is not deleting the value after filtering the collection in magento?

I am trying to delete a data from the table. I am using this code snippet $categoryModel= Mage::getModel('blog/category') ->getCollection() foreach ($categoryModel as $cat) { ...
Waseem's user avatar
  • 813
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
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
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:
xanka's user avatar
  • 2,114
2 votes
1 answer
3k views

How can I get the selected value in the multiselect dropdown?

I have a three table in my database, article category and art_cat article has the id,name,status of the article category has id,name,status of the category art_cat has id,art_id and cat_id in the ...
Waseem's user avatar
  • 813
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 ...
BenOfTheNorth's user avatar
1 vote
2 answers
7k views

Add custom block/div Order Details page

I have a custom module, whose content I need to show on Order Details page. Not under any new tab or something but just above the "Order Totals" div. How do I accomplish this without modifying any ...
Helly's user avatar
  • 328
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
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 ...
sam's user avatar
  • 489
1 vote
1 answer
82 views

Google analytics restrictions for store owners

I'm doing freelancing for a client, he owns a Magento website. He has different stores, each store owned by a different owner. He wants to allow some stores to have access to gooogle analytics for ...
Lynob's user avatar
  • 835
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'...
open-ecommerce.org's user avatar
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> ...
Mohammad Faisal's user avatar