All Questions
248 questions
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
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/...
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: $....
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
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/...
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
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 ...
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
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.
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....
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.
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 ...
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?
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!
4
votes
1
answer
644
views
How to create new shipping module with user input during checkout?
I bought a couple of books on Magento extension development and understood the mechanism on how to create a new shipping module. However in my current project I need to allow the customer to enter his/...
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 ...
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 ...
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 ...
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"&...
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 ...
1
vote
1
answer
747
views
```Custom Module - How to Link to/access its Template Path File
I have created and enabled a custom module in my magento store called 'Earnings' to allocate customers loyalty points. I declare the phtml file to use (template/earnings/earnings.phtml) in my earnings....
1
vote
3
answers
304
views
Can I dynamically change Layouts?
On the view.phtml is it possible to write php to change the layout depending on what item is displayed on that page?
Using code similar to this:
$this->loadLayout()
->...
2
votes
1
answer
381
views
Add Attribute to All Magento Customers, preferably an Object
Before continuing I would like to state that I have been looking for over a week through StackOverFlow, StackExchange, Google, and Alan Storm blogs.
Please don't link to another post I've most likely ...
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
3
answers
32
views
I have created a new custom module and it is working fine from back end, but in front data is not displaying
<?php
$model = Mage::getModel('custom_homebanner/request')->getCollection()
?>
<div class="owl-carousel" id="owl-demo-intro" >
<div class="item">
<h2 class="...
2
votes
3
answers
61
views
What are the only needed files for custom module?
I've seen a lot of tutorials on how to create a custom module in Magento. But all of them are mostly those helloworld examples.
I'm wondering what files do we actually have to create in order to ...
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
3
answers
314
views
Where do I specify the file path for phtml? (Clarification please)
Where do I put the phtml file that all of this works with?
Current Files and their folder structure:
app/code/local/Sean/Customform/controllers/IndexController.php
<?php
class ...
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, ...
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>
&...
1
vote
3
answers
2k
views
Magento - Add 'Customer Account Navigation' to custom module page
I have a custom module in my magento store. It is currently using the default 2 column layout with magento's left nav as the lefthand sidebar.
How can i go about having the customer account ...
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
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 ...
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 ...
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 = "<...
3
votes
2
answers
4k
views
How to add files for custom module under system configuration? [duplicate]
I have my own module in System->Configuration and want to add js and css files for it. Now it is so:
<layout version="0.1.0">
<default>
<reference name="head">
...
4
votes
2
answers
338
views
magento custom module keep throwing error even after deleting all files
i created a module in magento 1.9 CE to override list.php, and there was some issue, then i removed all the files for that module (the xml under module and all files under app/local/mycompany/), but ...
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 ...
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: {
...
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
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
1
answer
84
views
create custom module, get existing module configuration
I would like to create a custom module, I want to get used to the vendor/magento/module-ups/ module, and use the same config in my custom module, such as userID, password, access key.
how can I ...
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 ...
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 ...
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/...
0
votes
3
answers
617
views
Custom Page in Customer My Account Page - Custom Module
I Created a custom module. My requirement is to add new link after all links in Customer My Account. When click on that new link a new page should be shown.
My Code is
Step 1. Created new file in ...
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.