All Questions
116 questions
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/...
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!
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 ...
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.
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: $....
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 ...
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?
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 ...
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 ...
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
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 ...
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 ...
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/...
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/...
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:...
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="<?...
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 ...
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
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 ...
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/...
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\...
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 ...
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 ...
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.
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 ...
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....
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\...
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\...
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 ...
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
...
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">
...
2
votes
3
answers
4k
views
Create custom route in Custom module magento 2
How to create a custom route in Magento 2
http://127.0.0.1/magento8/trails/post/view/id/13
module:- trails
folder :-post
controller :- view
argument :-id/13
I want to http://127.0.0.1/magento8/...
3
votes
3
answers
8k
views
Magento 2: store selector for custom module in admin form
Stuck in a new issue regarding adding store selector for my custom module in admin form -
I need to add a store selector and to add the values of a store in a different table as it is working with ...
3
votes
1
answer
5k
views
Checkout page phone number validation
I am trying to give US format phone number validation in onepage checkout page
This is the layout checkout_index_index.xml that i created in my custom module. I know how to make i work by editing the ...
0
votes
2
answers
2k
views
Integrate js with button on uiComponent xml
I have the following custom form in my admin html and I have tried to insert a javascript function on my custom button click but the page being in a infinity loading loop.
view/adminhtml/...
2
votes
1
answer
2k
views
Magento 2 Create observer on customer create, with custom module
I want to create an observer in my custom module which called when new customer create and delete.
In my custom module i want to add custom data when customer created and delete custom data when ...
4
votes
1
answer
10k
views
Magento 2: Check condition on Click of "Proceed to Checkout"
May be I need to create Event Observer. I would like to check Product's Type Condition & Display Message Accordingly on Shopping Cart Page.
<event name="...
4
votes
1
answer
1k
views
Magento 2: When registration.php is called?
When we built/install new module it should have registration.php as per Magento Standard.
When we run php bin/magento setup:upgrade. Module will be installed.
How actually this command check for my ...
0
votes
1
answer
466
views
Create custom FAQ module in magento 2.3.2
I want to create custom FAQ module in magento 2.3.2. with no customer involvement.
in backend admin will add questions and ans. and in frontend, it should display on product details page next to ...
2
votes
0
answers
212
views
Update Store Summary By Checkout Address Country Change
So Basically I want to update my checkout cart summary when user select country from shipping address ,cart price and currency change according to the country he selected in shipping address.
1
vote
0
answers
868
views
Magento 2 : place order after a click on place order button in custom payment module
I'm a beginner on Magento. I try to create a custom payment module. All work fine but when I click on the "place order" button on the checkout page, the order is not add to the orders list ...
3
votes
2
answers
9k
views
Magento 2 - Element with same id already exists
I'm trying to set the Magento 2 pager on my custom module, my custom module get the product collection and makes some special filters on the collection. I'm able to filter my products, but when I try ...
0
votes
2
answers
750
views
How to get the template Id in controller? template Id is returning NULL for the custom template in the custom module
Index.php
<?php
namespace Eaglerocket\Customquote\Controller\Index;
use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\Context;
use Magento\Framework\...
2
votes
2
answers
207
views
want to add custom module in magento 2 admin panel
Created folders and added code for the custom module but nothing gonna work in my way please help, nothing shown up in the admin panel.
Here's my code and folders that I created:
public_html/testing2/...
1
vote
0
answers
597
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 ...
1
vote
1
answer
777
views
Magento 2 Custom extension admin grid returning blank
I have a custom module on my Magento 2 installation. The problem is when I access the admin grid, it's returning a blank page, just with the title of the page, like the following picture.
I already ...
2
votes
1
answer
3k
views
Magento 2 | Add Admin Configuration Button Action
I need to call a method from an admin configuration button. This is my simple custom module. The button appear on admin but notthing appen on click. No log is write. I cannot understand what I am ...
0
votes
1
answer
535
views
How to add a frontend search box functionality for a custom table grid magento2
I have created a custom module and get data in the list format, now I want to add search functionality on the list view, so how can I add that?
0
votes
1
answer
1k
views
How to create custom table programmatically(using code) without using installschema.php magento 2?
Actually I have created a custom grid in back-end for creating custom table there I am providing some fields like- table name, Assigned to Module Name, Number of Input text boxes. Now I want to ...
1
vote
2
answers
928
views
magento 2 - custom router throws Front controller reached 100 router match iterations error
I am trying to build a module that has a custom front-end router on magento 2.1.12. I am following magento doc & I am using the inchoo custom router example.
The problem is the route (MY-SITE/...