Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
1answer
12 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 ...
0
votes
0answers
11 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
2answers
23 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
1answer
14 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 ...
0
votes
0answers
8 views

Mini Cart Icon dis-appear in mobile menu

I want help with the menu-cart icon that should be dis-appear in the mobile view in Magento 2.3.5-p1. so can anyone have an idea please share with me. Thanks In Advance.
0
votes
2answers
29 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 ...
0
votes
0answers
11 views

assign only one and leaf category per product in magento 2.3.3

I want that the only category checkbox selectable should be the leaf category that is the category checkbox without children in the current branch and only one category checkbox per product can be ...
1
vote
2answers
33 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
1answer
19 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
2answers
34 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
1answer
21 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
0answers
27 views

custom module menu not showing for admin & admin users in magento 2

My custom module's admin menu not showing for admin & custom admin users. Here is the code snippet: acl.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
0answers
13 views

Upload SVG files as product image

we will have to enable the upload of an .svg image within the products. We have tried all possible solutions but none of them seem to be working because Magento disabled them for security. Can anybody ...
0
votes
2answers
21 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 ...
0
votes
1answer
13 views

logo email doesn't show on mailbox of the customer

in my case i am using magento 2.2.x , so i want to override the file "vendor/magento/module-email/view/frontend/email/header.html" in order to add a logo in the email to show the company's ...
0
votes
2answers
34 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
3answers
16 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
0answers
15 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
2answers
36 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
0answers
15 views

Command “show” failed: Package authorizenet/magento-module-authorizenet not found in /var/www/html/composer.json

Im new in magento, i have this error when I enter in System -> Web Setup Wizard -> Extension Manager My error text: Command "show" failed: Package authorizenet/magento-module-...
2
votes
0answers
30 views

Magento 1.9 - Anyone used Voronoy Extra Fees Module?

Attribute value applied successfully with grand total but attribute not visible on back-end order total https://snipboard.io/JGuBUL.jpg I am using this module for extra fees https://github.com/...
1
vote
1answer
31 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?
0
votes
2answers
53 views

Magento 2.3 - How to handle Preference Error - Type Error occurred when creating object

I am using Magento 2.3.4 small bug in it (LINK) then Update the following code https://github.com/magento/magento2/blob/db69693bd929bd8665015ff6d9b6a3845584aa0b/lib/internal/Magento/Framework/Search/...
1
vote
0answers
19 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
2answers
43 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
1answer
34 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
0answers
16 views

Send Mail controller goes to 302 in Magento 2?

I have created a custom controller and the controller which is used to send mail goes to 302 in Magento 2. So i think that's why i didn't receive any mail in my mailbox. If it is correct please tell ...
0
votes
0answers
17 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
1answer
28 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
0answers
18 views

Magento 2 - Display Configurable Product Option Value with Quantity on Product View Page

I'm working on a module where I'm attempting to display the configurable product's option values and quantity on the product page in a clean table with two options per table row. However, I'm not sure ...
0
votes
1answer
25 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
1answer
41 views

Magento 2 Custom Admin Sub Menu Redirects to White Blank Page!

I created a Module and I am getting this 404 page error after I hit the submenu link. Here is the code. I can not figure out what is wrong. acl.xml <?xml version="1.0"?> <!-- /** *...
0
votes
2answers
46 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
1answer
21 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
0answers
16 views

Magento 2.3 - Use product image for swatch (Change color of configurable product)

I would want to use the main product image for swatch to change the different colors of configurable products. Example: How can I do this without using any extension? Thank you so much!
0
votes
2answers
54 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
0answers
59 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; ...
0
votes
1answer
54 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
2answers
25 views

How to load PHTML file last after page is fully loaded

I have a script in my phtml file but I want to only load this ones the page is fully loaded. I am doing a check if my custom module is enabled show the < script > Adding script like this : You ...
0
votes
2answers
15 views

Magento 2: Remove account element only for certain store views?

After much fighting with my layouts to add a link to my customer account page in a way that matches the design I finally succeeded in making the link show up and link to an actual page that also ...
0
votes
2answers
65 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
1answer
28 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
1answer
37 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
1answer
48 views

Exception Error on Success Page Module

I am currently attempting to modify my version of Magento ver. 2.3.4 by creating a new module to inject a custom attribute into the checkout success page. The code in the files is as follows ...
0
votes
1answer
453 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
0answers
9 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): ...
0
votes
0answers
17 views

extension not working

I have bought bundle option image extension https://bsscommerce.com/magento-2-bundle-option-image-extension.html to use in my https://adarccomputer.com/newpc.html .though i have tried many times the ...
1
vote
0answers
56 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 ...
0
votes
0answers
19 views

Save all shipping quotes into a order information

I want to save all shipping quotes with their shipping methods names and prices and put it with order information in magento 2. It will be visible only to admins, inside order informations. I'm using ...
0
votes
0answers
10 views

Automatically show in stock at top of listing, out of stock and no image products at bottom

In Magento 2.3.3. I want to show automatically in stock products at the top of product listing while out of stock products and products with no image should be at the bottom of product listing. I have ...

1
2 3 4 5
61