Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
1answer
15 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 ...
12
votes
4answers
6k views

How to show a custom attribute in the admin Shipping Address box?

I have added the drop-down custom field on the checkout page with custom values. It's working fine also save attribute values in the database but not display in the order shipping address. Any idea ...
4
votes
1answer
1k views

Magento2.1: How to override the template in custom module?

I want to create an extension that will give shop owners ability to edit their product image. So I understand I need this template Magento/ProductVideo/view/adminhtml/templates/helper/gallery.phtml I ...
1
vote
1answer
618 views

Admin Ui Form component JS error

What Im trying to do I started creating my own module for Magento 2. Module is simple - manage news articles in admin side and display them in frontend. No problems displaying data in frontend so far....
2
votes
1answer
35 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
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 ...
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
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 ...
2
votes
1answer
72 views

Learn zend, magento modules and magento API

I can already use magento and I have some php basics. Now I would like to deepen zend, magento modules and magento API. You could link me all the best resources to learn this?
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
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
2answers
57 views

Magento2 : Custom Magento extension to display info on success.phtml

I am trying to Create my first custom extension. Unfortunately i think that i miss something. In the magento 2 root directory i have the following files: /app/code/Clud7/Skroutz/registration.php ...
1
vote
2answers
3k views

how to get block data on phtml template in magento 2

what is missing in my code block data not shown in phtml template block page namespace xxxx\Trails\Block; use \Magento\Framework\View\Element\Template; use \Magento\Framework\View\Element\...
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
1answer
3k views

Magento 2.2 Fatal error: Uncaught ReflectionException: error

i created a new module, after runing this command php bin/magento module:enable myFirstModule i am getting this error. Fatal error: Uncaught ReflectionException: Class Magento\Framework\App\...
5
votes
4answers
3k views

Magento 2 - Backend custom module 404 error

I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu ...
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
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 ...
0
votes
2answers
1k views

Magento 2.1: Get Breadcrumb Array

How can I get the breadcrumb array from my template? I'm able to get the object: $this->getLayout()->getBlock('breadcrumbs'); and full breadcrumb path as final HTML $this->getLayout()-&...
0
votes
2answers
1k views

Get Wishlist product collection in Controller of Custom module Magento2

I am trying to get Wishlist product collection in Custom module controller for the new functionality. I searched in google and I got this: Inject this class in your constructor: protected $...
2
votes
2answers
1k views

How to assign customer group automatically based on address information

How to assign customer group automatically following by address information When customer register on our website, customer write the country where they live. If customer live in United State, we ...
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

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
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 ?
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
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
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 ...
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
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 ...
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 ...
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
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
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
328 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
50k 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
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
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.
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
344 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
3k 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 ...