Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
0answers
69 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
33 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
47 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
26 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
61 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
46 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
56 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
26 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
29 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
65 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
137 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
128 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
70 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
88 views

Magento2: Create Module without Controller [duplicate]

How to create a simple module like HelloWorld in Magento2 without controller
0
votes
1answer
15 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
64 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
58 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
43 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
19 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
57 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
115 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
134 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. ...
0
votes
0answers
17 views

Customer account module showing products filtered by price

I'm working on a custom module, it is in the customer account section, there's a form that has a minimum price and a maximum price that's no more than 5 times the minimum price (this is done by ...
1
vote
1answer
44 views

How to make paid modules available [closed]

How can I make my module available, without full access to the source code, how to control to make my module available and not be replicated, if an access key control is done, which will prevent the ...
0
votes
2answers
152 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 ...
1
vote
0answers
47 views

How to pass form id to insetListing components dataprovider in magento 2?

I want to add affected products listing inside catalog price rule form. I have followed related product example to do the same. Same as related products I have added insertListing component inside ...
0
votes
0answers
24 views

Magento 2 Internet Explorer Loader Stuck at Checkout

I am using Internet explorer browser, Checkout page is simply loading with loader image. It is working fine in all other browsers, I am getting below error in console. Please anyone can help me ...
0
votes
0answers
20 views

How to move element of main menu in Magento?

I want to move main menu after Slider in vertical Position Hi Everyone! I am creating a custom theme and want to change position of Main below the slider in Vertical Position How can I do that????
0
votes
1answer
49 views

Magento 2 - Autoload error Module 'Iazel_RegenProductUrl'

After update composer Please help me, I get this error. Module 'Iazel_RegenProductUrl' from '/var/www/vhosts/exm.com/httpdocs/app/code/Iazel/RegenProductUrl' has been already defined in '/var/www/...
0
votes
0answers
11 views

Magento2.3: How to show a module form for a specific category?

We have a module called AC Ton Calculator and the AC ton form is displaying on all the pages of site. We want to show that AC Ton form only on the AC category. How can I make that visible only at ...
0
votes
0answers
16 views

Magento 2 - Extending Catalog Module Class Not Working

I am working on a module that is meant to extend \Magento\Catalog\Model\Category in order to get the thumbnail URL. I based the code on getImageUrl in the base class. I have my main Model file ...
0
votes
1answer
23 views

Extended Module for Subscription Newsletter in Magento 2

I have extend a module for subscription newsletter in magento 2 for change in NewAction.php file. After enabling the Module it doesn't work As, i want to remove newsletter popup on subscription ...
0
votes
0answers
25 views

Magento2 - How to create a backend module to insert data into a table?

I want a module to insert data into a custom table, created a custom table also created a menu in the admin menu now how can I add details to the table from the admin -> menu -> module name. ...
2
votes
0answers
39 views

Sliding Cart extension for Magento 2 enhances mini cart to the next level with responsive design and conversion oriented features

There is already a full-fledged free extension available on Magento's marketplace and Github Magento: https://marketplace.magento.com/ambab-module-slidingcart.html Github: https://github.com/ambab-...
1
vote
0answers
19 views

Magento 2 - Search only by the product name in Mini Search in header

Search only by the product name The search engine is also almost completely unusable. You search for something like "wright wrench set" and it returns 4712 items. Instead of narrowing results, it's ...
0
votes
0answers
44 views

Dataprovider doesn't insert data to UI Component fields

I am new to Magento 2. I am scratching my head why is the data from the Dataprovider doesn't insert to my fields. DataProvider.php <?php namespace Simple\BrandAdmin\Model; use Simple\BrandAdmin\...
0
votes
0answers
24 views

Override AbstractModel class itself?

I am attempting to override the file lib/internal/Magento/Framework/Model/AbstractModel.php itself, since there is code within one of its public functions that I wish to modify. If I specify a ...
0
votes
0answers
16 views

Validate class not found from basename 'Float' - Magento 2

I am using a third party module for tier price. It was working fine but suddenly it gives error Validate class not found from basename 'Float' when I'm trying to save tier price. Any idea why and ...
0
votes
0answers
19 views

M2 - Create function in module

I have a piece of code that I need to use multiple times, but I don't want to get a very long page with a lot of the same code. I have this piece of code: <div class="av-product-specs-list-...
0
votes
1answer
18 views

Replace customers account creation fields [M2.3.3]

I would replace two fields in customer account creation : First Name should become Account Number Name Prefix should become Company Name And these two fields must appear in orders export... If you ...
0
votes
0answers
52 views

Magento 2: How to add multiselect dropdown field on my Home Page

I'm new in Magento 2 and I have created a custom module. Now I want to add multi-select dropdown field in my module's front template on my home page. How to add a multi-select dropdown, please?
0
votes
1answer
106 views

How to show all the products on search result page in Magento 2?

I'm getting strange results from the search engine. For instance on "sk4072" if you search "4072" nothing comes up. Thankyou
1
vote
1answer
70 views

Upload image or files in custom module from front-end with ajax magento 2

I want to upload image from frontend custom module using ajax method. Filepath : app/code/Chirag/Userform/view/frontend/templates/insert.phtml <?php $blockObj= $block->getLayout()->...
0
votes
0answers
14 views

Magento 2 override database connection

I'd like to be able to override the database connection that M2 is using depending on what user is logged in (think multi tenant system). Can anybody point me that the database connection class / ...
1
vote
2answers
57 views

How to translate i18n value from tag in html?

I want to Translate a custom button name using i18n. I tried like this app/code/My_vendor/My_module/i18n/ar_SA.csv "I am the gift Receiver","أنا المتلقي هدية" The affect should take place in ...
0
votes
2answers
60 views

How can sync contacts and subscribers in Magento 2 with SendGrid? Any suggestions please

I have a website on Magento 2 and I need sync all my contacts from Magento 2 to SendGrid. Track all new subscriptions, unsubscriptions from SendGrid and Magento. Also I need see and manage all ...
0
votes
0answers
38 views

Magento 2 shipping method price ascending or descending

Any one can help me Ok so I have shipping method sorting by price in checkout page. Magento 2 defaults this to price descending all ups and usps. But I would prefer it to be by price ascending. I ...
1
vote
0answers
25 views

Custom module send email with custom language

I made a custom module that send an email to my customers. app/code/Local/CustomEmail/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\...
0
votes
1answer
125 views

How to create a Block, Layout and Template for backend module in magento 2

I have doubt as how to create Backend Module using block,layout and templates. After creating the block,I have assigned the block in app_appdashboard_index.xml file and I called the block page ...

1 2
3
4 5
60