The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [module]

Questions about developing custom modules

700 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
0answers
448 views

Magento 2 How to add Tab Component in admin module

How can I add UI Tab Component in custom admin module with the help of below user guide ? http://devdocs.magento.com/guides/v2.1/ui_comp_guide/components/ui-tab.html There are not enough information ...
8
votes
0answers
786 views

Magento2 : How to hide a Product from a specific Customer Group?

I want to create an extension that will hide a product from a specific customer group.
6
votes
0answers
95 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. ...
6
votes
0answers
269 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 ...
6
votes
1answer
768 views

Watermark Category Images with Brand Logo

I'd like to add a watermark to each small image (but only in the category listing page) that is based on the manufacturer attribute. I don't want to alter the small image for that product on other ...
5
votes
0answers
66 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 ...
5
votes
4answers
4k 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 ...
5
votes
0answers
128 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 ...
4
votes
1answer
64 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 ...
4
votes
0answers
118 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', ...
4
votes
0answers
93 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 ...
4
votes
1answer
244 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,...
4
votes
0answers
567 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[...
4
votes
1answer
756 views

I need to add a extra field in product rest api response - Magento 2

I want to add a field "slider" in /rest/V1/products/:sku I created a custom module and in my di.xml i have added the following code <?xml version="1.0"?> <config xmlns:xsi="http://www.w3....
4
votes
0answers
442 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: $...
4
votes
1answer
1k 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 ...
4
votes
1answer
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
2answers
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 ...
3
votes
0answers
36 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 ...
3
votes
0answers
40 views

in custom module ajax-loading form translations not working magento 2.3

in ajax-loading form Change English it to italiano and it works but italiano to English not working proper. once transalte to italiano then switch to english store not transalte to english ...
3
votes
0answers
21 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 ...
3
votes
0answers
25 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.
3
votes
0answers
70 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 ...
3
votes
0answers
59 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 ...
3
votes
1answer
269 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 ...
3
votes
0answers
211 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 ...
3
votes
0answers
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 ...
3
votes
0answers
112 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 ...
3
votes
1answer
236 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-...
3
votes
1answer
324 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 ...
3
votes
0answers
281 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 ...
3
votes
0answers
1k 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
1answer
346 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 ...
3
votes
0answers
251 views

Bundle Price depending on items in bundle

This is a complex question about determining bundle prices. I have already hired a developer who cannot figure out how to make this work, and have spent days looking at extensions, so am reaching out ...
3
votes
0answers
1k 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/...
3
votes
0answers
1k 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 ...
3
votes
0answers
593 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 ...
3
votes
2answers
2k 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 ...
3
votes
5answers
2k views

Magento 2 module version number not editable

I have just started exploring Magento 2 structure and code-flow, also module development. When I created module from an online module generator and tried to change it's "setup_version" & "...
3
votes
1answer
812 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 ...
2
votes
0answers
27 views

Magento 2: How to install custom module in app/code folder only using composer.json file?

I'm trying to install my custom module using composer.json file and after run composer update command my custom module installed successfully in magento2. Actually I want to install my custom module ...
2
votes
0answers
29 views

How to add a price fieldset magento 2

How to add the price indicator to the custom field in Magento? I am developing a form to add additional attributes to the product. now I am searching for this functionality for a while, can you help ...
2
votes
1answer
34 views

Magento 2: Multilingual Module

I am creating my own module and as I am creating some text, that will be shown in the website. The store manager, which installs my module, needs to have the possibility to translate my text into ...
2
votes
1answer
48 views

Magento 2 I want to set a custom price of a product programmatically but only for this one session

I have a little problem because I first add some products into the cart -> this is working. But I also need to change the price of this products I add. The problem about that is, that I only want to ...
2
votes
1answer
38 views

Looking for inspiration/module meant for guiding customers step-by-step

I'm looking for a module, or inspiration for creating a module that can do the following: I would like to create a page inside my Magento 2 store which is named "Wizard". This Wizard can guide ...
2
votes
1answer
31 views

Blank Magento Page without error

After enabling the module created, browsing back to the page gives me blank page instead. Viewing the source of the page gives me basic html tags.
2
votes
3answers
308 views

How to override Magento 2 framework file?

I try to override this file : vendor/magento/framework/View/Element/Html/Link/Current.php I create a module.xml, registration.php and di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
2
votes
0answers
63 views

Do not make Customer Default Shipping Address while creating an Order

When User Go To Checkout Page, And if he has already added the address, I do not want it to be preselected. it always shows unselected. Like This
2
votes
0answers
65 views

Magento 2.3 - AttributeMerger plugin is updating incorrect element

I am trying to either add an additional class "browser-default" to the country_id select field, or replace the existing "select" class with "browser-default" I put together a quick AttributeMerger ...
2
votes
0answers
12 views

Magento 2: How can I relate/link custom module data to products like Up Sell or Cross Sell?

I have created modules to store complex information like Dangerous Good Informations (UN-No, Proper Shipping Name, Class, Packing Group etc) or Customs Numbers (Taric Codes). Now, I want to relate/...