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

Questions about developing custom modules

0
votes
2answers
17 views

low stock notification to admin without any extension in magento 1.9

I want to create the custom module for email sent to admin for notifying when the product is low qty in magneto 1.9.x. Thank you.
0
votes
0answers
13 views

How can I call my API of Shipping when the order is placed using my custom shipping module?

I have created a custom shipping method and is appearing in the admin config page, and also is able in the customer order to be selected. Now I need to do an api call to my shipping company when the ...
0
votes
1answer
12 views

How to add custom configs variables to custom shipping method?

I have created a custom shipping method following this tutorial: https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/ Now I would need to add a couple of extra variables to admin ...
1
vote
1answer
15 views

Can't see the custom shipping method just added

I need to add a custom shipping method. I was fallowging this tutorial: https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/ I was able to configure my custom shipping method. I set ...
0
votes
1answer
33 views

Magento 2 - Frontend page giving 404 error page

Hi I have created a module to view a form in the frontend. below is my code /app/cod/TerrificMinds/Test/Block/Registration.php <?php namespace TerrificMinds\Test\Block; class Registration ...
1
vote
2answers
33 views

Magento 2: How to Override File in Vendor Folder

I installed a 3rd party PHP sdk via composer and need to override a couple files in my own module. However, I'm not quite sure what the best practice is to override these files from the vendor folder. ...
0
votes
1answer
17 views

magento 2 lost code for EAV attributes

I use git and composer in my project. My flow: 1 Each module has its own git repository. 2 I use composer and install and update modules to my project update composer.json composer update <module ...
0
votes
1answer
15 views

magento 1.9 observer on quantity product change

I can't find the event for quantity product change for magento 1.9. I need to do something after a quantity product is updated from backend and frontend, when a user buy a product and decrease ...
1
vote
1answer
25 views

Add custom textarea field to product form (admin)

I want to add a custom product attribute to the product form in the admin area. https://devdocs.magento.com/guides/v2.2/howdoi/customize-form-configuration.html and https://devdocs.magento.com/guides/...
0
votes
1answer
32 views

magento 1.9 problem custom module programming example problem

