Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
1answer
20 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
20 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
9 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
49 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
23 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
45 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
15 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
17 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
14 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
33 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
23 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
18 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
19 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
34 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
6 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/...
1
vote
1answer
26 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
23 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
28 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
20 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
13 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
37 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 ...
0
votes
0answers
14 views

How to redirect to the same page after form submit in sales order view?

I am creating a custom form in a custom tab of Sales Order View. When I click on Use Template button, it redirects me to Page Not Found 404. I want to show a success/fail message and redirect to same ...
1
vote
2answers
29 views

MAGENTO 2 - How to send custom email from custom form

I'm kind of newbie in Magento and don't understand everything I read on the subject so I would be glad if some of you could help me find why I did wrong in the process :) First of all, I have a test ...
0
votes
0answers
24 views

Magento 2 prevent function from executing using plugins

There is a third party module which contain the RecurringData.php file. That class has install function which runs $this->testimonial->update(); function. I want to stop the execution of that ...
0
votes
0answers
7 views

Magento 1.9 Add wholesale price column and show wholesale price in products GRID using custom module

I want to add a Wholesale Price column in products Grid and show Wholesale price in that column. I want to build it using a custom module. As I do not have much knowledge in Magento 1 so requesting ...
0
votes
2answers
54 views

magento2 how to implement graphql with alpine.js get cms static block data

I have create a static block in magento2 admin panel. I like use graphql with alpine.js to get data of the static block.
0
votes
2answers
33 views

Which basic modules do you recommend to disable for performance and other? - Magento2

Which basic modules do you recommend to disable for better performance or other reason? (I solved a checkout issue after disabling Dotdigitalgroup_Sms module.)
1
vote
1answer
35 views

Magento: addEventListener on change radio button not working using requirejs

Here everything works fine just one issue is there, it doesn't the value and id of input radio fields, So I think domReady addEventListener is not working here. Help is really appreciated TIA This is ...
0
votes
1answer
16 views

In a module, know which component asks informations

collaborating to Lillik/PriceDecimal project, I'm stuck on a detail: how can I know which page/module et calling my function ? For now, I'm using a global variable $Val = $this->getConfig()-&...
0
votes
1answer
105 views

I want to develop IP restriction on Login [closed]

In this I want to develop the following things: I want to develop IP restriction over customers login in which if I want to develop one filed in admin which you can specify anyone's IP address(text-...
0
votes
0answers
25 views

I want to develop cron for magento 2

In this cron I want to do the following things: cron should fetch products which has been created in the last 3 days. and also I have created some categories in the backend and I want to assign those ...
1
vote
1answer
29 views

Magento 2 - Custom Registration Form For Guest user in custom phtml file

How to build a custom registration form that can be shown in custom phtml file and visible only for guest customer. In the form also show user a checkbox field (mandatory) to confirm account creation ...
0
votes
1answer
28 views

Magento 2 : override Magento_Sales::email/items/creditmemo/default.phtml

What is the best way to override below template file in module ? Magento_Sales::email/items/creditmemo/default.phtml
0
votes
0answers
30 views

Different translations for same word on different modules won't work

i created a language pack for my magento2 installation as you can see below; composer.json; { "name": "x/language-tr_tr", "description": "X Turkish Locale Package / ...
0
votes
0answers
21 views

How long does it take to make amendments to an already uploaded and approved magento 2 extension

For example I am developing a payment method module for magento 2. Suppose I have submitted the module for review. All the tests pass, my module is approved, up and running. Some magento websites ...
0
votes
1answer
10 views

What does ~ and ^ mean before version number after module name in composer.json?

Sorry for this newbie question: What does ~ and ^ mean before version number after module name in composer.json ? "mageplaza/module-core": "^1.4.1" "sebastian/phpcpd": &...
0
votes
0answers
10 views

Why don't possible rewrite this class on Magento\Payment\Model\Method\Cc

I create the rewrite of that class but for some reason magento ignores it, is it because it inherits from an abstract class? etc/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
17 views

Product details page get product custom attribute and apply custom css

I have create a custom attribute for a product. The attribute name is "hide" When product load at product detail page, if this product custom attribute is "hide", it will apply a ...
1
vote
1answer
21 views

Magento2.4.2 own module class does not appear in generated (no error while setup:ci:compile)

sorry to bother but I'm really stuck with a strange problem. My goal is to have the invoice PDF changed but the class I've created to do this (which is currently a bunch of code from another guy) does ...
0
votes
3answers
43 views

How to check installed extensions on database magento 2

I need to check installed module on database table I hope your help Thanks Thomas
1
vote
1answer
54 views

Override Magento_Sales::email/items/shipment/default.phtml Template (Magento 2)

I am trying to override Magento_Sales::email/items/shipment/default.phtml Here is my layout file app/code/Mod/Sales/view/frontend/layout/sales_email_order_shipment_renderers.xml <?xml version="...
0
votes
1answer
153 views

Why should I (not) put my extension into app/code?

a dumb question. From: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/build/module-file-structure.html Magento installs third-party components in the <Magento install directory>/...
0
votes
1answer
29 views

Custom getLogoUrl for E-Mail templates

I have the following problem: Inside of four different store views, we have the opportunity for the customer, to change between different assortments. This is basically just a filter in the Layered ...
0
votes
0answers
66 views

Magento 2 online refund for custom payment method

I am developing a Magento 2 custom payment module for one of my clients, yet I am now totally blocked in finding a way to process an online refund for any of the created orders. I can't locate the ...

1
2 3 4 5
62