Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions about developing custom modules

1
vote
1answer
5 views

Module with cron job to fetch all products where custom attribute is true

I am brand new to Magento module development, and I need some help getting started. My goal is relatively simple: I'd like to create a module which fetches all products with a custom attribute '...
3
votes
1answer
26 views

Create Link Dynamically By Customer Group in Customer Account Navigation - Magento 2

I am attempting to add links to certain customer groups that will show on Customer Dashboard. I'm having trouble figuring this out! Help!
0
votes
0answers
6 views

How can i display the subcategories listing page on click of root categories instead of product lisitng in magento2

I need to display the subcategories in the categories,when clicked from menu it should redirect them to a subcategory page,again onclick of that it should breakdown to level3 category and so on until ...
0
votes
0answers
17 views

Custom module created is not working in server,works good in local environment

We have created a custom module inside app/code and in upgrade schema script we have increased the module.xml version to add a new column to the existing table.Will it cause any issues?I am not able ...
0
votes
0answers
14 views

Submit form to same page in custom module

I'm looking to submit my form to the same page, but it just redirects to the admin dashboard. Here's my .phtml file: <?php $action = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ===...
0
votes
0answers
4 views

RWD media query not compiled in Magento 2 custom module

In my custom module I put a .less file for styles located at app/code/AAAA/BBBB/view/frontend/web/css/styles.less. Inside it, I try to use media queries like this: /*** * ... Code Block A ... ***/ /...
3
votes
2answers
98 views

Is it safe to disable Temando_Shipping & Dotdigitalgroup_Email?

There's a couple of Modules that are packaged with Magento Open Source these days that promote Magento Partners. I know that disabling Magento_Signifyd can be done safely without any collateral. ...
0
votes
2answers
24 views

How to re-submit form data in custom module?

I want to get post data in phtml . In case form data not save then show error and already fill form . <form class="trail-register-form" action="<?php echo htmlspecialchars($this->...
3
votes
2answers
17 views

unable to get order status in sales_order_place_after event in magento 1.9

Hello I am unable to get the order status in the observer sales_order_place_after I also tried other events like checkout_onepage_controller_success_action, checkout_type_onepage_save_order_after. ...
0
votes
1answer
91 views
+50

How to add phtml file at edit tab of Magento 2 custom module in admin?

I have created a custom module. When we click on the admin grid to edit, it opens edit page. In that I am showing tabs. When I click on that tab I need to show template file. If you see the below ...
0
votes
2answers
41 views

Magento2 : Overriding Model file not working

I want to override Magento\Payment\Model\Info::setAdditionalInformation() function my code is as below <preference for="Magento\Payment\Model\Info" type="Xxx\Yyy\Model\Payment\Info" /> and ...
3
votes
0answers
19 views

How to get custom table next id to be saved?

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 created I want to ...
0
votes
0answers
16 views

Magento 2.2.5: Import Font-Awesome with _module.less

I'm trying to import the font-awesome.min.less in css/lib folder to _module.less, but doesn't seem to work, please help, import by _module.less only, do not use <css></css> in layouts ...
0
votes
0answers
32 views

New admin tab not showing

I am trying to built a custom module for Magento 2.2 and despite following countless guides to get it working, I cannot get it to show the admin configuration page tab that I have added. The ...
0
votes
1answer
18 views

Magento 2.2.5 Would it be possible to re-use a module

I am using a module to calculate shipping rates (matrixrate) and since I want to have more shipping methods, could I re-use this module? I was thinking maybe reinstalling it? Could this work?
1
vote
0answers
20 views

Order not creating - Magento 2

I just added the custom order form on my products page(form.phtml) as below image to create order. Based on this input values orders should created and also custom email need to send with the form ...
0
votes
1answer
32 views

Problem with module installation on staging subfolder (Magento 2)

I have created a staging magento copy of live site on a sub folder, everything goes fine until now. When I want to install module, and run magento module:status doesn't appear on the list. The ...
4
votes
3answers
55 views

