Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [module]

Questions about developing custom modules

844 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
15 votes
6 answers
2k views

Magento 2 How to add Tab Component in admin module

How can I add UI Tab Component in the custom admin module with the help of the below user guide? http://devdocs.magento.com/guides/v2.1/ui_comp_guide/components/ui-tab.html There are not enough ...
Ajay's user avatar
  • 919
7 votes
0 answers
106 views

How to do the same controller action to create an image for one button but not for another?

We are calling same controller action for 2 buttons for create product pro-grammatically and assign a custom image for that product. 1. create - custom image uploading for newly created product 2. ...
raj's user avatar
  • 69
6 votes
1 answer
759 views

Magento2 : custom rate for shipping method

In magento2 - I want to use custom price for one of my shipping method per quote. I want to show custom amount for only current quote. how to do it. Like there is a shipping method. "CUSTOM FLAT ...
user3443146's user avatar
6 votes
0 answers
154 views

Magento 1.9x - Include Dataflow Profile Functionality for Import operation into my custom module

I have created custom module for import operation by uploading csv, xls and ods files. It is working good, but now i need to include Dataflow Profile Functionality into my module. That means I have a ...
Priya Ponnusamy's user avatar
5 votes
1 answer
78 views

How Magento registers new module?

While doing setup:upgrade What Magento actually does to register the unregistered module !!, Can anyone define the flow? Actually I want to send a notification to admin whenever a new module is ...
Yash Panchal's user avatar
5 votes
0 answers
165 views

Magento 2 - How to create a custom product listing grid in admin?

I want to create a custom page for product listing in admin like the image using my custom module. How could i do that? If anyone have any solution please lighten me up.
Nayem323's user avatar
  • 751
5 votes
0 answers
710 views

Custom Model Relationship (CMS Page + Product)

I am trying to assign a Product Object to a CMS Page Object, so when you have the CMS Page Object, you can do something like this: $product = $page->getProduct(); I have modified the CMS Page ...
user3218861's user avatar
5 votes
0 answers
149 views

StoreRepository get($code) which does not exists

Till today all the code was okay, but after code review, I got that we use the method load() on the store itself so I replaced it with storeRepository->get($code) Code what I'm talking about ...
Jarzebowsky's user avatar
5 votes
4 answers
5k views

Magento 2 - Backend custom module 404 error

I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu ...
3tech - Alessandro Staffolani's user avatar
5 votes
1 answer
3k views

Create custom “Catalog Input Type for Store Owner” for magento 2

I need to create a special input type in adminhtml product form. My input will display as a table but save data as a standard text input. Following the module Edge ProductAttachments I've created the ...
Carmelo Catalano's user avatar
4 votes
1 answer
278 views

How to Migrate Magento 1.9 Module into Magento 2

I use some extensions, such as the extension Alpha search module in Magento 1.9 but this module does not exist for Magento 2, so I need to convert the module to Magento 2. Can you suggest any tool or ...
MOHIT GOHEL's user avatar
4 votes
0 answers
235 views

How to reinstall module without any downtime or trigger InstallSchema.php on already installed module?

I am trying to reinstall a module on Magento ver. 2.2.8 to trigger the InstallSchema.php of a module without any downtime. My question: Is there a way of reinstalling the module or at least running ...
Greg's user avatar
  • 2,729
4 votes
0 answers
411 views

xsi:type, is blocked or not validly derived from the type definition of the element declaration

I got this error : Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'title', attribute '{http://www.w3.org/2001/XMLSchema-instance}type': The type definition 'string', ...
Developper Magento 's user avatar
4 votes
0 answers
208 views

How to get custom table next id to be saved?

In magento1 - My scenario is saving an image to a folder. Why I am using id is I have to save a lot of items (images, pdf) into the same folder as it is all related to this item. When new data is ...
Raghu's user avatar
  • 83
4 votes
1 answer
681 views

loop through 2 collections with in one phtml

I am working on a custom module that is pulling in 2 different collections. When I try to use a for-each to loop through either of the collections the page displays the collection correctly. However,...
Brian's user avatar
  • 51
4 votes
0 answers
852 views

how to add courier's API in custom shipping Method

