Questions tagged [module]

Questions about developing custom modules

814 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
3answers
585 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 ...
10
votes
0answers
1k 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
98 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
284 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
895 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
1answer
67 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 ...
5
votes
0answers
470 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 ...
5
votes
0answers
81 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
1answer
1k 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....
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
141 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 ...
5
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 ...
4
votes
1answer
163 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
58 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.
4
votes
0answers
238 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
137 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
375 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
669 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
0answers
551 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 ...
4
votes
1answer
856 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 ...
3
votes
0answers
54 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
1answer
101 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 ...
3
votes
0answers
63 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
86 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
184 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
680 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
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
185 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
292 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
466 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
328 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
523 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
280 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
1answer
820 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="...
3
votes
1answer
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
603 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
1answer
856 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 ...
3
votes
2answers
625 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-...
2
votes
0answers
31 views

Magento 1.9 - Anyone used Voronoy Extra Fees Module?

Attribute value applied successfully with grand total but attribute not visible on back-end order total https://snipboard.io/JGuBUL.jpg I am using this module for extra fees https://github.com/...
2
votes
0answers
15 views

Add module to Magento Marketplace - where can I find their official tester utility

I intend to add my first module to Magento marketplace. While reading the documents they say that in the first step the module will go into a first automatic test phase using their utility and they ...
2
votes
0answers
15 views

I am having this kind of error while doing mass delete

I am facing this error while doing mass delete action in magento 2.3.5. {"Invalid method delete","1":"#1} Please anyone have idea please Share with me. Thank you In Advance.
2
votes
1answer
43 views

Magento 2: Getting Module validation issue

I am getting the module validation error: D:\marketplace-tools>php validate_m2_package.php Abc.zip ERROR - "Abc.zip": "composer.json" found in unexpected place. Zip archive layout not to standard ...
2
votes
0answers
53 views

Magento 2 very big problem in orders items

A few days ago I was having this problem,( main.CRITICAL: Unable to unserialize value. {"exception":"[object] (InvalidArgumentException(code: 0): ) but I searched for this error, I found it, I ...
2
votes
0answers
68 views

Sliding Cart extension for Magento 2 enhances mini cart to the next level with responsive design and conversion oriented features

There is already a full-fledged free extension available on Magento's marketplace and Github Magento: https://marketplace.magento.com/ambab-module-slidingcart.html Github: https://github.com/ambab-...
2
votes
0answers
50 views

integrate PWA App into Magento2 website

I want to integrate PWA App into my Magento2 website , i have already tried with Tigren extension and made changes as per the document. After installation i am getting errors in checkout process. I ...

1
2 3 4 5
17