Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

Add fee to Payment method

I'm trying to add an extra fee to the order when the payment method is Cash on delivery and the shipping country is Greece. I have created the following files: app/code/HectorCustom/CodFee/...
Dimitra's user avatar
0 votes
1 answer
103 views

error filtering templat: Template file 'header.html' is not found in mail in magento 2.4.6

Send invoice email to custom mail address in magento 2 but create custom email template but face this issue in magento 2.4.6 app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template....
Ravindrasinh Zala's user avatar
12 votes
7 answers
49k views

Magento2 : How to get product id to my custom module

I am new to magento2 and currently I'm building a custom module and i want to get the product ID/SKU from the catalog. I'm trying to call using a function located in the Block folder. please advise!
ming's user avatar
  • 125
27 votes
5 answers
10k views

Why does Magento have 3 code pools?

Magento has three code pools: community core local Core: It contains all Magento default modules Community and local: We use these code pools for our custom module development. Now I have doubt ...
MeenakshiSundaram R's user avatar
3 votes
1 answer
1k views

Magento 2 online refund for custom payment method

I am developing a Magento 2 custom payment module for one of my clients, yet I am now totally blocked in finding a way to process an online refund for any of the created orders. I can't locate the ...
Wagdy's user avatar
  • 31
2 votes
0 answers
2k 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.
MagentoDev's user avatar
1 vote
1 answer
2k views

Magento2 : Save Button Not Working in Admin Form Custom Module

I am Working on A magento 2 custom Module i have a Form as well a Product Grid in my form so i created tabs using block but Whenever i click on save button gives me Javascript Error TypeError: $....
User 69's user avatar
  • 145
4 votes
2 answers
128 views

Injecting code into theme product page

The may well be too broad of a question, but I'm having extreme difficulty finding any answers. I want to know if its possible to add a phtml block/view to a product page when you have a theme ...
Daniel Bowen's user avatar
1 vote
1 answer
93 views

Composer Patch vs. Custom Module for Vendor Directory Modifications

Is there a general consensus on when you should create a custom module to override core vs when you should use a composer patch? At present, I need to add @ to a line of code and feel that a module is ...
A. Andersen's user avatar
2 votes
0 answers
227 views

Magento 2 Add a global js function

