Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Shipping method based on City

I'm trying to make my flat rate shipping method appear only for peoples in a specific city. Magento version 2.2.11 My model is: <?php namespace RaphaelCordeiro\CepLimit\Model\Carrier; use Magento\...
0
votes
2answers
34 views

I want to display my custom module table data in front page (Magento 2)

<?php namespace WebQillaModule\FinalModule\Setup; use Magento\Framework\Setup\UpgradeSchemaInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\Setup\...
0
votes
1answer
8 views

Multistore magento error: Call to a member function getDefaultCurrencyCode()

I have a running version of magento 2.3, php 7.3 and nginx. The default store and another store work fine and are displayed correctly. Whenever i try to use a different store code other than the 2 ...
0
votes
0answers
5 views

how to filter the magento 2 in admin invoices list based on customer email?

how to filter the magento 2 in admin invoices list based on customer email ? i try to core modules but its not working?
1
vote
2answers
38 views

Magento 2.3 Frontend module page blank

I'm trying to create a simple frontend module on Magento 2.3.2, It seems to work, but I see a blank content on frontend. I have this folder structure -app -code -MyVendor -...
0
votes
1answer
23 views

Can I disable the Magento Inventory modules?

I'm having issues with the inventory quantity vs salable quantity, I won't use multi-source inventory in this project, can I disable all the Magento_Inventory modules and not have issues? '...
0
votes
1answer
17 views

Magento 2 - Override core template in own module

I want to override the template Magento_Customer/templates/form/register.phtml in my own module. At the moment the override is in my theme: app/design/frontend/company/base/Magento_Customer/...
0
votes
1answer
23 views

How to find out which Magento module is customize/extended in Magento 2?

How to find out which Magento module is customize/extended in Magento 2? Is there any CLI? or any other way to get this done? Please reply as soon as possible.
0
votes
0answers
17 views

Magento 2: Install Doofinder

I'm trying to install Doofinder on Magento 2 but the Readiness Check launch a lot of errors. does anyone know the requirements for each case to install doofinder? Thanks!!
0
votes
1answer
17 views

Cron tab and schedule: is it needed for layout compile/custom modules?

My current store's staging instance does not have crontab set up as far as I can tell. The cron_schedule table is empty. Is this needed for custom modules/themes/etc to work properly? What is the ...
0
votes
0answers
12 views

Trouble with custom admin grid

I'm following the tutorial (https://www.mage-world.com/blog/grid-and-form-in-magento-2-admin-panel-part-1.html) to add a custom grid in my custom module, my problem is that the custom admin page doesn'...
0
votes
1answer
21 views

insert data to custome database

3 i created custom module how can I insert data from my form to database app/code/kamar/slider/etc/module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
2answers
27 views

custom image in shopping cart

I would like to customize the shopping cart by adding pictures right between the headline "Shopping Cart" and below the Item table but haven't figured out yet where the xml files are to overwrite this ...
0
votes
2answers
36 views

Error with own module to show frontend views

My aim is to generate a few frontend views with an phtml for each view. I developed a module for that. File: Routes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
0answers
29 views

Magento 2: Best practice to add custom attribute to products

I want to add a serial number to particular products, I know custom module which does it exist, but my goal here is to understand the process and do it by myself. So what's the best practice? ...
0
votes
3answers
95 views

Is it safe to disable Magento Message Queues ( Magento_Amqp )?

Upon checking my server logs I see that in the system.log I have a lot of records with this error: main.INFO: Consumer "async.operations.all" skipped as required connection "amqp" is not configured. ...
0
votes
1answer
62 views

Invalid configuration file:app/etc/env.php in magento 2

Disable module after run this command chown www-data -R /var/www/html My env.php file empty. php bin/magento c:f Invalid configuration file: '/var/www/html/upgrademag/app/etc/env.php' Fatal error: ...
0
votes
1answer
22 views

Magento add to cart via GET

I have the following problem: I need to add products into the cart with for example: http://host.com/checkout/cart/add?product=2&qty=5 I have tried to create a module to "catch" the GET request ...
0
votes
3answers
42 views

Adding Jquery library via module

