Questions tagged [module]

Questions about developing custom modules

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

Magento 2 : How to Override same block method 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
42 views

Magento2: Create Module without Controller [duplicate]

How to create a simple module like HelloWorld in Magento2 without controller
0
votes
1answer
12 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
40 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
51 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
39 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
16 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
16 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 ...
1
vote
1answer
55 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
35 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
32 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 ...
1
vote
2answers
66 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
19 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
19 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
18 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
21 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
20 views

Magento2 - Dropdown in mini Search

After that overwrite Magento\CatalogSearch\Model\Layer\Search\Plugin\CollectionFilter file I take help Below URL: Add custom dropdown in mini Search magento 2 This code not working $query = $this-...
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
14 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
0answers
20 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
18 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
24 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
15 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
25 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
23 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
14 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
24 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
37 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
31 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
33 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
39 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
22 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
19 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
42 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 ...
0
votes
5answers
74 views

Custom Module Controller: Invalid security or form key. Please refresh the page

I have a custom module with an admin controller, but when I try to access from the administration page I get the following error: My controller is in Controller/Adminhtml/Login/Index.php class Index ...
0
votes
1answer
62 views

How to create a frontend custom page module with view template files in magento 2.3

I have doubt as how to create Frontend Module with View template files. I have created Module using this reference Magento Documentation "https://devdocs.magento.com/videos/fundamentals/create-a-new-...
0
votes
0answers
23 views

Block is not getting called in custom module - Magento 2.3

I created a custom module to list all categories in a custom page. But the associated block is not getting called in the layout file. I can see the controller function is getting executed and page ...
-1
votes
1answer
115 views

Magento 2 - Extend core framework

I need to add a new attribute for layout containers. e.g.: customAttribute="data-block='minicart'" <container name="minicart-row" htmlTag="div" htmlClass="minicart-wrapper" customAttribute="data-...
0
votes
0answers
18 views

Magneto 2 :Delete DB fields while admin disable a module from backend

Created a module ,in which created some custom product attributes for products.Thus added few new rows in eav_entity table using InstallData.php file. Everything working fine. But even I disabled the ...
0
votes
0answers
6 views

How to show magnifier size based on different product image sizes?

I need to show the magnification sizes as fixed for all different sizes of images in product pages. How can I change this? <var name="magnifier"> <var name="fullscreenzoom">2&...
0
votes
1answer
26 views

Unable to get payment method from Observer class

I'm unable to get the payment method from the sales_order_save_after observer class in a custom module, i can get the orderId and Name but i have been unable to work out how to get the payment method (...
1
vote
1answer
45 views

Something went wrong with processing the default view magneto 2

when I try to access "products" in the backend, I"m getting an error. Debug this [2020-01-15 05:04:13] main.CRITICAL: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1 {"...
3
votes
1answer
44 views

How to override .phtml file in module?

I am trying to change sign in or create an account message which is called by block named product.review.form in catalog_product_view.xml. /vendor/magento/module-review/view/frontend/layout/...
0
votes
1answer
28 views

Magneto 2 limiter value sorting

When i change the limit value, i really want to send the same value to all pages vendor/magento/module-catalog/Block/Product/ProductList/Toolbar.php public function getLimit() { $...
0
votes
1answer
29 views

How to write new line with drawText() below code magneto 2?

Anyone plz help me $Commenthistory = "Order Comment History"; $page->drawText($Commenthistory, 20, $this->y, 'UTF-8'); //$page->drawText(__('Order Comment History'.PHP_EOL)...

1 2 3 4 5 58