i'm trying to extend Magento_Ui/js/lib/core/class, in magento 2.4.3-p1, from a module but my extend js doesn't load in page here is my /view/frontend/web/require-config.js var config = { config: { ...
Weber's user avatar
  • 121
6 votes
2 answers
6k views

Magento 2.3 : Remove Constraint from db_schema.xml file

I just try to override db_schema.xml file of a core customer module into my custom module , but there is no success. I need to remove a constraint defined in customer db_schema.xml file, how may I do ...
Amit Dwivedi's user avatar
  • 1,550
5 votes
2 answers
11k views

Magento2 : Retrieve Multiselect Values in system.xml

I have created a system.xml file with a multiselect type field somewhere in my admin system config. I just want to know on how to retrieve the selected values in that field?
Eubie Aluad's user avatar
0 votes
2 answers
3k views

How to add phtml file at edit tab of Magento 2 custom module in admin?

I have created a custom module. When we click on the admin grid to edit, it opens edit page. In that I am showing tabs. When I click on that tab I need to show template file. If you see the below ...
Pawankumar's user avatar
0 votes
3 answers
3k 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 ...
inrsaurabh's user avatar
  • 1,676
0 votes
1 answer
163 views

How to send inquiry email to customer on admin reply in magento2.4.3

Hello all magento developers, I want to send inquiry email notification to customer when admin can add reply to customer inquiry in magento 2.4.3. can anyone have idea then please share here, Thank ...
Deep Shah's user avatar
  • 577
0 votes
2 answers
2k views

Observer for Admin while creating an order

Is it possible to have an observer while making an order in the admin panel? I'm trying to change the 'purchased from' depending on which customer group the customer is in. So if a customer is in ...
user2963379's user avatar
1 vote
2 answers
2k views

How create Custom Pdf in magento 2 Like invoice , Shipment [duplicate]

I want to create custom pdf with custom text or media can anyone suggestion me any best link or some help Thanks
HaFiz Umer's user avatar
  • 1,690
0 votes
1 answer
1k views

Unable to edit integration

We recently cleaned up our Magento 2.4.2 store so we had no generic users. Since we did this we noticed one of our integrations shows as inactive and we are unable to Activate or edit the integration, ...
P Walker's user avatar
1 vote
2 answers
1k views

Custom Rest API for custom table not wroking

My webapi.xml is below. <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"&...
Ramesh KR's user avatar
  • 886
0 votes
2 answers
1k views

low stock notification to admin without any extension in magento 1.9

I want to create the custom module for email sent to admin for notifying when the product is low qty in magento 1.9.x.
vivek tiwari's user avatar
1 vote
2 answers
1k views

Magento 1.9.4.3 Custom Column Filter not working

I have a custom column on my sales order grid showing the ordered items sku's. Done by following the guide here. It worked well in previous versions but no longer does work correctly in 1.9.4.3. When ...
Vaishal Patel's user avatar
0 votes
1 answer
927 views

How to override magento/module-checkout/view/frontend/web/template/minicart/item/default.html in custom module

I have custom additional options in quote and want to hide few options in the mini cart. How to skip a specific index in Knockout js array from the following code <dl class="product options ...
Soumyo Deepto's user avatar
1 vote
1 answer
2k views

Magento 2 - how to get custom model from custom module

In Magento 2, how can I get a custom model that is created in a custom module (not a Magento 2 native module)? I know I can use object manager for getting and creating, and I know how to do this for ...
Vladimir Despotovic's user avatar
4 votes
1 answer
2k views

Magento 2: Fatal error: Uncaught Error: Call to a member function getId()

After adding custom module on Server. It's giving below error Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/magento/vendor/magento/module-backend/Block/...
Jackson's user avatar
  • 9,969
0 votes
3 answers
2k views

Magento 2: RuntimeException it is being used by another process

When I do clear cache using command line & refresh page on Frontend 1st time it gives below exception. 1 exception(s): Exception #0 (RuntimeException): The path "D:/wamp/www/magento2/var/...
Jackson's user avatar
  • 9,969
2 votes
1 answer
2k views

Magento 2: How to define scope in di.xml & Router.php

I'm using Magento 2 CE Version 2.1.0. app\code\Custom\Module\etc\frontend\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Jackson's user avatar
  • 9,969
2 votes
1 answer
2k views

Magento 2: Submitted Form not calling Controller

To continue with the question below Magento 2: How to define Scope For Router.php app\code\Custom\Module\view\frontend\templates\posts\view.phtml <form class="form post reply" action="<?...
Jackson's user avatar
  • 9,969
4 votes
2 answers
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 ...
Niraj Patel's user avatar
0 votes
0 answers
48 views

how to make custom tier price in add product feature of magneto 2

I want to make a tier price programmatically for quantity-based shipping prices like the screenshot below, can anybody help me in developing this feature
Syeda's user avatar
  • 13
1 vote
1 answer
527 views

Is it possible to load data from the server using a HTTP POST request within a Magento Module js file?

Is it possible to load data from the server using an HTTP POST request within a Magento Module js file? File located in app/code/MyVendor/myCustomModule/view/frontend/web/js/mycustom.js Example ...
Colin Gell's user avatar
0 votes
2 answers
4k views

Adding css to a module in Magento 2

I am trying to add custom CSS without creating a theme and these are my steps. Step 1 I create a mycss.css file body{ background-color:green; } and this is the path app/code/vendor/module/view/...
Konstantin Patroev's user avatar
0 votes
2 answers
4k views

How to fetch data from a custom table in magento2 and show in home page

I have created a custom module with a custom table, now I need to fetch the data from the table and display in the home page. I achieved it by applying object manager I know it's not the correct ...
jithin 's user avatar
11 votes
3 answers
10k views

Magento 2 How to uninstall attributes added by custom module?

So far I know that when uninstalling a custom module, it is possible to remove custom tables or columns added by custom module by using uninstall.php which extends \Magento\Framework\Setup\...
Ricky.C's user avatar
  • 2,182
3 votes
1 answer
2k views

Best way to send email within custom module

I have created a custom form that will post to a controller, where it will then send an email via the following snippet in my post action: $to = "[email protected]"; $subject = "Vish"; $body = "<...
Vaishal Patel's user avatar
1 vote
2 answers
8k views

How to change the price in quote while adding product to cart?

I want to apply a custom price for the current order. I read that I should use sales_quote_add_item, But its looks like I am doing something wrong. I found some tutorials for magento1 but not for ...
Rahul Chaurasia's user avatar
0 votes
2 answers
668 views

I want to Display custom Price Under price in mini-cart

I want to display price like show in image.i want display 10% of price in mini cart under price please help me.
mahesh prajapati's user avatar
0 votes
0 answers
149 views

How to double the items in the cart by updating the quantity in the product cart page?

Double the value in the cart by updating the quantities.
kks's user avatar
  • 19
0 votes
2 answers
620 views

add custom tab in product page

Is it possible to add custom tab in product page remains in custom module(with out changing template of theme). if it's not possible help me in extending template of theme to adding custom tab in ...
Muhammad Zahoor's user avatar
0 votes
2 answers
130 views

Why is this code slow

We have a custom module to show images from sw3 on the product page, so the main image and any gallery images. The code works but going from a list page to the PDP is very slow and when I disable this ...
rodolphesalis's user avatar
5 votes
5 answers
9k views

Custom router is not working in Router.php Magento 2 [SOLVED]

I am trying to redirect the page/action by using a custom router as Router.php, but I am getting 100 router match iterations exception. app\code\Custom\Module\etc\frontend\di.xml <?xml version="1....
Jackson's user avatar
  • 9,969
3 votes
2 answers
4k views

Insert in custom table - magento 1.9

(Sorry if my english is bad, but is not my language) My Magento version is 1.9.3.8 I have a custom module that get data when a costumer make an order. I have no problems to get all the information ...
Exe's user avatar
  • 145
0 votes
2 answers
1k views

how to add product to cart in magento 2 using custom controller?

I have tried the following controller file to add product to cart in my custom extension. <?php namespace MS\Recommendeditems\Controller\Index; class Index extends \Magento\Framework\App\Action\...
Saurabh Magespider's user avatar
0 votes
2 answers
1k views

I want to display my custom module table data in front page (Magento 2)

<?php namespace WebQillaModule\FinalModule\Setup; use Magento\Framework\Setup\UpgradeSchemaInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\Setup\...
Fareeha Rana's user avatar
1 vote
2 answers
227 views

luma-theme .phtml file override in Custom Module

i want to override this file magento_dir/vendor/magento/module-theme/view/frontend/templates/html/collapsible.phtml And do not want to make custom theme like app\design\frontend\Magento_Theme\...
HaFiz Umer's user avatar
  • 1,690
2 votes
2 answers
4k views

Custom Translation of Backend in Magento 2 - path of the translate.csv?

I am familiar with translations in Magento 1 and found out also how translations in M2 work for the frontend. My questions is where to do my translation for my own custom module for the backend. Is ...
Self Diagnostics's user avatar
0 votes
1 answer
407 views

Notice: Undefined property: Eaglerocket\Customquote\Controller\Index\Index\Interceptor::$storeManager in Index.php on line 138

<?php /** * * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Eaglerocket\Customquote\Controller\Index; use Magento\Framework\App\Action\...
kks's user avatar
  • 19
9 votes
6 answers
12k views

404 Page not found error when I try to access Custom module in Magento 2

I have created 2 custom module inside vendor folder .This is my layout structure : -app -code -Company -Blog -HelloWorld -Controller -Hello -World.php ...
user2431224's user avatar
1 vote
1 answer
2k views

how insert data into database custom table using custom module in model

I have created custom module and model but could not insert the data into database using the model please help how to do it config.xml <?xml version="1.0"?> <config> <modules> &...
user2771109's user avatar
1 vote
2 answers
2k views

How to override newsletter.phtml (my account option) in Magento 2

I would like to edit the "General Subscription" text in my custom theme present in the My Account page under the Newsletter Subscription menu. I've already located the page which is: app/design/...
Gerardo Siano's user avatar
3 votes
1 answer
675 views

How to Create Custom Grid Filter Show All "NULL" Values in Specific Column

How can I make a filter for null values of my order ID <column name="order_id"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> ...
Mike121's user avatar
  • 123

1
2 3 4 5