I have these files: app/code/community/Foggyline/HappyHour/Block/Hello.php class Foggyline_HappyHour_Block_Hello extends Mage_Core_Block_Template { public function __construct() { parent::...
0
votes
0answers
26 views

Cannot upload meta package plugin to Marketplace

I'm not able to publish my package to Marketplace.I have created a new module and metapackage composer file (I'm using 2 packages from github). After submission below getting errors occurs: "reports":...
0
votes
2answers
49 views

Magento 2 - Disable some modules per store view

I have setup two stores in Magento 2.2.6, each store have their own theme and url address. In one store I have Porto theme installed in the second store I have other theme. How I can disable for ...
0
votes
1answer
22 views

Magento 2.2: How can I override “checkout.item.price.unit” and “checkout.item.price.row” in the cart?

My goal is to switch out the .phtml files: magento_module-wee::item/price/unit.phtml as well as magento_module-wee::item/price/row.phtml with my own custom ones and change how the prices are displayed ...
0
votes
0answers
11 views

Magento2: Issues with display products related by brands

I have a strange error with displaying products related by brand. I have all products assigned correct to brands the only problem is that for one brand it shows correct related products by brand: ...
1
vote
2answers
30 views

How make examplary, full module step by step? [closed]

I searched how make examplary, full module for Magento 2 step by step. Can You send me honest links?
1
vote
0answers
15 views

Duplicate sales order grid to custom admin page

I need to copy the sales_order_grid table to a custom admin page. Is there a way to do so using Magento's API?
1
vote
0answers
16 views

Plugin Grid not loading/block doesn't exist

So I have a plugin called Vendor/PluginName. It's fairly simple and has a grid layout (view/adminhtml/layout/pluginname_index_grid.xml) that has the contents of .... <?xml version="1.0" encoding=...
0
votes
1answer
11 views

Magento2:custom module add new form action after not save data

I have create new custom module click add new form after data fill up than save not working but if in existing record edit after save working please let me know hows problem?
0
votes
0answers
13 views

How to customize custom payment method template (include images and custom styles)?

I'm working on a custom payment method and I would like to know what was the correct way (if possible) of including custom images and styles to the payment method section (images and styles locations ...
3
votes
1answer
14 views

magento 1.9 custom module fronted error 404

I have problem to acces the custom module frontend controller. I am following a basic tutorial to build a custom module. These are the files I've edited: /var/www/html/magento/app/etc/modules/...
0
votes
0answers
22 views

fetch data from custom table magento 2

Fetch data from a custom table that I created Here's my XML code: <?xml version="1.0" encoding="UTF-8"?> <!-- /** * @category Mr * @package Mr_Dukaaniatest * @author jhondoe17@...
2
votes
0answers
19 views

Syntax for overriding config.xml module configuration with config.php in magento2?

I have a module MyCompany_ExampleModule. Its etc/config.xml file: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/...
3
votes
0answers
33 views

StoreRepository get($code) which does not exists

Till today all the code was okey, but after code review I got that we use method load() on store itself so I replaced it with storeRepository->get($code) Code what I'm talking about first ...
0
votes
1answer
32 views

form not showing when i click on custom module menu [duplicate]

Form not showing when clicking on custom module menu. Here's my code: /home1/dukaania/public_html/testing2/app/code/Test/Banners/etc/adminhtml/menu.xml <?xml version="1.0"?> <config xmlns:...
2
votes
1answer
35 views

static files deleted after php bin/magento setup:upgrade

While setting up new module and after running php bin/magento setup:upgrade it started to clean cache and file and deleted all front end css and adminhtml css and all visual files. How Can I prevent ...
0
votes
0answers
15 views

Magento 2 : How To Import Core Less File In Custom Extension Less File?

How to import lib/web/css/source/lib/_button.less file in my custom extension less file.
0
votes
1answer
25 views

configure menu.xml file with uiform that i created custom

How can i configure menu.xml file with uiform that i created custom. Here's the menu code: /home1/dukaania/public_html/testing2/app/code/Test/Banners/etc/adminhtml/menu.xml <?xml version="1.0"?...
0
votes
1answer
30 views

Namespace declaration statement has to be the very first statement or after any declare call in the script in

facing this issue: Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /home/dukaania/public_html/testing2/app/code/...
2
votes
1answer
33 views

Facing the issue : contains 1 abstract method and must therefore be declared abstract

Fatal error: Class Tutorial\SimpleNews\Controller\Adminhtml\News contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Magento\Framework\App\...
2
votes
0answers
14 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', ...
2
votes
2answers
35 views

want to add custom module in magento 2 admin panel

Created folders and added code for the custom module but nothing gonna work in my way please help, nothing shown up in the admin panel. Here's my code and folders that I created: public_html/testing2/...
2
votes
2answers
29 views

Magento 2 Module not loads

even after enabling the module using command-line the modules content are not loading, in app/etc/config.php it sets the value as one 'Turtle_VM' => 1, but in local system and staging the module ...
0
votes
2answers
24 views

I am getting an error as invalid template file when i tried to add a custom payment method in custom module file

Invalid template file: 'RW_CustomPaymentMethod::info/custompaymentmethod.phtml' in module: 'RW_CustomPaymentMethod' block's name: 'info\custompaymentmethod_0' Should we declare this template ...
2
votes
1answer
30 views

Send custom email by using cron job magento2

I want to send an Email through a cron job for every 24hrs once.In that email need to mention all the abandoned cart details. I am new to Cron jobs so can you please explain it. Thanks in advance
5
votes
1answer
30 views

Plugin for aroundSavePaymentInformationAndPlaceOrder Throwing Error

I have a plugin that i want to intercept aroundSavePaymentInformationAndPlaceOrder, but it is giving me an error. Here is how it is set up: Vendor/Module/etc/di.xml <?xml version="1.0" ...
3
votes
2answers
70 views

Constr is not a constructor on layout.js line 137 error custom module

I have gone through this posts and tried to implement the answers and suggestions Magento2 getting 'Constr is not a constructor' error for custom theme && Error in layout.js, cart ...
0
votes
1answer
78 views

Desperately need Help with a task for a test in Magento 1.9.3

So guys, I'm doing this task for something very important to me but now I'm completely stuck. I need to fulfill this task: Create a module to output a nice list of the products that have a value ...
0
votes
1answer
27 views

Magento 2 - Module Instalation without CLI

Hey guys I have created a php file in the public_html folder and writed the following code: <?php system('php bin\magento module:enable Wisedat_PDFInvoiceFile'); system('php bin/magento setup:...
2
votes
1answer
23 views

Is it right to manually add an extension to the configuration file?

While learning to build Magento 2 extensions, I have come across several tutorials (blogs, books and videos) teaching me different things. When it comes to registering a new extension, some tutorials ...
0
votes
0answers
16 views

M2: Updating my own custom Module

I am working on a custom module that sends order and customer information to our distributor after a purchase has been completed. Since this module is a work in progress I would like to test ...
0
votes
0answers
29 views

Calendar View on Frontend side using custom module

Created one custom module in admin panel like below: Event Name:"XYz" Event URL:"www.sitename.com/eventurl" Event Date:"date of event" now I want to fetch this data into calendar view on front side....
0
votes
0answers
13 views

magento 2 - Overriding Abstract class in model is not working in custom module

I am trying to override the fontsize value for pdfslip file in my module. The pdfslip files can be found in admin under sales->invoices->actions. The function that I am interested in is ...
0
votes
0answers
11 views

2 Different keys are being genereated, Admin Grid action column-> edit link and page created after clicking save and continue butotton

I have created a Module, I created an admin grid and crud operations. All are working fine when I disabled secret key form store configuration. In show secret key in url my Edit action and Delete ...
1
vote
0answers
33 views

Problem with CLI installing module

Im trying to install sitemap module for Magento 2 and i got this message via cli, i make some changes in composer.json { "name": "mageplaza/module-sitemap", "minimum-stability":"dev" "...
1
vote
0answers
16 views

Magento2 use default password validation in custom module

Can anyone let me know how to use default magento server side validation for password field in my custom module password string?I have dealer registration form and i have password field there and i ...
0
votes
0answers
37 views

How to show Prices for OUT of stock products in Magento 2

Here is my question - How to show prices for all out of stock products? Here pic http://prntscr.com/krhurk I created the module from here https://magento.stackexchange.com/questions/160145/magento-2-...
0
votes
2answers
39 views

Blank Page with Front End Template in Controller

I have a controller that needs to display text, but I get a blank page. Here is what I have: Controller/Index/Index.php namespace Veratad\AgeVerification\Controller\Index; use Magento\...
0
votes
0answers
8 views

synchronize magento's customers with other platform that has it's end point with OAuth credentials available to connect by

I need to send newly registered customers as they had just successfully registered to an another e-commerce platform for synchronization purposes. The last has it's own end point api with OAuth ...
0
votes
0answers
29 views

My extension requires PHP extension

I developed my own extension but in order for it to work it requires the PHP JSON extension. How can I specify that requirement for module installation? Do I have to mention it in the composer.json? ...
3
votes
2answers
57 views

Magento 2: Dependency Injection: Optional class as parameter

We are developing a Magento 2 extension and we need to inject a class from a third party extension that the user may or may not have installed. We thought about injecting the class via the di.xml ...