Questions tagged [magento2.4]

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

645 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
767 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
0answers
33 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
41 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
45 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
450 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
106 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
154 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
547 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
555 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
568 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
264 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
210 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
31 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
217 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
188 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
0answers
15 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
14 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
26 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
18 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
28 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
11 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
0answers
36 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
19 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
17 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
13 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
26 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
14 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
0answers
152 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
20 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
14 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
23 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
26 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
23 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
50 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
28 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
52 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
vote
1answer
43 views

Magento 2 Admin Url or any other URL you are requesting not found on server 404

I tried all possible solutions on the internet but the still issue persists. Solutions that tried 1. ( Many solutions suggest changes in apache in following files ) /etc/apache2/apache2.conf Enabling ...
1
vote
1answer
61 views

How to prevent order while placing order?

I want to prevent order on checkout page. With the use of particular condition i need stop placing order. When i click on place order button , my order should not be place and should redirect to cart ...
1
vote
0answers
24 views

Layout with cacheable="false" doesn't work in Magento Cloud with Fastly

I am trying to make a whole custom controller not cacheable. In my layout XML I added this: <?xml version="1.0" ?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
1
vote
0answers
56 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-...
1
vote
0answers
93 views

layered navigation not working with custom filters magento 2.4

layered navigation is not working with custom Collection filters in Magento 2.4 File Name - Magento\Catalog\Model\Layer\Category\CollectionFilter; $collection->addAttributeToSelect($this->...
1
vote
0answers
261 views

Failed to set PHP CodeSniffer installed_paths Config issue at Magento2.4 installation

I tried to install Magento2 using Composer. After run $ sudo composer create-project --repository=https://repo.magento.com/ magento/project-community-edition magento the installation showed the error ...
1
vote
0answers
41 views

PHP Fatal error on inventory:reservation:list-inconsistencies command

Magento 2.4.0 PHP 7.3 MariaDB 10.4 When I try to run this command: bin/magento inventory:reservation:list-inconsistencies -r I get the following error: PHP Fatal error: Uncaught TypeError: Argument 1 ...
1
vote
1answer
267 views

Cannot run MFTF tests: Chromium started but does nothing

I installed MFTF and selenium accoring to https://devdocs.magento.com/mftf/docs/getting-started.html I run: $ java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone-3.141.59.jar ...
1
vote
1answer
156 views

Magento 2.4.2 Installation with Sample Data errors

I can't proceed the Magento 2.4.2 sample data installation. It's Nginx 1.19, PHP-FPM 7.4, MariaDB 10.4, Elasticsearch 7.11 on Docker. Normal installation works without any problems. The first time I ...
1
vote
2answers
190 views

Display Out of Stock Products in the End on Category Pages - Magento 2.4.0

I want to display all out of stock products in end on category pages, I have tested few solution which is mentioned on Magento stack exchange, But no one is working for me. Anybody can help me ...
1
vote
1answer
27 views

Can't change Custom Attribute when Importing Products

I have a custom attribute for my products called Designer_name. I'm trying to import products and change a Designer_name's value in the additional_attributes column, but it doesn't work. The attribute ...

1
2 3 4 5
13