Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
0answers
28 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
167 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" ...
2
votes
2answers
67 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
40 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
58 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
18 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
31 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
83 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
21 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
37 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
40 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
3answers
418 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 ...
2
votes
1answer
145 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
17 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/...
3
votes
1answer
150 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
28 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
288 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
57 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/...
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
1
vote
1answer
296 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
44 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
118 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
289 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
49 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
202 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
30 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 ...
1
vote
0answers
33 views

add a new dropdown to the product edit form, he data should come from a custom table I created magento 2.3

I want to add a new dropdown to the product edit form in magento2. The data should come from a custom table I created in a custom module. How do I do this, is there a good example or tutorial out ...
0
votes
1answer
161 views

How to create custom table programmatically(using code) without using installschema.php magento 2?

Actually I have created a custom grid in back-end for creating custom table there I am providing some fields like- table name, Assigned to Module Name, Number of Input text boxes. Now I want to ...
0
votes
1answer
58 views

Magento 2 actions column in backend grid registry.js error on click any collumn

When I click anywhere on the Grid I get the following: Actions xml: ... <actionsColumn name="actions" class="Vendor\Module\Ui\Component\Listing\Grid\Column\BlogAction"> <argument ...
3
votes
1answer
157 views

Magento 1.9 observer on only new product added ( no updated product )

I need an observer when a new product is added, I don't need one when a product already exists and it is updated. I found catalog_product_save_after and _before but this is triggered when a product is ...
0
votes
0answers
11 views

How can add many option in same payment module on magento2, having a problem because option not appear in frontend

define([ 'uiComponent', 'Magento_Checkout/js/model/payment/renderer-list' ], function (Component, rendererList) { 'use strict'; rendererList.push( { type: '...
0
votes
0answers
35 views

How to send subscribe email in a custom module in magento2.2.5?

I have created a custom module, need to send a newsletter subscription email to the consumer in magento2.2.5? Refer screenshot Any help would be appreciated.
0
votes
1answer
31 views

why button not showing in custom theme in magento 2?

when i go customer login and customer module and custom_module related pages button is not showing when i move a mouse over that button the button is showing how to solve this css color ...
2
votes
2answers
52 views

Adding Space in Checkout Form

I've used Bodak Module :https://github.com/sbodak/magento2-checkout-custom-form And I changed the checkout to my liking. How can I add the spaces between the text "If you don't have the code, you ...
0
votes
0answers
422 views

Magento2 : Save Button Not Working in Admin Form Custom Module

I am Working on A magento 2 custom Module i have a Form as well a Product Grid in my form so i created tabs using block but Whenever i click on save button gives me Javascript Error TypeError: $....
2
votes
0answers
64 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 ...
1
vote
0answers
54 views

Add customer attributes to Magento shopping cart rules

I have customer attributes added using a module and I need to add add them to Promotions, especially for Shopping Cart Price Rules. I found this tutorial, but looks like I'm doing something wrong, ...
1
vote
1answer
61 views

Magento 2 Import/Export Options Missing

I've installed Magento 2 and under System -> Data Transfer there are no options. Do I have to enable them somehow?
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/...
2
votes
1answer
113 views

Magento2 : How can I add filters to frontend so it should work like a backend filter?

i'm working on adding custom filter for this custom module i want to add filters (Q_ID,Q_STATUS,Q_PRICE) it would work like back end filter Magento admin how i add filter and any idea's??
1
vote
1answer
37 views

Magento2: How to get simple products Assosiate to configurable products [duplicate]

I want to get simple products Associate to configurable products in custom module using factory method. (not using object manager)
1
vote
0answers
46 views

How to change icon of custom menu?

I try to change the icon on my custom menu, and I follow steps on Ibnab post, but doesn't function for me. I looked on every post in this page , but I don't know if all steps work on my Magento 2.3 ...
3
votes
0answers
56 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 ...
0
votes
0answers
27 views

How to set number of images in Instagram feed plugin in Magento2?

I want to set minimum number of images in Instagram feed plugin, in the plugin it is asking for number of images but I want to put the condition that there should be minimum 6 numbers of photos in ...
0
votes
2answers
139 views

Magento 2 override admin product-gallery.js file in custom module

I have created one custom module named Hs_Mageenhancement and want to override below admin js file. magento2/vendor/magento/module-catalog/view/adminhtml/web/js/product-gallery.js I have created ...
2
votes
1answer
86 views

How I can solve the di:compile error in Magento 2?

When I run setup:di:compile I got error Errors during compilation: Vendor\CustomRegistration\Model\Customer\DataProvider Incompatible argument type: Required type: bool. Actual type: \Vendor\...
2
votes
1answer
347 views

How to add select state dropdown field in custom phtml form and save in database(frontend) in magento2.2.5?

I have added a select state dropdown field in my custom phtml file. But not able to save that value in database in Magento2.2.5? /var/www/html/magento2/app/code/Amy/Contactform/Block <?php ...
3
votes
2answers
90 views

Magento 2 : How to override a custom module which install via composer?

I have installed one custom module using composer as usually that module was installed in vendor directory is there any way to override phtml file in the same module like name but on app/code module ...
1
vote
1answer
259 views

How to create select dropdown field in phtml file dynamically in Magento2.2.5?

I want to create a select dropdown field in contact form(phtml file) which must be called dynamically in magento2.2.5? Refer screenshot This is my from I have override my contact form, I want a ...
0
votes
0answers
74 views

Magento 2.3 Return Custom Shipping Methods

Magento 2.3 I have an external REST API that will return a list of shipping methods based on zip code, how should I set up my custom module return the results in a list of shipping methods to pick ...