Questions tagged [module]

Questions about developing custom modules

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

Magento 2 shipping method usps option show to top

How to change USPS And UPS layout any one please help me
1
vote
1answer
21 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
12 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
28 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
31 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
19 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
29 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
55 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
55 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
21 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
1answer
80 views
+50

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
16 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
20 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
39 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
42 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
25 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
28 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
30 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
44 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
44 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
37 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
56 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
26 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
101 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
60 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
48 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
21 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
36 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 ...
0
votes
1answer
23 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
24 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.. ...
0
votes
1answer
29 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:...
0
votes
0answers
11 views

correlation name 'search_index' more than once

I am using third party search engine module Sphinx Search Ultimate https://mirasvit.com/magento-2-extensions/sphinx-search-ultimate.html when i am click on any category then it give error You ...
5
votes
1answer
60 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
43 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
64 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
30 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
0
votes
0answers
27 views

Magento 1.9 - What is the best Practice to Display Top Selling products list?

I have to display best selling products list, just confused what is the best practice. Create Module & CMS Page Getting best selling values from database using products id display product ...
1
vote
1answer
33 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
49 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
11 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
36 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
18 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 ...
0
votes
0answers
8 views

how to set newsletter queue specific customer group in magneto 2

I am using Magento ver. 2.3.3 pls Help me how to create this, And provide any extension Compatibility: ver 2.3.3 Thanks in advance