All Questions
36 questions with no upvoted or accepted answers
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/...
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 ...
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 ...
3
votes
0
answers
105
views
Production mode doesnt load any content for custom module
I have created a custom module in Magento 2. In developer mode it is working well, however same module does not show any content in the production mode of Magento its show only white screen. There is ...
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
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.
2
votes
1
answer
370
views
Blank Magento Page without error
After enabling the module created, browsing back to the page gives me blank page instead. Viewing the source of the page gives me basic html tags.
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.
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="<?...
1
vote
0
answers
210
views
Magento 2 custom routing frontend not working (100 router match iterations)
I have used this url to change it but i am keeping getting the same erros
https://magento.stackexchange.com/a/209478/96152
i have a custom routes.xml
<?xml version="1.0"?>
<config ...
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 ...
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
0
answers
297
views
Shipping method restrictions by category programmatically magento 2
I want to add Shipping method restrictions by specific category in custom shipping method
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: $....
1
vote
1
answer
448
views
I want to run an Event Observer once after my custom module is installed
Is there a way to run a function (to call an api) once after a module is installed? It could be during admin page load or in the install script. But i wish to run only once. Thanks
1
vote
0
answers
73
views
How to make custom php in home page
I need to make a website, let's call it shop.com, that manages other providers on subdomain (p1.shop.com, p2.shop.com...).
So, I successfully make all the websites works, but now I need to make shop....
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 ...
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/...
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
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\...
0
votes
3
answers
606
views
How to disable custom plugin in admin
I have created a custom module to disable free shipping based on some conditions. I have to used
Custom/ShippingRule/Plugin/Magento/Shipping/Model/Shipping.php to do the functionality.
It is working ...
0
votes
1
answer
138
views
Module to Add/Manage Custom Fields?
Is there a Magento2 module similar to Wordpress' Advanced Custom Fields that allows admins to add and manage custom fields to CMS and other pages through the GUI?
0
votes
0
answers
57
views
Store external API expire time in Custom Module
I use ajax to get the access token from the external API. How can I store the expired time across the site and the ajax only call again when the session expired?
test.js
/helloworld/index/display is ...
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
0
answers
145
views
Block is not getting called in custom module - Magento 2.3
I created a custom module to list all categories in a custom page. But the associated block is not getting called in the layout file. I can see the controller function is getting executed and page ...
0
votes
0
answers
51
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
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 ...
0
votes
1
answer
439
views
Use 3rd party jQuery files in custom module Magento 2
Trying to use slick slider in my custom module
All css is loaded by /var/www/html/magento2/app/code/CompanyName/ReviewRating/view/frontend/layout/reviewrating_index_index.xml
I am In Developer Mode.
...
0
votes
0
answers
275
views
What is the entire folder structure to create magento 2 admin grid?
What is the entire folder structure to create a custom admin grid?
example -
vendor_name : Ayakil
module_name : Rewardpoints
I am expecting like this.
Why i am asking this question is , i am ...
0
votes
1
answer
242
views
Custom Taxation
I am trying to figure out how to customize tax base on shipping information. If the customer is residing in US and the product will be shipped on US, the tax is 2%. However, if the customer is from US ...
0
votes
0
answers
596
views
Magento 2 how to create custom tabs in custom module
We want to remove default product tab and want to use custom
Query tabbing like this
0
votes
1
answer
320
views
How i can integrate 3rd party tax engine in magento2?
I have a 3rd party tax engine and i want to create a module in Magento2 that collect the data that the tax engine need(ie shipping address, amount, etc). and send it to the tax engine. This is the ...
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/...
0
votes
1
answer
211
views
Override do not apply in a custom module
I try to override the mini cart but by changes are not getting applied. I have the following in my di.xml inside custom module
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/...