Questions tagged [magento2.4]

Denotes questions related to the features included in Magento version 2.4.x

695 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
776 views

How to create modifier for admin customer form in magento 2?

I have created a new virtualType to change newly added customer attribute value in customer form. But I am unable to modify attribute data. What is wrong with the below code?
2
votes
3answers
26 views

Admin panel not loading properly, after magento 2 upgraded

I have recently upgraded Magento from 2.3 version to 2.4 version and it has been the upgraded, after upgrade the admin panel is breaking. Not loading properly. Can anyone please help me with solution.
2
votes
1answer
36 views

Magento 2.4.3 Upgrade from 2.3.0 showing iframe for Online payment

I have upgraded Magento 2.3.0 to Magento 2.4.3, everything is working perfectly but when selecting CCAvenue online payment on payment page, one iFrame is showing below to enter credit card information ...
2
votes
0answers
24 views

Magento 2 Coupon code restriction

I'm trying to modify the coupon code scenario and below is the scenario that I need to achieve. Full cart total should be >= $499. I added the condition that if a configurable product is found in ...
2
votes
0answers
80 views

Implementation of Composition Instead of Inheritance in Controllers Magento 2

I am trying to implement Magento 2 Coding Standard so I found an Article Here -> https://community.magento.com/t5/Magento-DevBlog/Decomposition-of-Magento-Controllers/ba-p/430883 I have changed my ...
2
votes
0answers
37 views

How to get blog result list into catalog search Magento 2

Hello I am currently working on Custom blog extension. Where I want to get blog posts in catalog result. where I am having my_blog_post table with following columns. id title image description ...
2
votes
0answers
46 views

Catalog Search result Wrong Result Magento 2

I am facing issue in the search result. I have installed Magento 2.4.0 and using Elasticsearch 7.0. When I search for h397 it gives me 4 product count and if I search for h397-4 it gives me 1868 ...
2
votes
1answer
72 views

Custom Sorting on category page not working in Magento 2.4.2

I have Magento 2.4.2. I have written a custom code to add A-Z & Z-A filters on category page. I have added dependency injection using below code <preference for="Magento\Catalog\Block\...
2
votes
3answers
654 views

Custom layout update not working 2.4

I have made the custom category layout update named as catalog_category_view_selectable_3_Test.xml in Magento_Catalog/layout. When I checked in admin panel in custom layout update the options is not ...
2
votes
0answers
181 views

Declarative schema uses padding in 2.3, gone in 2.4, do we have to use it?

In a module we're developing we declare a new database table with a foreign key relationship to the sales_order table. We want to support Magento 2.3 and 2.4, so we use the declarative schema (...
2
votes
0answers
162 views

Magento2 filter products based on location (custom attribute) programmatically

I have a Magento2 Store (v2.4) where I have multiple locations. for (eg. Jaipur, Delhi, Mumbai etc). I have managed locations using custom attribute using multiple dropdown list and assigned it to ...
2
votes
1answer
683 views

Magento 2.4 decline message disappears quickly - several quick fixes don't to the trick

I have a problem on my updated Magento 2.4 store. The error messages (like insufficient stock amount) disappear after a short time. Instead, I want them to be visible until the customer clicks on them....
2
votes
1answer
612 views

Magento 2.4 Products are not showing in category - Elastic Search enabled

I have recently installed a Magento 2.4 for a client, configured elastic search and everything worked well until I created a few additional store views (my assumption). Now the products are visible ...
2
votes
0answers
1k views

Magento 2.4.1 Elastic Search critical error failed to create query "all shards failed"

