All Questions
1,419 questions
0
votes
0
answers
53
views
Why code migration tool is missing in magento 2?
Why code migration tool is missing here? -> https://github.com/magento/code-migration
Is there any code migration tool or process available?
0
votes
2
answers
363
views
what is the correct way to modify 3rd party module?
I have a 3rd party module installed in my magento.
I want to do some modification. I should modify the module directly or write another module to override it? Please advise
0
votes
2
answers
246
views
Everything in one module or split up in multiple?
Module
We're creating a webshop and are mostly creating every file we need in app/code/vendor/module right now. This means we have lots of different features like widgets and logic for multiple ...
0
votes
1
answer
77
views
Magento only for virtual products
I want to use Magento only for virtual products. I don't want any shipping methods, other product types, wishlist, compare, and all. I'm not sure what are all the core modules I have to disable to ...
0
votes
1
answer
28
views
Enable page module return 404
I have module settings when I specify disabled then the module page should return a 404 code
In the code, I get the value of the module but do not return 404 if the module is disabled
<?php
...
1
vote
0
answers
67
views
Magento 2.4 Category image lost after re-saving category backend
After Migrating Magento 2.4 Category image lost after re-saving category backend issue How to i solve this ?
0
votes
2
answers
1k
views
Magento 2 - Created new table and model - but model does not save!
I created a new table company_shipping_quote and new models by using https://mage2gen.com/.
But how can I create a new object and save it so that it appears in the database?
Models:
Company/Shipping/...
0
votes
1
answer
27
views
Where to find magento2-sample repository with payment module and many others as examples?
There is no sample-module-payment-gateway to start by developing a custom payment gateway. And, in fact, there is no more magento2-samples repository, which made the developers life much easier.
Where ...
1
vote
2
answers
2k
views
Magento 2 - How to allow certain html elements in system.xml config field?
I try to add this HTML (<span style='color:red'>*</span>)to the content of a field with type text.
But the html is getting stripped. How can I allow all secure html elements but disallow ...
1
vote
2
answers
3k
views
PHTML Uncaught TypeError: $(...).lazy is not a function
After installing this module I get an error sometimes:
Images won't load and the next error will show on console:
Uncaught TypeError: $(...).lazy is not a function
With a link to this section of code ...
1
vote
1
answer
67
views
Send different email template to customer
I have a custom module which is a custom form for the user to book an appointment, this form works fine with no issues, the form once submitted sends and email to both the admin and user/customer but ...
0
votes
2
answers
938
views
Custom module problem in Docker container
I am having an issue getting a custom module created with
https://cedcommerce.com/magento-2-module-creator/
to work properly inside of a Docker container.
I have tried containers from
https://github....
0
votes
1
answer
105
views
Remove Items from Mass Action Menu
I am using the following to remove an Item from the Mass Action menu in the orders screen, I am struggling with making it work for multiple items.
class MassAction extends \Magento\Ui\Component\...
0
votes
2
answers
377
views
Magento 2 : Module is disabled, shows in disabled list, but the functionality in admin remains
I have a module that I disabled that adds background patterns to individual product pages. We want to remove the functionality. So I ran the CLI command to disable the module. I listed the modules in ...
1
vote
2
answers
2k
views
how to get image from a module
in my case there is a picture inside my module and I want to get that image inside an HTML file (it's an html file for email header), but when I use Magento syntax it doesn't appear, I have got the ...
0
votes
3
answers
604
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
0
answers
124
views
Why Success Message is not shown on mail sent in Magento 2?
I have create a custom module which send mail.
The mail functionality works perfectly but success message not show up.
mail code is :
<?php
namespace Codextblog\Customemail\Controller\Index;
use ...
0
votes
2
answers
667
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
1
answer
1k
views
Area code is not set in setup upgrade command installing data
setup upgrade command throws error while Installing data Area code is not set.
The issue is coming from webkul core module. Anybody faced similar issue?
1
vote
0
answers
206
views
Preference is not working while a method called from child class
I created a preference for the method _applyOptionsPrice() in Magento/Catalog/Model/Product/Type/Price.php class.
The preference is working while the _applyOptionsPrice() was called from the same ...
2
votes
2
answers
338
views
JSON request to controller giving error invalid form key
I have a custom module with a button in the admin that i want to call a controller class on click. My phtml file contains this JavaScript :
<script type="text/javascript">
require([...
-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
0
answers
23
views
How to send mail in Magento 2 from custom Module? [duplicate]
I have created a custom module and in phtml file i have added html and by using ajax i will call the controller file.
But the issue is on using mail function it will show me an error on mail function ...
0
votes
1
answer
212
views
Magento 2 Module Development Workflow
What is the most Optimal Development Workflow using Magento 2.3.5 in 2020?
I've got a Task to create Magento 2 Module.
When i upload the written code to server the page doesn't update the code (CSS ...
0
votes
1
answer
51
views
Any free extension for displaying top rated products in magento 2?
I like to know is there any free extension or module for displaying top rated products in magento 2?
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
152
views
Is there any free EMI calculator extension in Magento 2? [closed]
I like to know is there any free EMI calculator extension in Magento 2?
Thanks
0
votes
2
answers
266
views
Magento 2: Redirect custom attribute option to cms page url in obsever
How to redirect if custom attribute option value != 5431 to cms page else redirect to module Controller (prescription/index).
Till now both conditions redirecting to module Controller
<?php
...
0
votes
0
answers
607
views
Magento 2: How to redirect on custom phtml file from a module within module
I want to redirect to Success.phtml file from this controller
This is my controller code:
<?php
namespace Softadroit\Prescription\Controller\Index;
use Magento\Framework\Controller\ResultFactory;
...
1
vote
1
answer
3k
views
Magento 2 Interceptor generation error: during running di:compile command
Interceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI ...
0
votes
2
answers
649
views
Magento 2.3.5p2 - Invalid security or form key. Please refresh the page after installing banner slider
I downloaded BannerSlider from GitHub and pasted the files into the app> code> Magestore. in the admin panel, it showing the manage options but when I click it says
Invalid security or form key....
0
votes
1
answer
266
views
How to Change "Place order" button link to my custom module page [closed]
I want to Change "Place order" button link and redirect to my custom module page.
But I didn't create any payment module.
I want my Place Order button will redirect to custom module page ...
0
votes
1
answer
907
views
Magento “Place Order” button redirection to custom Page before Order Succes Page
Basically I want to display custom module page after "Checkout Page" and Before "Order Success Page".
I created the module manually and want to add a page between checkout page and ...
0
votes
1
answer
810
views
Module not found after composer require
im using a fresh magento install from Ionos 1&1 (CentOS 8), and just after doing composer require, I test if the module installed correctly, but it says it cant be found. Here is the output:
[root@...
0
votes
1
answer
217
views
custom script (leaflet) in Contact page
I added Leaflet map to contact page like here:
Can't add custom script (leaflet) to Contact page
I used the solution with success. If you want to put it into an extension (not just in a theme):
...
1
vote
0
answers
288
views
Magento 2 Remove Add to Cart button and Add New Custom Button
I am creating a module. I have create one custom product attribute which value is YES/NO.
if product attribute value is Yes then Add to Cart Button hide And Show Custom Button
if product attribute ...
3
votes
2
answers
2k
views
upgrading from magento2.2.5 to 2.3.5 I'm facing this issue
I'm upgrading from magento2.2.5 to 2.3.5 I'm facing this issue
PHP Fatal error: Uncaught Error: Class 'Magento\Framework\Component\ComponentRegistrar' not found in app/code/<Vendor>/<...
1
vote
1
answer
1k
views
Magento 2 + How to add first name and country field in newsletter subscription form?
I have Magento 2.3.4 I want to show the "first name" and "country" field in the newsletter subscription form. Also, it would be for guests and customers as well. Both fields should ...
0
votes
1
answer
827
views
Magento 2 cannot update module with composer
I'm trying to update a module from Mageworx , currently I have the version 2.31.0, it's "mageworx/module-seosuiteultimate": "^2.30", there is not something like an specific module ...
1
vote
1
answer
590
views
Is it possible to use npm packages in Magento 2?
I see a post here from 2017 that gives an idea of how it's done, but I would want to use something like this that would allow people to sign their names on forms.
I know how to create html/js ...
0
votes
1
answer
644
views
How to show Content Blocks in HTML File in Magento 2
I have created a custom tab in Magento 2 in which the html part is shown by HTML file.
Means its extension is (.html).
I want to show some blocks in that html file how would i do that..
Infact i have ...
0
votes
1
answer
110
views
Magento 2: Transnational email custom variables
There is zero documentation on how to create a variable and attach it to $order or anything of the sort. In my case, I need to multiply a product variables and quantity variable and display them as ...
1
vote
1
answer
694
views
Call current product in custom phtml file in Magento 2
On the product page I created a custom module to override the form.phtml file.
I also added the option to include a new file called customFile.phtml when the user clicks on a button that is positioned ...
2
votes
1
answer
930
views
Create New Module get 404 error(How to debug code)
Hello,
I have create new custom module and run frontend get 404 Page error.
How to debug module what problem in code ?
Please Help me.
THANKS.
3
votes
1
answer
2k
views
Magento 2.3.5 Custom Module "Invalid security or form key. Please refresh the page"
I have created a custom module that for the most part works great, it's frontend routes work flawlessly and it hasn't had issues.
Recently I attempted to create a custom admin grid by following https:/...
1
vote
0
answers
143
views
JSON response does not return as an array from external API for AyMakan carrier (shipping method module), but still data posted & saved to AyMakan web
I want to get an array as JSON response from POST request to external API for AyMakan carrier (shipping method module), but still OK data posted & saved to AyMakan web server.
Therefore, The ...
2
votes
1
answer
1k
views
How to create pagination in Magento 2 using Module?
I am creating a module with custom tab in Magneto 2 front end in which i have listed some product, now i want to create pagination for the same how would i do that.
Controller File :
<?php
...
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?
1
vote
2
answers
1k
views
PWA Studio with custom extensions
First of all, sorry if the answer is obvious. I read the Devdocs, PWA-Studio Docs and some Tutorials, but somehow couldn't wrap my head around this.
Does using a PWA with Magento2, for example Magento'...
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 ...