Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
2answers
33 views

Magento 1 module backend not found and error has not been whitelisted

Module backend not found also appear error in the log: DEBUG (7): Security problem: megamenu/list has not been whitelisted. The screenshot below with description in detail : http://prntscr.com/...
0
votes
0answers
56 views

Magento 2 custom config form in admin panel is empty

I followed this tutorial https://www.magestore.com/magento-2-tutorial/how-to-create-an-admin-form-look-like-a-configuration-page-magento-2-configuration-p3/#3createa_layout_file_with_url_path. It ...
-1
votes
1answer
236 views

How to used Python 3.7 Code inside Custom Module for Magetno 2?

I need to create a custom Module for Magento-2 which has a Python code. so how to I integrate python + Magento into Custom Module. Means Magento 2 , Custom Module and Python Code are at same ...
4
votes
1answer
80 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 ...
2
votes
0answers
33 views

How to add a price fieldset magento 2

How to add the price indicator to the custom field in Magento? I am developing a form to add additional attributes to the product. now I am searching for this functionality for a while, can you help ...
3
votes
3answers
217 views

Magneto 2 How to call Helper function in observer file

I am new to Magento development and I am using a custom MySQL query in some places like in observer/plugin etc. These codes are repeating for all these files. so I want to make a new reusable ...
0
votes
1answer
39 views

Magento 2 Custom Admin module 404 Not Found

I have been struggling with this error all day, I have tried all the solutions on Internet, but it keeps showing 404 Error when I click the link on my custom menu. Here is my code /app/code/Vendor/...
2
votes
1answer
36 views

How to remove a product from cart using module?

How to remove/disable an item from the cart using a module? I want to remove an item from the cart from my module with some conditions.
1
vote
2answers
37 views

Override compare list template in module

How to override template file Magento/module-catalog/view/frontend/template/product/compare/list.phtml using module?
0
votes
2answers
69 views

How to override “add to cart” button in wishlist using magento custom module?

How to override template file - vendor/magento/module-wishlist/view/frontend/templates/item/column/cart.phtml using custom module?
3
votes
3answers
46 views

How to retrieve custom fileld values from magento 2

I have added some custom fields to the admin->configurations->sales->payment section using the following method. created config.xml inside etc folder of my module dir. <config xmlns:xsi="http://...
1
vote
2answers
34 views

Magento 2 - site looks destroyed after installing a new module

I installed a very simple hello world module which works. php bin/magento module:enable black_test php bin/magento setup:upgrade However, now my site looks destroyed. The module is working fine, it ...
1
vote
0answers
26 views

Mage GetResourceModel in specific language in magento 1.9

I am working on a module to pull inventory data into a feed. For this we use Mage::getResourceModel. Pulling the data works alright, I just have the problem that the language changes depending on the ...
1
vote
1answer
75 views

How to override wishlist price in magento 2?

I am developing a custom module for price calculation and i was able to change the price in final_price.phtml to change prices and changed grid.phtml to override category page listing items. it looks ...
2
votes
1answer
227 views

Magento 2: Override grid.phtml file from custom module

I am new to magento development can you help me how to override grid.phtml which resides in vendor\magento\module-catalog-widget\view\frontend\templates\product\widget\content\grid.phtml I need to ...
0
votes
3answers
69 views

list.phtml not overriding/ not reflecting the changes : Magento 2

all I am trying to override list.phtml to customize product listing on every product listing pages. I tried this way. I have app/code/<Vendor>_<Module>/view/frontend/layout/...
2
votes
2answers
34 views

Magento 2: Disable add to cart button for certain products in category page

I am doing a custom module and now I want to hide the 'add to cart' button for certain products. I have followed the https://magenticians.com/magento-2-disable-add-to-cart-button/ documentation and i ...
2
votes
1answer
30 views

How to show saved values of custom fields when product edit

I have added some custom fields to my product edit page and it is working now. But I want to show the saved values in the edit. Now i am able to show the values in text fields. but i don't know how to ...
0
votes
0answers
75 views

Magento 2 : Create a module for hiding custom options of a product when checked using checkbox

To create a module for magento that adds a checkbox for the values rows in the “Customizable Options” section on the product page in magento backend. This checkbox will hide the customizable option ...
0
votes
1answer
39 views

CRUD Module structure explanation

Could someone possibly explain the structure and what files are for in a CRUD module? I have created by module by following a guide online, and its working great and printing out my database fields on ...
1
vote
0answers
17 views

Magento 2 : After creating "Conditions Model and Fieldset in custom module, How to validate that condition on frontend to showing specific block?

I have just followed the below tutorial to create condition fieldset and model in the custom module. https://www.mageworx.com/blog/2016/09/magento-2-module-with-conditions-model-fieldset/ Also, it's ...
2
votes
1answer
66 views

How to get the product ID in Magento 2 plugin

Hi all I am using Magento 2 and I want to get the product Id on all pages. Now i amable to get the product id in product details pae (Product single page). but i am not getting those in product ...
0
votes
2answers
64 views

Installed module not visible in admin - Magento 2.3.2

I've installed a module and while the CLI says that the module is installed, the schema in the db has been created and the module has a record in setup_module it doesn't show up in the admin. When ...
2
votes
1answer
230 views

How to Create a excel file in custom module?

I want to create an excel format file for download in Magento 2 <item name="buttons" xsi:type="array"> <item name="add" xsi:type="array"> <item name="name" xsi:type=...
0
votes
0answers
7 views

Where do I run initialization code for a custom module?

I'm looking to initialize an error reporting service (Sentry) for my custom module when the application launches. I've tried using events and observers, but most of them get called so regularly that ...
1
vote
1answer
75 views

