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/...
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 ...
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
621
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 ...
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 ...
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\...
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 ...
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 ...
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
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.
-1
votes
1
answer
70
views
Custom Module for sending mail in Magento 2 didn;t send mail?
I have created a custom module in Magento 2 for sending the mail but it doesn't send ant mail in my mailbox.
There will be no error shown on page itself please any one help about that.
Any help is ...
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\...
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
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 ...
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 ...
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 ...
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
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 ...
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
1
answer
410
views
I want to override customer-account-index.xml from magento-customer
If we want to override customer-account-index.xml from magento-customer. Where I should override?
By making folder name as Magento_Customer in app\design\vendor\theme or app\code\vendor\module..
...
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">
...
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 ...
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?
...
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
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
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 ...
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\...
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
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.
1
vote
2
answers
995
views
Unable to override Magento\Catalog\Model\Product\Url, Type Error occurred when creating object
I'm trying to override the Magento\Catalog\Model\Product\Url class so that I can modify the getURL() function, but I'm getting the following error:
Error filtering template: Type Error occurred when ...
3
votes
1
answer
213
views
How can i add a custom javascript module to custom module?
Hi this code is working perfect without magento.
<script src="flipbook.js"></script>
<script src="jquery.js"></script>
<script>
$('#side').FlipBook({
pdf: '...
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.
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/...
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 ...
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
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
59
views
Magento2: How to get simple products Assosiate to configurable products [duplicate]
I want to get simple products Associate to configurable products in custom module using factory method.
(not using object manager)
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
6
answers
811
views
Getting Items in Cart
I've tried many methods over the web including here too but still I can't seem to be able to get items currently in cart, tried checkout sessions cart model, cart helper nothing works, It sometimes ...
2
votes
2
answers
208
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
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
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
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 ...
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/...
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/...
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
1
answer
84
views
Magento 2 - Creating admin page error 404
I have create an admin page but i get 404 error. What i'm wrong?
etc/adminhtml/routes.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
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/...
0
votes
1
answer
151
views
Magento 2 Custom Cli comand Area not set
I am geting this error comand "[Magento\Framework\Exception\LocalizedException]
Area code is not set
"
this is my code which I want to add a product. Tip if a comment " $product->save();" I am not ...