I have followed a tutorial to add custom shipping method to magento 2.1.7 and i can't seem to understand how to implement NinjaVan Courier API. Could anyone help ?? API $headers = array(); $headers[...
yasser's user avatar
  • 41
4 votes
0 answers
1k views

Module or extension to detect conflicts in Magento 2

Is there an extension that detects conflicts between extensions or modules in general in Magento 2 ? Like detect preferences added on the same class from 2 separate extensions. Maybe detect 2 plugins ...
Daniel Ifrim's user avatar
  • 3,404
4 votes
0 answers
674 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

Magento2.1: How to override the template in custom module?

I want to create an extension that will give shop owners ability to edit their product image. So I understand I need this template Magento/ProductVideo/view/adminhtml/templates/helper/gallery.phtml I ...
Roninio'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,929
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
4 votes
2 answers
3k views

Magento 2 custom module not loading and it throws error

I am using windows 7. app\etc\config.php <?php return array ( 'modules' => array ( 'Test_Module1' => 1, ), ); ?> When I add My Test_Module1 in app\etc\config.php admin all ...
Niraj Patel's user avatar
4 votes
1 answer
918 views

Create a Report Showing Email Addresses of Customer Who Ordered a Specific Product

I'm trying to do something that seems simple but we've been pulling hair out here trying to get it done. We have a specific product on our store that has been downloaded more than 2,000 times. When ...
Kevin Siegel's user avatar
3 votes
0 answers
438 views

is mixin for library file's method possible?

I was solving one of the issues from the other stack exchange question. The fotorama library file which is located in lib/web/fotorama/fotorama.js has one method navUpdate(){...} at 2765 line. I want ...
Rajkumar Vellaiswamy's user avatar
3 votes
1 answer
872 views

Magento 2 online refund for custom payment method

I am developing a Magento 2 custom payment module for one of my clients, yet I am now totally blocked in finding a way to process an online refund for any of the created orders. I can't locate the ...
Wagdy's user avatar
  • 31
3 votes
2 answers
2k views

upgrading from magento2.2.5 to 2.3.5 I'm facing this issue

I'm upgrading from magento2.2.5 to 2.3.5 I'm facing this issue PHP Fatal error: Uncaught Error: Class 'Magento\Framework\Component\ComponentRegistrar' not found in app/code/<Vendor>/<...
venkata prasad's user avatar
3 votes
0 answers
170 views

Magento 2: Set custom discount price to existing cart/quote in controller

I would like to set a custom discount price to an existing cart/quote in my controller and found some other people that had this question but none of them got answered: I want to add discount to ...
Felix Schönherr's user avatar
3 votes
1 answer
243 views

Magento 2: Logging in a custom module

I created a new Magento 2 module and followed the injection-based logger object creation. protected $logger; public function __construct(\Psr\Log\LoggerInterface $logger) Now, when I log using ...
melchi's user avatar
  • 175
3 votes
0 answers
103 views

Production mode doesnt load any content for custom module

I have created a custom module in Magento 2. In developer mode it is working well, however same module does not show any content in the production mode of Magento its show only white screen. There is ...
Daniel_12's user avatar
  • 680
3 votes
0 answers
134 views

EU cookie compliance

I'd like to have a (if possible) free magento 2 extension to deal with EU Cookie Compliance (RGPD). This module must allow the user to customize it's cookies. Which one would you recommand ?
Morgan Tartreau's user avatar
3 votes
0 answers
399 views

Manage Brands / Manufacturers in admin. Show brand logo and story in Product Page

I am looking for a best practice to show content about the manufacturer/brand on a product page. For example brand logo and story/description. This could be achieved just by importing the description ...
Joni Kiiskinen's user avatar
3 votes
1 answer
2k views

How to make and install my module via composer with two private repositories in magento 2

Problem Description: I have created two private repositories in github under same user name. Each repository contains different modules. But while trying to install the package via composer throws ...
Jaisa's user avatar
  • 2,626
3 votes
0 answers
37 views

Developed Module

I have 2 instance of magento store in your local system.instance Fresh Magento installation with sample date of Medium Profile and another with blank data. I want Sync all customer and customer ...
Ishwori ghimire's user avatar
3 votes
0 answers
498 views