Magento 2 load dynamic values to select field in XML

i am new in Magento development. I am trying to create a new module for adding dynamic fields for product edit page. Now I was able to add the fields in admin's product edit page. now I want to show ...
1
vote
1answer
32 views

Custom Module's template override not loading initially unless the page is refreshed

I have the below template override in a custom module, the file path is: app/code/Vendor/Module/view/adminhtml/layout/sales_order_create_index.xml <?xml version="1.0"?> <page xmlns:xsi="...
0
votes
1answer
49 views

Magento 2 : How To Get Modules Directory Path In Controller

Does Anyone Know how can we get module file system path in magento 2 inside controller ?
0
votes
2answers
51 views

Magento 2: Use a custom controller as website root?

I'm building a little module on magento2 and I can currently access it at mysite.com/test/mymodule. I want to be able to access it at mysite.com. How can I do that? I've tried doing a URL rewrite ...
2
votes
1answer
44 views

Magento 2 Module License: Can I buy once and use modules on multiple instances?

I'm currently developing with magento2 and want to setup 4 instances of magento2: Two local dev environments (two developers) Dedicated Test Server Production Server When I buy a module from ...
1
vote
0answers
91 views

Add message on Checkout Page in Magento 2

Already add my custom module to Disable Payment method on the Checkout Page based on Product Attribute in Magento 2 Now I want to show the message to customer on Checkout Page if COD is Inactive by ...
0
votes
1answer
54 views

InstallSchema not running even though module is not installed

I searched all over and don't see anyone with the same issue. Below are steps I tried to solve this with no success I deleted the module from setup_module table. I don't see any errors in var/log/...
0
votes
0answers
33 views

What are some simple custom modules to play with Magento 2?

I'm learning Magento 2 modules. I would like to create custom modules from beginner level to advanced. Can you please tell me what are simple concepts that can be created as a module in Magento 2? ...
0
votes
0answers
55 views

Magento 2: Add Comment box after each items on cart page

I am developing a new website in Magento 2 and there is a requirement of adding comment box of each product on cart page so please suggest what is the best way to do it by programmatically. I search ...
1
vote
1answer
25 views

Magento 1.9 Custom Module Error

I am a noob of Magento 1.9. I have these custom module files: app/code/local/mypackage/custommodule/block/mymodulename.php app/code/local/mypackage/custommodule/etc/config.xml app/code/local/...
0
votes
1answer
77 views

Magento 2: Create a custom module for banner slider

I want to create a custom module for banner slider in Magento 2. Could anyone please guide me? Looking forward to hearing from you.
1
vote
1answer
39 views

Magento 2 - Missing js files in a certain store view

In Magento 2, is there a way to disable a module for a single store view only in front-end, like Magento 1? Because that's what happened to me. I have this module named Vendor_XXX that loads several ...
0
votes
0answers
16 views

Custom Fields Best Practise

I'm very new to Magento development, but i've migrated over from wordpress development. One of the things I love most about wordpress development is how easy it is to make almost everything on the ...
3
votes
0answers
40 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 ...
0
votes
0answers
36 views

Magento 2: Get store information in frontend files

I'm completely new (like 3 days in) to Magento Development so I apologise in advance if i'm asking a silly question! I've really struggled to find a good magento course online so now i'm at the stage ...
2
votes
1answer
40 views

Magento 2: Multilingual Module

I am creating my own module and as I am creating some text, that will be shown in the website. The store manager, which installs my module, needs to have the possibility to translate my text into ...
9
votes
6answers
297 views

Magento 2: Changing Price of Product in Controller doesn't work at the moment!

I tried to change the Price of my Products like this: Controller.php: [EDIT] <?php namespace MassiveArt\ShoppingCart\Controller\Index; use Magento\Catalog\Model\ProductFactory; use ...
2
votes
2answers
42 views

Magento 2: Required files to create a module

I'm aware that the only required files for creating a module are registration.php and module.xml. But I'm seeing some of the popular blogs mentioning composer.json file in addition to the above. Any ...
0
votes
0answers
31 views

How to code Many to Many Relationship in Magento 2

I am working on a custom module named "Amendments". I successfully write CRUD code of both "Categories" and "Amendments" models. I just can't figure out "How to establish a link between both entities"....
0
votes
1answer
88 views

Magento 2.X: Module URL rewrite

Magento ver. 2.3.2 I am writing a Magento 2 module. I'm trying to re-write a CMS page URL: https://www.test.com/url-test/cat1/cat2/cat3/ https://www.test.com/url-test?path=/cat1/cat2/cat3/ I have ...
3
votes
1answer
61 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
1answer
107 views

Magento 2: After adding products to cart programmatically, cart is not refreshing until reloading page

Hello Magento 2 Friends. I have an ajax call to an controller, which adds some new products to the cart programmatically. This works fine, but the problem is that the cart and the mini cart are only ...
2
votes
1answer
196 views

Magento 2: Add multiple products to cart programmatically does not work if cart is empty!

I have the same problem as mentioned in this Question: Magento 2: Add multiple products to cart programmatically But it was never answered. This is my Controller.php: <?php namespace MassiveArt\...
0
votes
1answer
46 views

Error when running di compile after upgrade from 2.2.9 to 2.3.2 (TEMANDO)

I've tried disabling the temando module but i'm still getting the error. Repositories code generation... 1/7 [====>-----------------------] 14% < 1 sec 74.0 MiB Fatal error: Declaration of ...
0
votes
0answers
14 views

Magento 2 - add stored procedure via installer

There are lots of articles about how to add stored procedures / triggers in Magneto 1, but what is the best practice to do this in Magento 2?