Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
0answers
21 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
26 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
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
1answer
22 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
20 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
29 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
17 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
31 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
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
31 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
42 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
37 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
36 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
46 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
24 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
54 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
136 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
75 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
117 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
20 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
32 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
57 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
47 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
30 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)...
0
votes
1answer
39 views

When to use app/code vs app/design

I saw two topics about that but I'm still not sure. I'm discovering Magento 2, I'm a frontend developer and right now, I just want to make my company website's header and footer (html, css) (so a ...
0
votes
0answers
60 views

Magento2.2.6 How to create custom api module?

How to create custom api module for category listing and product filter sales order...etc below added custom api module integrate after check it postman result { "message": "Request does not ...
0
votes
1answer
20 views

New module always inactive in Module manager

I'm trying to install new module in Magento 2.2.5 , i already enabled the module , when i checked the module status using php bin/magento module:status it is active , but the problem is the admin menu ...
0
votes
1answer
48 views

Is it possible out of stock items should still be able to be purchased in Magento 2?

Any idea Out of stock items should still be able to be purchased and should not be deactivated or the buy button taken away.
1
vote
1answer
38 views

getProduct gives repeated product on cart page as additional info instead current product

I have developed a custom module to show additional product info on cart page. My module is combo of: https://webkul.com/blog/add-product-information-checkout-cart-in-magento2/ (https://github.com/...
1
vote
1answer
77 views

Magento 2 : Add custom notification in admin

I see some module has a custom notification, my question is how to add it in my module Update: vendor/module/etc/adminhtml/events.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento, ...
1
vote
0answers
34 views

Magento 2.3.3 - additional_options on Product being Returned as “null” when Using Stripe or Paypal

I'll expand a little more on the title. I have an in-house Magento 2 module that connects to our local gift card service to facilitate the use of in-store gift cards on Magento, in addition to in-...
0
votes
1answer
284 views

Magento 2.3 remove Yotpo module

What is the safest way to remove the entire Yotpo module in a Magento 2.3 store? This module is installed and enabled by default.
6
votes
1answer
85 views

How to override Interface of Other custom module?

I have tried with preference to override interface as below in di.xml file <preference for="Custom\Module\Api\Data\AccountInterface" type="Override\Module\Api\Data\AccountInterface" /> <...
0
votes
1answer
60 views

How to disable Magento_Banner module?

I know its a simple question, but I am getting an issue while disabling my Magento_Banner. I followed this doc https://devdocs.magento.com/guides/v2.3/config-guide/config/disable-module-output....
0
votes
0answers
38 views

Magento 2 Objects considered as Arrays

I'm working on a Magento module and I'm having trouble with objects. I declared the below method: use MyInterface; class Object implements MyInterface{ /** * @param MyInterface $object *...
0
votes
0answers
22 views

Json does not exist for my custom module

Vendor name: SimplifiedMagento Module name: MilkyMan Class SimplifiedMagento\\MilkyMan\\Serialize\\Serializer\\Json does not exist" This thing is coming when i am loading my home page.
0
votes
0answers
11 views

Creating an element through the admin panel and getting it in the template

How to create a separate part of the functionality in the admin panel that will look and work similarly to the products, but will be a separate functional. For example, in this part of the admin ...
0
votes
1answer
83 views

Missing setup_module table in Magento 2.3.2 database

i am missing a table setup_module in magent 2.3.2 database, the site is working, however i cannot install any extensions as the new tables are not being created due to missing setup_module. i could ...
0
votes
2answers
32 views

Add a block on top order page

I like to add a block on top order creation page, in /Vendor/Module/view/adminhtml/layout/sales_order_create_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
0answers
32 views

A frontend form/block/controller solution to update products

A custom module I am working on has the functionality where customers can create custom products themselves. The save part is working as expected but there also needs to be an option to update these ...

1
2
3 4 5
59