Questions tagged [module]

Questions about developing custom modules

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

How to determine if MSI is enabled or not

I am building a Magento 2 module that makes changes to stock information. Bearing in mind stock management APIs are different in Magento depending on if MSI is being used or not, what is the best ...
0
votes
0answers
10 views

Unable to edit integration

We recently cleaned up our Magento 2.4.2 store so we had no generic users. Since we did this we noticed one of our integrations shows as inactive and we are unable to Activate or edit the integration, ...
0
votes
1answer
10 views

Magento 2: Custom Order Date and Shipping Amount in Programmatically created Order

Below is code to create order Programatically , it is working fine , i want to set custom order date and custom shipping Amount , i can not find way to do same public function createMageOrder($...
1
vote
2answers
24 views

How to specify which page js module is included on

I am following this tutorial https://devdocs.magento.com/videos/fundamentals/add-a-javascript-module/ At the end of the tutorial it says Now we’ll go to any product view page, and we should see the “...
0
votes
1answer
28 views

Custom Tab in My Account Page Not Showing Up

I am currently trying to add a tab called "Product in Range" under the My Account section. The tab is showing up on the My Account page but once I click, I get a page not found error. Can ...
0
votes
0answers
15 views

Php information on custom module for checkout page

I have created a working custom module that shows a message on checkout page following this solution https://stackoverflow.com/questions/56974955/need-to-write-a-custom-message-on-checkout-page-in-...
2
votes
1answer
45 views

Magento 2.4: Create Order Programatically with custom Order ID

Please Note - I am able to create order programatically , just i want new created order to have specific order ID instead of auto generated order id Below is code to create order Programatically , ...
0
votes
0answers
12 views

How to get data controller to html file using variable in magento 2?

How to my post data is get controller file to html file. I have create email send extension in contact us form. But I have no idea how to store get data in controller to html file. $data = $this->...
0
votes
3answers
38 views

Magento 2.4.2 Modules won't work

This is registration.php <?php use Magento\Framework\Component\ComponentRegistrar; ComponentRegistrar::register(ComponentRegistrar::MODULE,'Mymodule_Newmodule1', __DIR__); routes.xml file is ...
0
votes
1answer
28 views

Can't access Magento 2.2.1 admin,

Can't access Magento 2.2.1 admin, Stores > Configuration, anyone have this error before? How I can fix this. Thank you 1 exception(s): Exception #0 (Exception): Notice: Undefined offset: 2 in /home/...
0
votes
0answers
20 views

custom module not working after installation of new extension

i have created a custom module form and then for email functionality i installed Mageplaza extension but then my form module stopped working and when i disable Mageplaza extension module then only ...
0
votes
1answer
34 views

Cannot override list.phtml in module

I've created a module that modifies list.phtml to eventually place some data under the price in product category listing. I'm using Magento 2.4.1. Module can be downloaded here: https://www.dropbox....
0
votes
0answers
8 views

Magento 2: Marketplace upload issue. Custom Admin menu missing

My extension is working properly on my local but when I submit my extension to the Marketplace they decline it. The Manual QA fails. And the report says that according to the document the custom admin ...
0
votes
2answers
18 views

How to change layout and template from module?

When creating a theme I can override the Magento header by placing files under app/design/frontend/company/mytheme/Magento_Theme/layout/default.xml and app/design/frontend/company/mytheme/...
0
votes
1answer
29 views

Create extension attribute to inventory source

I have a requirement to add the custom attribute (delivery_time) to each inventory source. my-vendor/module/etc/di.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3....
0
votes
0answers
6 views

How can I integrate Magento website with wordpress website and create a SSO(single sign on) between both websites?

I am trying to integrate a new website(Wordpress website) with a Magento website, I've made the API integration using php curl, I've also add the Magento website url to the new website. I can create ...
1
vote
1answer
31 views

How to add Custom Step on Checkout and move Shipping methods in that step In Magento 2.3.5

In this i want one custom checkout step can having only shipping methods inside the step means shipping address and Shipping methods are on different steps on checkout page. So, Please can anyone have ...
0
votes
0answers
16 views

How to save Image data using Magento 2.4.2?

I have created an input type image using Magento 2 Extension and want to save Image data. Now I want to save Image data in Magento 2 Database Custom table. I have created custom table and run Ajax ...
1
vote
0answers
10 views

Magento 2 custom routing frontend not working (100 router match iterations)

I have used this url to change it but i am keeping getting the same erros https://magento.stackexchange.com/a/209478/96152 i have a custom routes.xml <?xml version="1.0"?> <config ...
0
votes
0answers
10 views

Sending personalized module email does not work

I'm trying to create a custom module that sends an email to the user. I tried to follow a tutorial and when trying to use the code it didn't work it returns: "main.DEBUG: Unable to send email: ...
0
votes
1answer
29 views

Magento 2 : Override Magento\SalesRule\Model\RulesApplier class

How to override Magento\SalesRule\Model\RulesApplier class in custom module ? i have tried etc/di.xml <preference for="Magento\SalesRule\Model\RulesApplier" type="Myvendor\SalesRule\...
0
votes
1answer
36 views

How to create a template for page content in custom module?

I've created a module that includes a custom page. I can set a template block for the page title as follows: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
25 views

Does the magento framework support on module development?

I'm new at magento and I'm not happy with magento. I'm not having a course yet and try to get started with magento 2. The following text is my experience with magento and I ask my self if it was a ...
0
votes
1answer
31 views

Dynamic row autoincrement column Magento 2

I have a new module created by me. Here, I've followed this tutorial: https://devdocs.magento.com/guides/v2.4/ext-best-practices/tutorials/dynamic-row-system-config.html In this table, I want a column ...
0
votes
0answers
12 views

How to develop custom report module for orders filter by category in magento 2

I want to develop custom module in which i can filter sales order details filtered by category id. I am serching for solution but i can't find any solution please help me. Thank you in Advance.
1
vote
1answer
55 views

How to get third party module block function to custom module block

Third party module Block: Path: app\code\Amasty\Storelocator\Block\View\Attributes.php <?php /** * @author Amasty Team * @copyright Copyright (c) 2021 Amasty (https://www.amasty.com) * @package ...
0
votes
1answer
30 views

How to call one block function to another block in same module

First Block: app\code\Zero\Storelocator\Block\view\Attributes.php function name : getLocationAttributes() Second Block: app\code\Zero\Storelocator\Block\Customerreview.php How to get the first ...
0
votes
1answer
17 views

Need to change the site mail Logo if my module called in magento 2.3

I need to change the logo if the page is used in my custom modules. There are 2 Logos - Logo 1 and Logo 2. My Module test/login test/list If the above modules come I need to show the Logo 2
0
votes
0answers
15 views

How to get value for API URL from other custom module

I am created a custom module A(google business Review API) for getting reviews, for get store specific review i want to pass my store code to the API URL, i am using amasty store module B, there is i ...
1
vote
3answers
53 views

How to get value from admin configuration for my custom module

I have created a custom module, and added values directly in my code like hardcode, how to get those values from the admin configuration and passed to my code. Block: <?php namespace Zero\...
0
votes
0answers
16 views

Magento 2 PWA Venia - How can I install blog module

I have setup Magento PWA Venia theme, now I want to install Mageplaza Blog module which is pwa ready. I have installed it using composer require mageplaza/magento-2-blog-extension mageplaza/module-...
0
votes
0answers
20 views

Magento 2 - Steps to convert Google Business Client API to custom module

I am getting customer reviews from respective stores using https://github.com/google/google-api-php-client.git and, how to convert into Magento custom module. I want to display this review in my ...
0
votes
1answer
18 views

Is it right or wrong to create tables in the magento 2 database?

Guys I'm new to magento development and I'm trying to learn how to create basic modules and I'm trying to create a module that registers some customer information and then returns it to the ...
0
votes
0answers
15 views

Magento2: Issue with getPublicName from custom module

I have custom module. app/code/Ced/Marketplace/view/frontend/templates/vendor.phtml Code: <?php $vendorData = $block->getVendorData(); if ($vendorData->getId()) {?> <...
0
votes
0answers
15 views

Custom module sort and search filter not working

I've created a custom module. The sorting and search filter not working on the grid page. <arguments> <argument name="id" xsi:type="string">testGrid</argument> &...
0
votes
1answer
34 views

How to import 3 tables dump into database using script?

I want to include 3 tables SQL dump into that database, how to add it by using a custom module or script or any best practice.
1
vote
1answer
24 views

How to handle dynamic data in a script tag in head section for every page

I am absolutely new to Magento 2 (1 week in). I am trying to develop a Magento module that lets the admin specify a string (token) and when the admin saves the module I would like the token to ...
1
vote
0answers
21 views

After overriding module-catalog/final_price.phtml 'From price' 'disappears from configurable products

My override of module-catalog/final_price.phtml makes the 'From' disappear from the price for configurable products. module-configurable-product too has a final_price.phtml in the same path as module-...
0
votes
1answer
22 views

Is there an easy way to convert Magento module name to composer names and vice versa?

I am in a process where I want to compare two columns in my spreadsheet. The problem is one column has Magento module names (like Magento_Swatches). The other one has composer names (like magento/...
0
votes
1answer
41 views

Magento Data Migration Tool For Third Party Extension or Custom Modules

I have done default migration using Data Migration Tool. Now I want to migrate data of my custom module for that I am following below link: https://devdocs.magento.com/guides/v2.4/migration/extend-the-...
0
votes
0answers
8 views

does not extend \Magento\Framework\DataObject custom Model

Here's my code when I try to make the collection with my custom model I have this error In Collection.php line 612: Easysoft\Logistic\Model\Tracking does not extend \Magento\Framework\DataObject app/...
0
votes
1answer
21 views

I found this file /vendor/magento/module-customer/Controller/Account/LoginPost.php file is having some code. What is the explanation of below code?

I want to know what actually these two lines of code are doing. $redirectUrl = $this->accountRedirect->getRedirectCookie(); if (!$this->getScopeConfig()->getValue('customer/...
0
votes
1answer
27 views

Magento 2: Create a custom order view page

In magento 2 is there any way to create same order view page in custom module? I want to create a custom order view page where I have to display some more data but not want to display on core (order ...
1
vote
1answer
30 views

What does resultRedirectFactory?

I found a code at /vendor/magento/module-customer/Controller/Account/Login.php /** @var Redirect $resultRedirect */ $resultRedirect = $this->resultRedirectFactory->create(); I want to know ...
0
votes
1answer
128 views

Magento 2.4.1 Move Out of Stock In last Of Category Listing

I want to move out of stock product in last of the category listing, itried below code but same seems not working. app/code/Meetanshi/StockQuantity/etc/module.xml <?xml version="1.0"?> ...
0
votes
1answer
29 views

How to set the conditions for displaying of the related-products

Overriding related-product collection. My aim is to set limit for related product display. Related-products are not displayed if there are less than 10 products, the maximum number of products that ...
0
votes
0answers
21 views

How can I display multiple UI grid in admin panel with different database in magento 2? here I have attached screenshot also

Here is the picture where I have created one module and I have added 2 menu now when I open second menu that time UI grid should be open which should be different from 1st menu grid
0
votes
0answers
46 views

Magento simple module

i have an new module at app/code/MyVendor/MyModule and i try to understand structure of module magento2. I have some task of trainning list.I have an controller with execute() method echo sometext to ...
0
votes
0answers
16 views

Custom Model to load from Redis Cache

I want to create a custom module, it will have one model called Product and I want to load product details from Redis cache. So how to configure a model which will get loaded up from redis.
1
vote
1answer
58 views

Warning: call_user_func() expects parameter 1 to be a valid callback

it is the first time that I have asked a question in the magento community since I started working in a company that uses this framework for ecommerce a month ago. It turns out that I am inside a ...

1
2 3 4 5
62