Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
1answer
133 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
61 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
32 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
42 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
8 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
95 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
43 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.)
0
votes
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
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 ...
0
votes
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
39 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
32 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
19 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 ...
1
vote
3answers
75 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
59 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
168 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
30 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
74 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 ...
0
votes
0answers
34 views

Magento 2 / ShipHawk multiple warehouses

I need to extend the ShipHawk Magento 2 module so that order line items can be shipped from multiple locations. We are using Magento MSI and I have the functionality built to send the stock inventory ...
0
votes
0answers
21 views

Magento 2: Adding Custom Field to Checkout and Having a Database issue

So I'm trying to add a custom 'checkbox-set' to the checkout page of a vanilla install of Magento 2.3.2, I have it working on the frontend view, though after changing some values in the InstallSchema....
0
votes
0answers
18 views

Indexer not taking correct batch size in Magento 2

I have created a module and a file app/code/Mag/Indexer/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
5 views

any idea of Dutchento VatFallback module? do i able to get documentation to know the purpose of this module

any idea of the Dutchento VatFallback module? do I able to get documentation to know the purpose of this module
0
votes
1answer
32 views

Magento 2 - How I can get category for related products

How I can get categories for related products like in the following image: I use this code: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $category = $objectManager->get('...
0
votes
0answers
20 views

How can I customize the filter of the product grid on the admin side in order to filter by RANGE

hope you are all good and in great shape. TLDR: How can I filter my product grid on the admin side using a WEIGHT RANGE? I am a newbie in Magento and I have been doing some progress over the last ...
0
votes
0answers
13 views

How to create a custom product attribute where i can upload as many PDFs as needed, and upload the thing as a whole?

I need to complete a task which i have been struggling with since last week. If i "Go to Seller Store" and then into editing a product (both a new product or one that is already uploaded), ...
0
votes
0answers
10 views

How to use big image from blog post in facebook share instead of logo?

I recently installed an extension module, but when we share at facebook it always use the website logo, I removed the tag from the xml I think so the logo it's not prioritised but keeps using it. Any ...
0
votes
2answers
415 views

Magento 2.4.1 disable Elasticsearch

I want to use Magento 2.4.1 in a shared server, the problem is that the shared server is not support Elasticsearch. Is there any way to can remove the Elasticsearch or to disable the entire search ...
0
votes
1answer
16 views

Magento2.3.5 Di Compile Breaks custom module admin grid

I have an issue whether in developer or production when I run php bin/magento setup:di:compile I get Fatal error: Uncaught Error: Call to a member function setActive() on bool in /var/www/vhosts/dev....
0
votes
0answers
22 views

i want to add slides multiselect drop down in banner form in admin through coding in magento 2

I want to load the slide section in a banner form and want to select the slides from the multi-select drop-down banner form and should save it in the database. I want to create this functionality as ...
0
votes
0answers
33 views

Category attribute value changes unexpectedly after saving category in Magento 2.4

I created a module that uses an Image Uploader UiComponent to upload an additional image to a category and save its path in the database. The controller I use to do this is basically a copy of the out ...
1
vote
2answers
105 views

Magento 2 how to override theme-adminhtml-backend view.xml in custom module?

By default Magento 2 creates more than 20 duplicates of each product image..! (why???) I have got this down to 5 using view.xml in my theme, but there is one extra set of image sizes I need to change, ...
0
votes
0answers
24 views

Issue with plugin that migrates orders

We've just upgraded a Magento 2.1.9 live website up to development 2.4.1 site. The new site has been fully redeveloped with new theme, extensions and content, and the only thing stopping us from going ...
0
votes
1answer
21 views

Magento 2 - Conflict in localisation csv file

I understand the general structure of i18n csv files that is like <key_hook>,<translation_of_that_key> but according to the documentation there is the possibility to add a module ...
0
votes
1answer
20 views

Magento 2.3 - Moving the payment option in the checkout to the first step

Is there an easy way to move the payment options out of the second step (Payment and Review) and into the first step (Shipping Address)? I have searched far and wide and there is almost zero ...
0
votes
0answers
20 views

Best way to manage sensitive custom Module Server-side properties on ConfigProviderInterface

While building a custom module for the checkout process, I need to add certain configuration properties (strings) to use as part of my plugin. These properties need to be kept "secret" on ...
1
vote
1answer
27 views

How to know if my Magento 2 is in developer mode via PHP?

I'm using Magento 2.4 to develop a new module and I need to check if the store is running in developer mode or production mode. How could I get the Magento Mode via PHP?
0
votes
0answers
40 views

My URL for payment notification result 404

I have problem with notifications URL in my custom payment gateway. I have Urlnotification class under Block folder where I put namespace MyPayment\MyGateway\Block; use Magento\Config\Block\System\...
0
votes
0answers
11 views

How to make an artifact from a module instead of installing in app/code?

I have a module from a payment system. I added them to app/code. But now, to make a simple rewrite of the module template, I need to do more than just copy it if the module was in the vendor. Tell me ...
0
votes
1answer
57 views

Magento 2.3 Customer My Account Custom Tab

I am trying to create a custom tab in Customer my account area and adding a link in the left bar to it, have followed the code structure similar to this article: https://www.mageplaza.com/devdocs/add-...
0
votes
0answers
34 views

The Text Appears with the dropdown on Custom Module

My code on a custom delivery time module works all fine but it shows the given text outside the dropdown box , I racked my brain trying to fix this and I still couldn't , please do help!! WorkingOff....

1
2
3 4 5
62