I updated my site to Magento 2.4.1 after that in my exception.log i continueously get folllowing error : main.CRITICAL: {"error":{"root_cause":[{"type":"...
2
votes
2answers
627 views

Magento 2.4.1 admin tfa configuration page is blank

I just migrated from Magento 2.3.4 to 2.4.1 , after i logged in from the backend i was redirected to TFA configuration page, but it shows blank container like this: i already ran these commands below,...
2
votes
1answer
281 views

Connection refused error in command line Magento installation 2.4.1?

Magento removed web installation in 2.4.1 version, while installing from command line, I am getting below error: bin/magento setup:install --base-url=http://dev.magento.local/ --db-host=127.0.0.1:...
2
votes
0answers
236 views

Magento 2.4: Uncaught TypeError: base is not a constructor

After Magento update to 2.4, I'm getting this "base is not a constructor" error which is causing other grids to unable load in the admin. When I run the command: ->sudo chmod 777 -R Var/ ...
2
votes
0answers
32 views

Add new plugins to tinymce 4

Does anyone know a simple tutorial on how to add plugins to tinymce 4 based on magento 2.4. The most stuff i found out there is outdated or missing alot of informationen
2
votes
1answer
2k views

Magento 2.4: Catalog Search index exception: Could not ping search engine: No alive nodes found in your cluster

We have installed Magento 2.4 on our local machine. After installing, we have got the below error when doing the setup:upgrade Could not validate a connection to Elasticsearch. No alive nodes found ...
2
votes
1answer
237 views

Cannot search for multiple words with Elasticsearch

Since switching search engine to ElasticSearch 7.9.1 (necessary for Magento 2.4.0) my site has only been able to search the catalog with a single word. When two or more are entered the front end ...
2
votes
0answers
197 views

Custom payment method not appearing in checkout (Magento 2.4)

I have been trying for a few days to create a custom payment method in checkout to implement a payment gateway from a new payment provider. So far I have seen many informations and tutorials but ...
1
vote
1answer
30 views

"Type Error occurred when creating object" persists

I am getting the following error message: main.CRITICAL: Type Error occurred when creating object: Vendor\CartUpdate\Plugin\Minicart\Image, Argument 1 passed to Vendor\CartUpdate\Plugin\Minicart\Image:...
1
vote
1answer
35 views

How to Hide or Show Custom attribute based on other custom attribute in Product detail/edit page from Adminpanel Magento 2.4.x?

I have created the Product's custom attributes programmatically(Setup->Installdata.php). $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, '...
1
vote
1answer
55 views

How to get product id in admin product edit page when using component grid

I am trying to get request param id when editing the page in my component dataprovider file. But getting always null value in it. I am rendering a grid in the product edit page and I need to filter my ...
1
vote
1answer
30 views

Sorting Street fields in magento 2.4

I am with a need to reorder 03 street fileds in the following order in shipping, billing, and customer address forms. street[2] - first street[1] - second street[0] - third I could reorder other ...
1
vote
1answer
20 views

Translate checkout, quantity in product page, compare and my wishlist near search bar Magento 2.4

I have a multilanguage store. I used the GitHub method to install relevant language packs The file containing the different language packs is located at /var/www/html/magento/app/i18n/Mageplaza Each ...
1
vote
0answers
24 views

How can I configure Contact Us form & Contact Email in Magento 2?

Please explain Simple ways to configure the Contact Us form and Contact Email. How can I Enable the Contact Us Form? How to Customize the Email Contact form ? How to Configure the Contact Us form?
1
vote
0answers
16 views

How to export and download advanced pricing csv file programmatically in magento 2.4

I have to export and download Advanced pricing csv file via cron(programmatically). Can anyone please explain me how can we do?
1
vote
0answers
17 views

Magento2 How to remove coupon code programatically

I am using a custom script to apply multiple coupons at a time for example: GET100OF GET200OF GET300OF Now, If the user wants to remove GET200OF then how to do this? Below solution does not works: $...
1
vote
0answers
28 views

Add a JS mixin to the add to cart button

Im looking to add a JS mixin to the 'add to cart' button, that will log the add to cart form information to the console when a user clicks submit.
1
vote
0answers
33 views

magento 2.4 show product options in custom template

On the frontend, I have a custom template with some tabs: when the user switches among tabs, he can load a simple product. Each tab loads a different product. This works fine with normal products but ...
1
vote
2answers
37 views

How to install magento 2.4.x with NGINX on ubuntu?

Please give me steps to install magento 2.4.x. Thanks, Ziya
1
vote
0answers
20 views

How to Resolve Payment Request is not defined error in GPay using Magento 2?

I have integrated Google Pay Extension from the marketplace. https://marketplace.magento.com/unboundcommerce-module-googlepay.html After integrating on my local machine and Configured with Test ...
1
vote
1answer
48 views

How to call image in js from pub/media in magento 2.4

i want to call image in js from pub/media, if i'm using this code it will call image from pub/static not pub/media. $("."+keypay).prepend('<img data-bind="attr: { src: require.toUrl('...
1
vote
0answers
20 views

How to restriction the review status update when review is already approved

I want to add conditions for review. If the review is already approved then restrict the functionality to stop the change the status of the review. <?php namespace Custom\Reviews\Plugin\Controller\...
1
vote
0answers
20 views

Magento 2.4: UI component paging with non-collection DataProvider

I have listed UI component with DataProvider that is not a collection. I want to make pagination for it but when I add simply toolbar and pagination nodes in XML it does not work. I can see that I ...
1
vote
0answers
7 views

Magento2: facing this error en_US/Magento_Catalog/images/product/ placeholder/.jpg' [] []

How to resolve this error in magento2: Unable to resolve the source file for 'frontend/themename/en_US/Magento_Catalog/images/product/ placeholder/.jpg' [] []
1
vote
0answers
15 views

Magento 2 : How to Fix Error total_invoiced_amount Value is bad when create a invoice

In my invoice, I am having problems with a grand total(base) that is always 2 euros for order so the total billed amount of 2 will be subject to tax and shipping. With an error on the at page ...
1
vote
1answer
27 views

Has anyone successfully hosted a magento backend on a different URL than the default frontend?

I've been wondering lately whether having the backend for magento on a completely separated URL would be possible, as magento historically has real problems confusing frontend and backend cookies for ...
1
vote
0answers
18 views

Magento 2.4 product export not working for big data

I'm working on a magento 2.4 project which has more than 100000 products.The default magento export function for products is not working because of big data.Other exports are working fine.I have tried ...
1
vote
1answer
595 views

Magento 2 - The requested class did not generate properly, because the 'generated' directory permission is read-only

I got this issue after running bin/magento setup:di:compile $ bin/magento setup:di:compile Compilation was started. Interceptors generation... 4/9 [============>---------------] 44% 16 secs 300.0 ...
1
vote
0answers
26 views

When placing the order in magento2.4 then sequence_order_1 table generating the three increment id

When place the order then three increment id store in the sequence_order_1 table How can i store the one order id in the sequence_order_1 table when place the order Before placing order ...
1
vote
0answers
20 views

Unable to save qty in magento 2.4.2

I am creating product programmatically. Following is the code $product = $objectManager->create('Magento\Catalog\Model\Product'); try { $product->setName('Test Product'); $product->...
1
vote
0answers
15 views

Magento 2.4 Issue with Product saleble qty

I have installed Magento 2.4 enterprise edition and enabled MSI with 5 warehouse and backorder. Placed one backorder with qty 1. When i see the product saleable qty in admin it shows -5, after the ...
1
vote
0answers
24 views

Magento Sales Rules Staging Module Disable Issue

I want to disable the Magento Banner module but the module is depend on the below module i try to disale all the module one by one using command line but when i disable the module sales rule staging ...
1
vote
0answers
30 views

How to Perform MFTF test to Custom Module before submit to Marketplace in Magento 2

I have go through the MFTF documentation to create and test the custom module before submitting the extension to Magento Marketplace. But this is difficult to understand to work on it. Can some one ...
1
vote
1answer
31 views

Where to change password validation message?

When customers attempt to create an account they are currently seeing "Please enter 7 or more characters, using both numeric and alphabetic." as the password validation error message. I have ...
1
vote
0answers
58 views

Show thumbnail image via Data Provider in Dynamic Rows in admin form magento 2

How can I show image thumbnail (edit form) for dynamic rows created by Magento's Row Pattern using Data Provider / Modifier. Like this link: Magento2 How to add row pattern/dynamic rows to the custom ...
1
vote
0answers
33 views

How does product count on layered navigation in Magento 2.4 is being rendered?

i'm using magento 2.4.1 and successfully overriding the product collection for layered navigation by overriding the getProductCollection method. The problem is the layered navigation sidebar showing ...
1
vote
0answers
107 views

Magent 2.4.2 Dynamic rows in edit form (ui components)

i have a little problem with display saved values in dynamic rows. Code below. EDIT FORM <?xml version="1.0"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...

1
2 3 4 5
14