use system config value to disable code from requirejs-config.js

I would like to create a configuration setting in my module's adminhtml/system.xml to disable it's features. I know how I can system config values to disable code in LayoutXML or PHP but is it ...
Holly's user avatar
  • 4,873
3 votes
1 answer
364 views

Magento Market place submit extension with licence

I have developed Magento extension that I want to upload on Magento marketplace. I have gone through the process how it works explained Here: https://magento.com/blog/magento-news/magento-...
jack's user avatar
  • 920
3 votes
1 answer
563 views

Get every string of static block identifier Magento 1.9

I have to modify mega menu extension in Magento 1.9. Currently, its showing static block at bottom of category. I want to separate static block identifier name based on some symbol like _ in my ...
inrsaurabh's user avatar
  • 1,676
3 votes
0 answers
392 views

Magento 2 custom module friendly URL's

I have my url structured like so: "http://domain.com/post" where post is my module's main router url. Then for each post I have: http://domain.com/post/category/view/id/1. and my url rewrite is ...
Juliano Vargas'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
1 answer
642 views

Issue in creating custom report magento 1.9

I have problem with report when i was trying to create custom report(I am learning from magento default report module) Error was Fatal error: Uncaught Error: Call to a member function hasData() on ...
Vaibhav Ahalpara's user avatar
3 votes
1 answer
886 views

Block not showing after layout update

Considering this layout update XML: <?xml version="1.0"?> <layout version="0.0.1"> <checkout_cart_index> <reference name="methods"> <block type="...
GigiSan's user avatar
  • 143
3 votes
0 answers
2k views

Magento 2 custom module multi scope store view

I am diving into the world of Magento 2 development. I am writing a very simple custom module to show a slider in my store homepage. Each slide has its own title and an image to show and I made them ...
giani.sim's user avatar
  • 1,473
3 votes
0 answers
623 views

Magento 2 - Display subcategories above product listing

I'm trying to display the first 8 subcategories above the product listing on a select few category pages. I know that I can easily do this using static blocks, but I'd rather use a custom template ...
Paul's user avatar
  • 1,501
3 votes
2 answers
982 views

Assets from module not appearing in pub/static folder

Running Magento 2.1 I am building a module with alert.js in the /view/frontend/web/ folder in my module: https://github.com/waynhall/frontend1/tree/master/Pulsestorm/FrontendTutorial1 However, after ...
Wayne's user avatar
  • 31
3 votes
1 answer
85 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
3 votes
1 answer
651 views

How to Create Custom Grid Filter Show All "NULL" Values in Specific Column

How can I make a filter for null values of my order ID <column name="order_id"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> ...
Mike121's user avatar
  • 103
3 votes
2 answers
716 views

how to override any .phtml or class file in magento2 using custom module?

Well I have an idea to create custom module in magento2 but when it comes to override code functionality I stucks. for example I have to override this file default.phtml in /vendor/magento/module-...
Yogesh Raghav's user avatar
2 votes
0 answers
42 views

Sorting custom columns from module that extends another module containing all the data (collections, data providers, etc.)

I have two custom columns in UI grid (let's call them subscribed_customers" and "unique_purchases") created in particular listings that retrieve value from the database with logic. ...
Dramorian's user avatar
2 votes
0 answers
350 views

How can I display a multilingual store from right to left for Arabic store view?

welcome everybody. I'm Mostafa from Egypt, new to Magento. I installed magento 2.4.5 in localhost, and used the default theme "Luma", and added the Arabic language pack for the system, and ...
Mostafa Sayed's user avatar
2 votes
2 answers
1k views

Magento2: How to create a patch for custom module composer.json?

I want to know that can we create patch for some changes in composer.json of custom module. I am talking about custom module composer not magento composer. Its just like changes but instead of any php ...
Ralph Rhodes's user avatar
2 votes
0 answers
208 views

Magento 2 Add a global js function

i'm trying to extend Magento_Ui/js/lib/core/class, in magento 2.4.3-p1, from a module but my extend js doesn't load in page here is my /view/frontend/web/require-config.js var config = { config: { ...
Weber's user avatar
  • 121

1
2 3 4 5
17