The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
1
vote
1answer
29 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
2answers
1k views

Helper Data not found - Can't access admin panel

Admin Panel only shows the following message: Fatal error: Class 'Mage_Sean_Adminmerchant_Helper_Data' not found in /home/makeyou/public_html/app/Mage.php on line 546 I deleted all files within: ...
1
vote
3answers
3k views

Magento 2: getting Full Action name inside custom Model class?

Would you please let me know best way to get the Full Action name inside custom Model class in Magento 2?
0
votes
1answer
31 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 ?
4
votes
2answers
3k views

Magento 2 custom module not loading and it throws error

I am using windows 7. app\etc\config.php <?php return array ( 'modules' => array ( 'Test_Module1' => 1, ), ); ?> When I add My Test_Module1 in app\etc\config.php admin all ...
0
votes
1answer
49 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
2answers
38 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 ...
9
votes
6answers
257 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
1answer
35 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
35 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 ...
3
votes
1answer
43 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 ...
2
votes
1answer
1k views

How to get and set custom field of customer_group table Magento 2

I create new extention and add some columns in customer_group table. but i can't get/set custom field. namespace [NameSpace]\[Extension]\Block\Adminhtml\Group\Edit; use Magento\Customer\Controller\...
0
votes
0answers
24 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
17 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 ...
0
votes
1answer
22 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
2answers
1k views

show .phtml file in admin custom module

Hi i see this question a few times here but i can't solve my error, i got well until the blank page in my admin custom module, I follow this tutorial. So can somebody tell me the right direction i got ...
0
votes
1answer
1k views

Code migration install 1.9 to installData 2.0

I have started learning 1.9 two months ago but i have decided to start learning magento 2 instead because i heard that it is totally different world. I have followed an Inchoo tutorial how to create ...
1
vote
1answer
338 views

Magento 2: How to use IMG upload field UIComponent?

I'm trying to add a simple image upload field to my form in Magento 2, but things are not looking that simple. I'm using UIComponent for the layout, my component is as follows: <fieldset name="...
0
votes
3answers
102 views

isntalling marketplace extension on magento 2.2

i want to install marketplace extension on magento 2.2 but don't know how. i've opend my ssh but what to do now? or do i have to upload this extension's files directly on cPanel? If yes, then please ...
33
votes
15answers
52k views

Magento 2: Safe and easiest way to disable Compare products & Wishlist Module

I am building Magento 2.0 only to sell 2 of my products online. The compare products and wishlist module is irrelevant for me. How I safely and easily remove those modules? I dont want to hack the ...
1
vote
1answer
24 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
1answer
30 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.
0
votes
0answers
15 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 ...
0
votes
3answers
383 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->...
4
votes
1answer
4k views

Magento 2: How to add a browse button to upload file in admin section?

Working on Magento 2 custom module implementation and want to add a browse button to upload a file in admin form. I have gone through the Magento2 : Admin module Image upload code to display form ...
1
vote
4answers
4k views

Magento 2: How to set visibility and status to product using collection?

I'm creating a cron to pass through all the products and set them visible and active. This is my execute of the cron who runs well: public function execute(){ /** * @var $item \Magento\...
0
votes
0answers
35 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 ...
3
votes
0answers
36 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
2answers
805 views

Uncaught TypeError: $el.ColorPicker is not a function Magento 2

Magento ver. 2.0.18 I created a custom module in backend there is color picker options. for this i used this link color picker answer of @EmizenTech it works perfectly but some time it gives and if ...
2
votes
1answer
34 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 ...
1
vote
1answer
1k views

Magento2 module : Custom option type fields not displaying

I am working on a module to add a product custom option input type (Derivated from file type). In the backend under catalog / product / custom options, my new option is present in the "input type" ...
0
votes
3answers
701 views

How do I open a csv file in the root of my module directory?

I've been writing a rather complicated module as of late. One of the steps I need to do is pre-populate one of the models with all of the data it needs to work right. This data is slowly replaced ...
2
votes
2answers
34 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
78 views

Magento 2.3 - custom import module with magmi integration

I'm trying to write a magento module for importing products from a csv file. I would like to use Magmi to achieve the import. I tried the following code but it doesn't work: namespace My\Module\...
3
votes
1answer
269 views

How to make and install my module via composer with two private repositories in magento 2

Problem Description: I have created two private repositories in github under same user name. Each repository contains different modules. But while trying to install the package via composer throws ...
0
votes
0answers
24 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
33 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
9 views

Magento2.3.0 How to display video gallery on custom page inside

I am using Magneto2.3.0 In fronted side want to collection like Video Album, if i click album than get video collection which is belongs to album. From admin side I manage for all functionality ...
0
votes
1answer
35 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 ...
2
votes
1answer
51 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\...
3
votes
1answer
41 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 ...
1
vote
2answers
51 views

How to migrate M1 module in M2 - Module Migration

We will go to Magento 2.3 and need to integrate an old Module which handles the Order Exportation for our Fulfillment Service. I'm really new in Magento 2 and try to learn it step-by-step. I have ...
0
votes
0answers
7 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?
3
votes
6answers
109 views

Magento 2.3: How can I get the customer ID with PHP?

I am trying to get the items of the cart as well as the customer ID in my Module. But the problem is that I don't know how to get the customer ID properly. In the Moment I have this Code and it works:...
2
votes
1answer
57 views

Magento 2 add custom button next to cart button

I want to add a button next to the cart showed in the screenshot. Any ideas how to achieve this? (EDIT) Only need to know what to write in the layout.xml This is the current XML code <?xml ...
0
votes
0answers
23 views

Why the edit hyperlink in action column is not displaying often in custom admin grid? [duplicate]

That edit option in action column is working fine but it is not showing often. Please help me. Action column code: <actionsColumn name="actions" class="AdminGrid\Grid\Ui\Component\Listing\Grid\...
2
votes
1answer
48 views

Magento 2 I want to set a custom price of a product programmatically but only for this one session

I have a little problem because I first add some products into the cart -> this is working. But I also need to change the price of this products I add. The problem about that is, that I only want to ...
0
votes
0answers
60 views

Rename Module Name Magento 2

Have you tried Renaming the Vendor/Module name with different cases For instance: Vendor_Module to VENDOR_Module? After renaming the module name I tried to setup:upgrade, but got the below issue, ...
0
votes
2answers
594 views

Invalid block type while accessing the custom block (Magento 2)

Error in magento 2.0.11 while accessing custom block Invalid block type: Tomrain\Appcustomizer\Block\Customizepage #0 /var/www/html/appcustomizer-tshirt-M2/vendor/magento/framework/View/Layout/...
3
votes
2answers
63 views

Controller URL does not work

I have the problem that i always get the error 404 not found, if I want to get the url of my controller. This is my filestructure: And this is the URL I am trying to get loaded: http://localhost/...