All Questions

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

Magento 2: How to install custom module in app/code folder only using composer.json file?

I'm trying to install my custom module using composer.json file and after run composer update command my custom module installed successfully in magento2. Actually I want to install my custom module ...
0
votes
1answer
15 views

How create A-Z Product List Page in Magento 2?

I need to create a page listing products alphabetically from A to Z and show only the products starting to each letter.
0
votes
0answers
25 views

Magento2 custom layout unable to access custom module phtml file for products

For my Magento2 website I have created a custom module and layout for products. I have assigned that custom layout for that product from product edit design section. And from that layout, we are ...
0
votes
0answers
8 views

calling array from di.xml into fieldset for admin panel

In Magento 2.3 I am trying to set a field to the table from another module. I injected it via the di.xml. <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory"...
0
votes
0answers
17 views

Di.xml error Cannot instantiate interface

I am trying to use the di.xml to pull a table from different module to populate a dropdown in the admin panel. When I write the XML code below it is throwing this error: PHP Fatal error: Uncaught ...
0
votes
0answers
6 views

Mage 2.3: Create a new dropdown field in admin side custom module and its options should come from another custom module's table?

i have two modules and one gets a drop down on the admin side populated by the other values. The problem i am having is the collectionfactory is causing an error. Warning: Declaration of vendor\...
0
votes
2answers
26 views

How to show message box in Magento 2

How to show the message box in Magento 2 (on the home page). message box working the whole site except for the home page.
0
votes
0answers
14 views

Own module in bitbucket - different branch for 2.2.x and 2.3.x. How to install with composer?

i have own module in bitbucket (written at the time when was magento 2.2.x) which is overwriting magento-catalog ImageBuilder.php file. Now after testing this with 2.3.x i found, that it isnt working....
1
vote
1answer
32 views

Module layout file not being used

I have a simple module Alpine_AlpineCustom but it seems that my layout.xml file is not being applied properly and I just can't see why. I can see via Commercebug that the layout file ...
1
vote
1answer
26 views

Magento 2: how to add css ONLY to custom module

I created a custom module that overrides the addtocart.phtml file. In that module, I also created a css file. Here is what I did: Here is my layout - catalog_product_view.xml: <?xml version="1.0"...
0
votes
1answer
33 views

Magento 2 - 401 controller in magento admin

I currently have a module that adds a field to the admin cms page. I've written a controller and on input change I want to ajax this controller. This is the simple controller I added to start testing:...
0
votes
3answers
39 views

How to get product collection in controller in Magento2

I am creating a new module in magento2 and in controller file, I try to get product collection in controller index.php file so how can I get product collection in Magento 2. so give me suggestion to ...
0
votes
1answer
33 views

How to override or extend etc/view.xml file in custom module in Magento2?

I would like to override or extend some of gallery setting(view.xml) and catalog image size changes with my custom module. I have tried to override in app/code/<vendor>/<module>/etc/view....
0
votes
3answers
36 views

Can't get media image in the phtml file

I have a module that has a phtml file. I want to add an image from pub/media, but my attempts have been unsuccessful: pub / media / catalog / category / shutterstock_259609874 jpg I tried this, ...
0
votes
0answers
33 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 ...
0
votes
1answer
47 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
64 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
29 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
119 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
24 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
34 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
33 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
32 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
41 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
30 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 ...
0
votes
1answer
21 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
52 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
49 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
32 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
24 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
33 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
24 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
13 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
39 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
40 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
54 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
36 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
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
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 ?
0
votes
2answers
37 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
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
33 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
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
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
27 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
23 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 ...
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 ...
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 ...