how to override Reviews Module

I'm working on Custom module in which I need to override Magento's reviews Module. I want to add some extra fields in Magento's Review Form. I created Preferences in adminhtml/di.xml Now whenever I ...
2
votes
0answers
42 views

Magento 2: Can't place the order corectly after return back from payment (3ds page)

I'm developing a payment module for Magento 2 and stuck at some point. and I already checked the similar questions, I send a callback URL with the post of data to PSP to get the customer back to it ...
0
votes
0answers
10 views

How can we store value to database custom table from custom module in magento 2 from phtml files?Apart from install and ugrade schema scripts?

Can you please suggest us how can we store a custom value entered in screen using form ,upon click of the submit should store value in our custom table created.
1
vote
0answers
19 views

How to make changed module files take effect?

I changed my extra.phtml file in a module that I already have installed, and that module is (i think) dependent on another module. I've done all of these: disable/reenable module remove entry from ...
1
vote
0answers
15 views

Magento2 - how to automatically create UpgradeData, UpgradeSchema based on existing table(s)

Who knows is there any tools, modules or whatever to convert existing table dump and structure into UpgradeData, UpgradeSchema? Why? For example you created complicated settings stored in DB and you ...
3
votes
0answers
31 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 ...
1
vote
0answers
21 views

How to get the selected Order(s) so i can use them for building a form in custom grid?

I am new to Magento and development in in general. I am working on a custom module. I did some tutorials and a lot of searching to help me get where i am. But now I have the feeling I am lost ...
2
votes
0answers
16 views

Custom Module for Custom Column using Plugin Yes/No option

I have been digging all day trying to figure out a way to enable/disable the plugins of my custom module with system configuration yes/no. Basically, I have a custom module that adds the Company ...
3
votes
1answer
34 views

Magento 1.9 Best way to send email within custom module

I have created a custom form that will post to a controller, where it will then send an email via the following snippet in my post action: $to = "vish@example.co.uk"; $subject = "Vish"; $body = "<...
0
votes
0answers
14 views

Unknown error : Element 'script': The attribute 'src' is required but missing

I am a newbie Magento2 developer and tried to develop shipping restriction country. So I created custom module which consists install data setup for creating custom product attribute. After that I had ...
0
votes
0answers
20 views

Magento 2 - Display Custom dropdown Attribute on Cart Page

I want to display select options on the cart page. Max 3 items to be selected. These selected items should be shown on order success page, In accounts orders detail page, admin orders detail page and ...
0
votes
2answers
44 views

Magento Override frontend template in custom module file

I want to override the contact page frontend from my module file. To override the frontend template of contact form, i have created module and in that module i have created layout file mymodule.xml ...
0
votes
0answers
26 views

the phtml file is not showing up