I need to Add Jquery Library to header using my custom Module. so that I Create requirejs-config.js file under Vendorname_ModuleName\view\frontend and Its As Below var config = { map: { '*...
0
votes
1answer
23 views

InstallSchema Doesn't Run

I've got a module that has this InstallSchema: <?php namespace Vendor\Module\Setup; class InstallSchema implements \Magento\Framework\Setup\InstallSchemaInterface { public ...
0
votes
0answers
27 views

Type Error occurred when creating object: Magento 2 EE 2.3.4

Environment: Magneto EE 2.3.4 PHP 7.2.23-1 OS Ubuntu 16.04 Error: Type Error occurred when creating object: Custom\Module\Model\ResourceModel\Module\Grid\Collection\Interceptor Situation: I ...
0
votes
1answer
26 views

Magento 2 overwrite html file in custom module

I would like to overwrite the following file row_incl_tax.html in my custom module: vendor/magento/module-weee/view/frontend/web/template/checkout/summary/item/price/row_incl_tax.html app/code/...
0
votes
0answers
24 views

Magento 2: Display product with custom option and swatch in custom.phtml file

I want to load some products by Ids and list out on a custom controller with custom option and swatch. And also, I want to add all those products to the cart by clicking on add to cart button with ...
0
votes
2answers
48 views

How to create a email template with cart products - Magento 2.3

How to create an email template with cart products, I want to create my own module with cart products and want to send the mail to the admin. How can I do this please educate with brief note. Thanks ...
0
votes
0answers
14 views

Magento module & multisite

I have created Module for Magento 2.x. Right now I would like to extend it for multisite. I haven't find any tutorials/instructions how can I do it?
1
vote
1answer
28 views

Magento 2 : Not able to get the frequently bought product collection in frontend same as related products

Right now I'm building a custom module and I am not able to get the frequently bought product collection in frontend from backend. if anyone has any idea about it then please advise!
0
votes
1answer
49 views

Magento 2 items orders and invoice not show in customer account orders list

Hello Guys Please help me Magento ver. 2.3.0 Date 2/20/20 place orders display only, not display 2019 orders in live site I checked it is working right on local server I run all these commands ...
0
votes
0answers
64 views

Magento 2 : How to add free item automatically to the cart

In Magento 2 after I created a free gift promo it will not add the free item to the cart automatically. Users need to do that manually. Is there any solution for this?
0
votes
1answer
29 views

Magento2 - Exception occurs when I update customer data using customer repository

Error: Invalid value of UK provided for the countryId field. Error File: vendor\\magento\\module-customer\\Model\\ResourceModel\\AddressRepository.php Error line: 133 Code is: $customer = $this-&...
0
votes
2answers
42 views

How to Override the block in magento2.3

I want override the block file. I had given the details of the original file path and my overridden file. My overridden file app\code\Vendor\Module\etc\di.xml <?xml version="1.0"?> <config ...
0
votes
1answer
24 views

Block Not Seen by Controller Magento 2

I have a module that primarily works with the admin-side of Magento 2. At the minute, I'm just trying to parse a CSV file and log the contents, here's a skimmed version of my Block class: app/code/...
0
votes
0answers
53 views

Custom module Controller/Action redirect to external domain does not work with admin secret key

I need to be able to redirect the user to an external domain for a Magento 2 module I'm building. I've tried to do this in two ways. In My class I have: use Magento\Backend\App\Action; use Magento\...
0
votes
1answer
35 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
2answers
41 views

Magento 2 : Module to send Delivery Notification

Anyone know a Module for Magento 2.1 Which will able to send Delivery Notifications of items? ( For UPS or FedEx ) Ex: Item in Transisit Notification. Item Arrived to Destination Country ...
0
votes
0answers
20 views

Magento 2 form xml visibility fieldset conditional

I have added a new fieldset tab on the Cart Price Rule. But I would like to hide on a conditional, I've tried: ...<fieldset name="custom_rule" sortOrder="100"> <settings> ...
0
votes
0answers
22 views

Magento 2 - Want to show tax applied on order with code and rate in custom invoice pdf

I have generated custom invoice pdf, now I want to show TAX field after subtotal, How can I get this anyone has an idea please let me know?
1
vote
1answer
44 views

Magento2 - Add custom javascript to 'My Account' page

I've been trying to find questions, articles, or documentation covering this, but haven't been able to find what I need or haven't understood it yet. I have a custom module that a colleague wrote (...
1
vote
3answers
42 views

Magento 2 - How to override module from vendor?

I try to change some "view" files from a module called Amasty_MegaMenu. I installed the module via composer. It is located in vendor\amasty\mega-menu. So I created app/code/Amasty/MegaMenu with ...
2
votes
2answers
87 views

Magento 2.3 - What is mean composer.json on Module Development? [duplicate]

I have created custom module without composer.json and my module working good, Module Structure (Attached the screen shot here) : What are all the disadvantages of creating custom module without ...
0
votes
0answers
58 views

Magento 2 : How to Override Magento\Catalog\Pricing\Render\FinalPriceBox in two different modules?

I'm overriding a Magento\Catalog\Pricing\Render\FinalPriceBox in my two different modules. Vendor\Module1\etc\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
2answers
69 views

Magento2: Create Module without Controller [duplicate]

How to create a simple module like HelloWorld in Magento2 without controller
0
votes
1answer
13 views

Magento 2 new fieldset/field in cart price rule show unwanted Currently Active Tab

This is in my custom module xml sales_rule_form.xml: <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
2
votes
0answers
24 views

How to add a text on Homepage using module (code) [closed]

Need help writing a code for adding text on Homepage. I'm running Magento 2 on localhost
1
vote
3answers
49 views

Magento2- How to update an extension to a new version?

I have my extension in app/code. The extension name is Mirasvit_Seo. I want to update it to the latest version. I simply ran composer update but it didn't got upgraded. I tried doing this link but ...
0
votes
1answer
54 views

How can I get pre-hashed password after customer registration

Please note: I understand this would be open to a potential security risk. However, due to the nature of my site, I want to exhaust as many solutions as possible to help stop fraud from taking place. ...
2
votes
0answers
42 views

Magento 2 very big problem in orders items

A few days ago I was having this problem,( main.CRITICAL: Unable to unserialize value. {"exception":"[object] (InvalidArgumentException(code: 0): ) but I searched for this error, I found it, I ...
0
votes
0answers
17 views

Magento 2 - Display product list filtered by price range

The module I'm working on has a form with three inputs, Low Range, High Range and Sort By Price. For some reason it's not returning the product collection at all. I'm getting the following error: ...
0
votes
0answers
31 views

How to install Magento Amazon Sales Channel module using composer?

I would like to install the Magento Amazon Sales Channel module using composer in Magento 2.3.3. Here is the Amazon Sales Channel product page. The installation instructions I found are here. First ...
0
votes
1answer
69 views

Magento 2.3.3 - Add file upload field to Contact Page

what is the best way to add a File Upload field in the Contact Page? I want to give users option to upload a file. I try this module but is not work on my 2.3.3 Magento version. Thank you
0
votes
1answer
49 views

Magento 2 - The product that was requested doesn't exist

Magento2.3.0 I have the following error in var/log/exception.log any idea how to come this error main.CRITICAL: The product that was requested doesn't exist. Verify the product and try again. ...

1
2 3 4 5
59