Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [module]

Questions about developing custom modules

0
votes
0answers
2 views

Mass Action assigned to a custom button in Sales Order page Magento 1.9

I am working on a custom module. One part of that module creates a button above the Sales Order Grid. The current code for that button is; public function addNewButton($observer) { $...
2
votes
1answer
25 views

How to Insert record in database-table through custom module in magento2

I have create a custom module and database-table using following this steps and i understand the table displaying in customer_side. Now I Need to Know the Insert operation in customer_side please ...
0
votes
2answers
22 views

Magento 2 Enable/Disable Module [duplicate]

I installed a new extension on my site, but couldn't enable it. ran command php bin/magento module:status I can see it was enabled, but it's disabled on module manager. Thanks
0
votes
0answers
25 views

Overwrite Proceed to Checkout button url

I am building a custom module and I need to show cart items in a custom page when user click the “Proceed to Checkout” button from mini cart or from cart page. How to change the “Proceed to Checkout” ...
1
vote
1answer
24 views

Magento 1.x Custom Module - get wrong Frontend Url

I have Mage 1.9 with my custom module installed. I have checked that the function Mage::getUrl('mymodule/api/users/1'); return wrong url with admin path. We also use a custom path for the admin ...
1
vote
0answers
22 views

Magento user permission unchecked on save custom module

I've developed a small custom module. It worked as expected but I can't save user permission: I can see the module in the admin panel and in the Role Resource Tab (System->Permissions->Roles), but ...
1
vote
2answers
72 views

How to pass store code to custom URL in magento 2

I would like to add store code to a custom URL in Magento 2.3.0 Actually, I want to pass store code to a custom URL in my custom module based on relevant store order. Let's take an example: public ...
2
votes
2answers
23 views

Magento2 : I am getting this error when i upload two custom module and css and js file

I am getting this error on my live site as production mode and I uploaded only two custom module and js and css and two overwrite file in our theme.Below share error as warning showing I apply all ...
0
votes
1answer
26 views

Magento 2: Header and footer not loading in custom module's CMS layout

I am developing a custom theme which inherits from Magento/blank. I am attempting to develop a CMS homepage layout within a custom module. I have created the module and successfully applied the ...
1
vote
2answers
16 views

Executing a module when the user opens the page

I have a module that records the user's IP on the debug log when he visits the page "example.com/iplog/index/test". My module is located in the app/code/IpLog folder and contains the modules.xml, ...
1
vote
3answers
66 views

Magento 2: How to override theme LESS styles within custom module

I am running Magento 2.3 on Ubuntu 18.04 server with Apache 2.4, MariaDB and PHP 7.2. Magento is running in developer mode. I have created a custom theme which inherits from the Magento/blank theme. ...
1
vote
1answer
25 views

What does module:disable actually do?

Background: I seem to be having trouble disabling modules on my M2 2.3.1 store. Example: I had installed the CommerceBug development module but wanted to test my site without it so I ran module:...
1
vote
1answer
25 views

Magento 2 error on an overriden constructor

I have 2 custom modules installed, when opening a front end of a module1, i get error related to module2, this is the error Argument 4 passed to VendorName\Module2\Block\Magento\Framework\Pricing\...
4
votes
0answers
27 views

After uninstalling modules using Composer and removing all trace of them, Magento is still looking for them via ModuleList\Loader->getModuleConfigs()

I'm trying to remove some modules (all Amasty modules) from my site for debugging purposes, but no matter what I do, Magento keeps looking for the Amasty_Base module and I can't get rid of it. The ...
0
votes
1answer
24 views

How to add custom button to product page to three different places (magento 2)?

Button position decide by store owner(using admin panel). There are three positions.if user select test01 button's position others shouldn't be display.(Display only one place depend on user decision) ...
1
vote
0answers
10 views

How to share wishlist email from a custom module in Magento2.2.5?

I have created a custom module for wishlist, and I need to share email from wishlist which include multiple products in Magento2.2.5? My Code: <?php namespace Emipro\GuestWishlist\Controller\...
1
vote
2answers
30 views

Unable to override Magento\Catalog\Model\Product\Url, Type Error occurred when creating object

I'm trying to override the Magento\Catalog\Model\Product\Url class so that I can modify the getURL() function, but I'm getting the following error: Error filtering template: Type Error occurred when ...
1
vote
2answers
59 views

How to override login.phtml in a custom module in magento 2 [duplicate]

How to override customer login.phtml file in custom module, whenever i try it not doing what I expected
0
votes
0answers
29 views

magento 1.9 Custom install setup

I'm not able to create a custom table with my module, I followed many tutos but seems like my install is never called. My module work fine except for this part. I don't understand what's wrong... In ...
0
votes
2answers
51 views

Modules disable after upgrade 2.3.1

Good afternoon, I recently upgraded from version 2.3.0 to 2.3.1 through composer It happens that some modules were disabled during the upgrade, I would like to know the reason and what I do with them (...
0
votes
0answers
29 views

Is it possible to show/hide custom column of admin product grid based on custom module enable and disable functionality?

This is my product_listing.xml file <filters name="listing_filters"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> ...
0
votes
0answers
27 views

Custom Product Attribute values editable through Dashboard

I created a module that install and upgrades custom product attribute programmatically. It works as intended, however, when viewing the attribute through admin dashboard, I am unable to make any ...
1
vote
1answer
67 views

Magento 2 : declare new image id with no theme

I wish to add a new image id for a custom product widget. I know I can do this with the file view.xml in my theme but I would like to do this in the Module (app/code/vendor/module). https://devdocs....
0
votes
2answers
23 views

Magento 2: How do I enable or disable all modules (or subset) of a vendor in 1 command?

Seeing we are installing, upgrading, removing a new M2 (2.3.1) install we wouldlike a fast way to enable or disable modules from vendors in 1 go. Either by the Vendor name or for a Subset of modules ...
0
votes
0answers
24 views

Add custom product attribute to checkout summary Magento -2

I have added onestepCheckout module in my project. Now, I want to show discount amount in checkout summary after product name. I refer this link : Add custom product attribute to checkout summary ...
2
votes
4answers
79 views

Magento 2.3.0 How to get request parameters in event observer?

I would like to get a request parameter in the observer file. Below is the observer code. etc/frontend/di.xml <event name="review_save_before"> <observer name="set_customer_data" ...
1
vote
2answers
38 views

How do I disable all non-core modules in Magento 2? (in 1 step)

Suppose I want to go back to the code state where only M2 core modules are active. question: How do I disable all non-core modules in Magento 2? (in 1 step)
3
votes
1answer
28 views

How can i add a custom javascript module to custom module?

Hi this code is working perfect without magento. <script src="flipbook.js"></script> <script src="jquery.js"></script> <script> $('#side').FlipBook({ pdf: '...
3
votes
2answers
43 views

Should new modules be developed in app/code or vendor/org/module?

I prefer creating a new module repo in git, adding that via composer, and letting composer check it out to vendor so that I can develop in <magento-root>/vendor/[org]/[module] from start to ...
0
votes
0answers
14 views

Can't get a column by POST

I've create a module, but i don't know why i can't get the field "qty". Follows code of the grid: protected function _prepareCollection() { $collection = Mage::getModel('catalog/...
1
vote
0answers
25 views

Magento 2 add a field to front account information tab

I'm trying to add a custom text field to the edit account information page on frontend customer dashboard, so i tried to create a module like this in VendorName\ModuleName\Setup\InstallData.php ...
1
vote
3answers
66 views

Update module to run alter command

I have created a module Vendor/Module I have added sql setup script in it. The module is working fine. Now I need to alter table and add come more columns in the table. To do this I need to add new ...
0
votes
0answers
16 views

Magento 1.9 add custom field to multiple templates

I have a custom field that I would like to add to all areas in the admin panel where you can change the quantity of a product. I currently am of the impression that I have to rewrite each template ...
0
votes
0answers
20 views

Update Store Summary By Checkout Address Country Change

So Basically I want to update my checkout cart summary when user select country from shipping address ,cart price and currency change according to the country he selected in shipping address.
2
votes
1answer
37 views

Magento 2 Completely cancel/remove module

I installed some extensions manually some time ago, without composer. Now I'd like to delete them. Is there a way to permanently delete them? Now they are disabled. Especially some ...
2
votes
2answers
94 views

Magento 2.3 Image upload field on CMS Page

I followed the steps from the following post (Magento 2 : Add Hero Image Upload Field on CMS page) to create an image upload field on the CMS page. I managed to create the field on the CMS page, as ...
3
votes
1answer
46 views

Magento 2.3.0 How to add review form in custom module?

I would like to add a review form in my custom module front end page. On this page, I have displayed several selected products. I want to display a review form in front of each product each review ...
0
votes
0answers
16 views

Magento 2 Install Composer and Setup Upgrade in 1 step: how do we get the package name?

I am reading through the Magento guide and understand the steps. However it appears to me that many -if not all - of the steps are the same everytime. https://devdocs.magento.com/guides/v2.3/comp-mgr/...
2
votes
1answer
40 views

Where to find Orders details page frontend magento 2

I want to change the design of Orders details page in magneto 2 frontend, but I don't know which page to edit. Is it in module-sales?
0
votes
0answers
21 views

Crud module for parent and children table

i'm created crud plugin for children and parent table. Can anyone suggest how to get the data from parent table.PLease Help me. Many thanks here are may table <?php namespace ThuyNT\Crud\...
2
votes
3answers
55 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-...
0
votes
2answers
23 views

Integrate js with button on uiComponent xml

I have the following custom form in my admin html and I have tried to insert a javascript function on my custom button click but the page being in a infinity loading loop. view/adminhtml/...
1
vote
0answers
32 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
1
vote
1answer
86 views

Magento 2.3.0 custom cron job is not working

Magento 2 custom corn is not working in my custom module. app/code/Namespace/ModuleName/etc/crontab.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
35 views

Disabling maintenance mode Command returned non-zero exit code

I am a newbie in magneto I made a Magento custom extension but while uploading this into the Magento Marketplace, I am facing an issue it's Test Fail, Below is the test report Environment: PHP 7.1....
1
vote
1answer
51 views

Magento 2 Custom extension admin grid returning blank

I have a custom module on my Magento 2 installation. The problem is when I access the admin grid, it's returning a blank page, just with the title of the page, like the following picture. I already ...
2
votes
1answer
46 views

Magento 2.2 - Problem with Helper class not found in custom module

I'm creating a payment module and I'm having a curious problem. I started by creating the module inside the app/code/Vendorname/Payment folder for convenience. It is not yet complete, but the system....
0
votes
0answers
25 views

how to get the custom page event happened data to observer in magento 2?

I have custom module observer in Magento 2 <event name="controller_action_postdispatch_mpquotesystem_sellerquote_quoteedit"> <observer name="...
0
votes
3answers
48 views

how i can override the observer of other modules in magento 2

how i can override observer of other module(custom module) to my another custom modules in magento 2 is it possible ??? Does anyone have an idea? ex : custom module 1: the observer for ...
0
votes
0answers
23 views

Magento 2 - Custom Registration Form For A Specific Customer Group

I am trying to build a custom registration form that can be shown on the CMS page. Any guest user can register through this form. Customers whoever register through this form will fall under a ...