Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
2answers
83 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
93 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
34 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
325 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
1k 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 ...
1
vote
1answer
111 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
30 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 ...
0
votes
0answers
22 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
1answer
105 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
127 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
55 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
35 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
49 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
113 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
1answer
26 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
53 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
46 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
144 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
54 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
1k 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
321 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
237 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
26 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
1answer
445 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
37 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
1answer
117 views

How to call displayProductStockStatus() method from a custom block?

in catalog_product_view.xml of my theme I have a block like this `<block class="Magento\Catalog\Block\Product\View" name="extra.product.info" template="product/view/extra-product-info.phtml" after=...
0
votes
1answer
73 views

I want to override customer-account-index.xml from magento-customer

If we want to override customer-account-index.xml from magento-customer. Where I should override? By making folder name as Magento_Customer in app\design\vendor\theme or app\code\vendor\module.. ...
1
vote
1answer
288 views

Magento 2 Injecting Object in $data array

I am trying to inject my custom object in constructor like this in di.xml <type name="Magento\CatalogSearch\Block\Advanced\Result"> <arguments> <argument name="data" xsi:...
5
votes
1answer
67 views

How Magento registers new module?

While doing setup:upgrade What Magento actually does to register the unregistered module !!, Can anyone define the flow? Actually I want to send a notification to admin whenever a new module is ...
0
votes
1answer
117 views

Magento 2 error module image optimizer

I installed the Image Optimizer for Magento 2 I'm having trouble getting a scan on pub/media, follow the errors attached. The error message is "Something went wrong while scan image. Please review ...
1
vote
2answers
206 views

Custom Rest API for custom table not wroking

My webapi.xml is below. <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"&...
0
votes
1answer
67 views

Intercom with Magento 2.3.3 ver problem

we get the below error when we install Intercom on Magento 2.3.3 ver problem https://i.ibb.co/qxSbXSX/2019-12-06-124841.jpg
1
vote
1answer
53 views

Custom Shipping Module not work on frontend in Magento v1.9

I had created a custom shipping module. But when I enable it and check on the frontend for my custom shipping rate, then I add billing detail and click on the Continue button, it redirects me to the ...
1
vote
1answer
70 views

Magento 2 Custom Email Template

I have created New Custom Header Template from admin. This email template i want to use in my custom email template in custom module. Currently i am using this below code to add header. {{template ...
1
vote
0answers
12 views

How to list all JS outputed via module?

I want to have all the JS outputted as it's in the HTML, so if the bundle, minify and CDN are enabled or not I would like to get the URL listed via my module. How could I do that?
2
votes
0answers
51 views

integrate PWA App into Magento2 website

I want to integrate PWA App into my Magento2 website , i have already tried with Tigren extension and made changes as per the document. After installation i am getting errors in checkout process. I ...
1
vote
0answers
22 views

Magento2 Related Products Block Based On Customer Interest

I have a magento2 website and what i am thinking is i want to develop a related products block which needs to be displayed based on user interest. Lets assume a user open my website firstly and then ...
1
vote
1answer
377 views

How to Disable Inventory Management In Magento 2.x

It may be necessary to disable Inventory Management modules to: Speed up the upgrade process for merchants migrating from 2.0.x, 2.1.x, or 2.2.x to 2.3.x. Use custom or third party inventory and ...
1
vote
1answer
268 views

Magento 2 Mageplaza SMTP module error

I have a problem with this module: https://marketplace.magento.com/mageplaza-module-smtp.html Everytime I click on Test Now (send a test email), it throws me the following error I have read tons of ...
1
vote
0answers
72 views

mageplaza and catalog search conflict in magento2 [closed]

I am using mageplaza plugin in magento 2.3.2. But in catalog search while searching with 2 character length it gives me error like you have processing error. I checked setting in admin panel there is ...
1
vote
2answers
280 views

Magento 2.3: Forward to another URL without redirecting

I'm writing a module that will accept any Magento URL with /discount/COUPON_CODE appended to the end, set the code in a cookie for later use, and then forward to the URL minus the discount part. So, ...
1
vote
1answer
130 views

Filter for Magento Admin Grid All “NULL” Values

Is there a way to create a filter for NULL values in Magento Custom Admin Grid?
0
votes
1answer
328 views

Magento 2.3: system.xml and config.xml: Default values not showing up in the admin

I'm developing a module for Magento 2.3 and can't get default config values to show up in the admin. To the best of my knowledge, I've followed all the documentation I can find. It's kind of driving ...
1
vote
1answer
231 views

How to Create Custom Grid Filter Show All “NULL” Values in Specific Column

How can I make a filter for null values of my order ID <column name="order_id"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> ...
1
vote
1answer
421 views

Redirect to login with add cart button for guest user

I'm trying to redirect guest users to the login page when they click on the Add to Cart button and they are not registered. But I can't do it. I am using an Observer with the following event <...
1
vote
1answer
123 views

Magento 2 payment method not showing in checkout

I have used this module in many stores https://marketplace.magento.com/ontap-module-mastercard.html. But for some reason in a new instance of Magento that I installed, it's not showing the payment ...
0
votes
4answers
392 views

Magento 2 How to disable module using xml file?

I am facing issue to create module. I created one module and I given apply to system admin to enable disable. So, Right now I am doing module hide/show using below code. $objectManager = \Magento\...
0
votes
0answers
22 views

Magento 2: custom module not always sending email

I created a custom module to send emails and on it was working good. Today I moved the website on another domain and I noticed that the module sometimes works and sometimes it does not. I would say ...
2
votes
1answer
473 views

How to refresh the module configuration after change the etc/config.xml?

I've created a module with default configurations into the etc/config.xml file, but I changed the default configuration and I'm not able to see them reflected into my module installed. How could I ...
1
vote
1answer
127 views

Custom Module Admin Grid View “Search by Keyword” Not Working

How to make my search bar work in my custom grid module? I have added the search field by inserting this code <filterSearch name="fulltext"/> inside my <listingToolbar name="listing_top"> ...

1
4 5
6
7 8
61