Hi I have a module and the block looks like this: class IcebergCommerce_VideoGallery_Block_Video extends Mage_Catalog_Block_Product_View_Media { protected $_isVideoGalleryDisabled; ...
0
votes
0answers
16 views

Disable another module from my module xml

I've a Magento 1.9 shop where a 3rd party module in interfering with my own module. I need to disable the 3rd party module, but due to too-long-to-explain-here reasons I cannot just edit its .xml and ...
0
votes
0answers
16 views

No Index For Layered Navigation on Magento

I'm trying to make no indexed my layered navigation pages on my magento store. I follow this guide http://trafficmotion.com/blog/index.php/2014/03/20/noindexing-filtered-product-listing-magento/ and ...
0
votes
1answer
15 views

Magento 2 | Override Magento_Downloadable

I want to override this file in my module: /var/www/magento2-dev/vendor/magento/module-downloadable/Helper/Download.php to /var/www/magento2-dev/app/code/My/Module/Helper/Download.php How can ...
0
votes
0answers
13 views

Magento 1.9.3.6 problem with shipping insurance extension

I installed this extension https://github.com/sumlbel/magento-shipping-insurance-module for a Magento 1.9.3.2 some time ago and all worked fine. Now I need the same module for another Magento but ...
0
votes
2answers
24 views

adding a new block with overwritten class fails

I have created a new module (to extend checkout): <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
1
vote
2answers
25 views

1.9 - Fatal error: Call to a member function on boolean

I've created a custom module for SSO with Discourse. Exact error: Fatal error: Call to a member function setSecret() on boolean in /home/website/public_html/app/design/frontend/theme/path/...
1
vote
0answers
28 views

Magento2, add custom module files to pub/media directory [closed]

If we include files in our Magento2 custom module, that should be added to the pub/media directory...how do we go about ensuring they are added? Ive created the required media dir sub-directory via ...
1
vote
1answer
22 views

Avoid module update

I've overrided an open-source module downloaded on GitHub. I change some things in mainly in views, but I don't want theses to do erase if the module is going to be updated. How can I avoid this ?
-2
votes
2answers
35 views

Class Factory doesn't exists

i'm after this course https://www.mage-world.com/blog/grid-and-form-in-magento-2-admin-panel-part-1.html but my magento version is 2.2.5 so its a little bit different. i create NewsFactory auto by ...
3
votes
0answers
47 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 foreach to loop through either of the collections the page displays the collection correctly. However, ...
0
votes
0answers
27 views

How to use code migration toolkit in magento2?

Below is the Github link for Code migration toolkit magento2. https://github.com/magento/code-migration I need to migrate my magento1 modules to magento2 standards. Does this supports it? If it ...
1
vote
1answer
17 views

Hook and modify an email being sent by Magento 2

I am trying to find a way to modify my email letter content before sending it. I want to be able to modify any email being sent by Magento. For instance I need to achieve the following. Be ...
2
votes
1answer
52 views

Magento 1.9 add layout and template to custom module in admin

I am new to Magento. When I try to create a custom module that shows two tabs on the main page with the option to change titles, backgrounds, and colors, I was successful in adding the module's tab ...
0
votes
0answers
35 views

Magento 1.9.2: Auto Generate Meta Titles and Meta descriptions for existing Bundle products

Really new with Magento, I have followed along the answers for a way to auto generate Meta Titles and Meta Description based on Product Title and Product Description. My basic requirements was Meta ...
0
votes
0answers
20 views

Magento 2 disable modules on CLI installation (setup:install)

Is it possible to disable some module during installation using the command line? So when I run: bin/magento setup:install are there extra parameters (or --magento-init-params) that I'm not aware of ...
0
votes
0answers
31 views

How to to add external nusoap library in a custom extension?

I have to include external NUSOAP library in my custom made extension. What steps do I have to take as PHP's require_once() or include() doesn't work in Magento.
0
votes
1answer
30 views

Magento 2 Extension Vendor name start with digit Not working

Try to create Magento 2 Module, Vendor name start with digit Like : app/code/3dvendor/3dmodule (3dvendor_3dmodule) when run "php bin/magento setup:di:compile" command we get error Is it valid ...
1
vote
0answers
10 views

Custom Infinite scroll Magento2 custom listing page

I am trying to make infinite scroll on my custom listings page. O am trying via ajax. <script type="text/javascript"> require([ 'jquery' ], function ($) {...
1
vote
1answer
31 views

Custom Magento module config.xml not loading after applying security patch

I've just applied the security patches on Magento 1.9 and after that, my custom modules didn't work. I tried clearing the cache and index but nothing happened. When I tried visiting the URL of my ...
1
vote
0answers
27 views

Magento 2 - cash on delivery fee “0” with Iways PayPalPlus module + Phoenix CashOnDelivery module

We are facing the problem, that the cash on delivery fee is zero ("0"), when the PayPal plus module is activated. We are really sure that the PayPal plus module causes this error. We searched the ...