Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
1answer
13 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
34 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
42 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/...
1
vote
2answers
25 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 ...
1
vote
1answer
18 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
22 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
21 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 ...
0
votes
0answers
11 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 ...
0
votes
0answers
25 views

How to convert magento 2 custom module as magento 1.9 version? Is it possible [closed]

I want to convert the Magento 2 custom module as Magento 1.9 version? Is it possible
2
votes
1answer
36 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
36 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 ...
1
vote
1answer
34 views

Magento 2: 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
28 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
28 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
29 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
32 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
33 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
29 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
47 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
22 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
15 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
20 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
22 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
22 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
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 ...
3
votes
0answers
33 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
34 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
1answer
33 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
240 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
30 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
23 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
17 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
39 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 ...
4
votes
1answer
39 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 ...
3
votes
1answer
29 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
24 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
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
1answer
50 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 ...
3
votes
1answer
43 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
21 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\...
0
votes
0answers
49 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, ...
4
votes
2answers
61 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/...
1
vote
2answers
46 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
33 views

How can I programmatically add a cart?

I need a solution to create a cart programmatically in my template.phtml or in my Block.php file. I want a new cart with products in it. I get the products dynamically from the REST-API.
1
vote
1answer
35 views

How to edit module/extensions code directly from Magento 2 admin dashboard as we can edit plugins in wordpress?

Is it possible to edit Extensions in Magento 2 admin dashboard as we can edit plugins in Wordpress? Like in Wordpress: Is there any option in Magento 2 admin dashboard ?
0
votes
1answer
31 views

Magento 2.3.0 : Admin panel mass status action change after not updated in custom module grid record

I am using Magento 2.3.0 and I create custom module for video gallery in admin side module grid mass action change status after not updated in grid but message comes on successfully updated. If any ...
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
17 views

How do I obtain the value of an order (cart) without taxes, shipping order and voucher discounts?

I am trying to develop a module that calculates the value of a parameter and shows it in a page. (I am 95% sure that I need the value that is shown by default in cart subtotal at the cart checkout) ...
0
votes
0answers
32 views

Magento 2 System Config Plugin

I have created a custom tab in system config and added 1 field Module Enable Yes/No and 1 Dynamic fields which is depends on Module Enable. When Module Enable is set Yes I created various dynamic ...