Questions tagged [magento2.4]

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

Filter by
Sorted by
Tagged with
12 votes
6 answers
19k views

Magento 2.x Elasticsearch Category Products Not Showing

I tried to upgrade my Magento 2.3.5 install to Magento 2.4.0, but am unable to get category pages to display products. Everything is in Docker, so I am using Elasticsearch 7.6 and have specified ...
doublesharp's user avatar
1 vote
2 answers
468 views

How to add Sort options in back-end grid as shown in pictures?

I want to add extra sort options in backend these options are below All Sizes on top Minimum 1 sizes on top Top Discounted Product (discount percent) Recently bought on top and i have used this code ...
Afzal Arshad's user avatar
10 votes
7 answers
28k views

Magento 2.4.3 admin dashboard - Invalid security or form key. Please refresh the page

After upgrading to Magento 2.4.3 Community Edition I am getting Invalid security or form key. Please refresh the page. on the admin dashboard site after logging in. Reloading the page makes the error ...
cookie monster 24534's user avatar
3 votes
1 answer
5k views

Magento 2.4 Add Recaptcha in Custom From

Magento 2.4 How to add Google Recaptcha in Custom Form ?
Msquare's user avatar
  • 9,073
2 votes
3 answers
2k views

Upgrade Magento 2.4.1-ee to Magento 2.4.2-ee return 404

I upgraded Magento 2.4.1-ee to Magento 2.4.2-ee and after that, I execute the command for upgrade and deploy. Commands run successfully. But, the front URL and admin URL return the 404 page. How to ...
Rohan Hapani's user avatar
  • 17.4k
2 votes
5 answers
8k views

Upgrade to magento 2.4.3

I'm trying to upgrade Magento 2.4.2 to the latest release of Magento 2.4.3 How can I do this with the composer?
eima's user avatar
  • 103
1 vote
2 answers
2k views

Magento2.4: How to Sort Product by " Best Selling " and " Best reviewed " Product?

I want to add custom sort options like " Best Selling " and " Best reviewed " in Catalog/Category sort order options Below is the picture. and i am trying this approach in below ...
Afzal Arshad's user avatar
0 votes
1 answer
470 views

Magento2.4.2: How to display only those payment method options in filter in sales order grid which are enabled on store front?

I want to display only those in this payment method filter drop down which are enabled on store front. if i had 4 payment methos enables on store front then only four options should be shown in this ...
Afzal Arshad's user avatar
40 votes
31 answers
147k views

Magento 2.4.0 - Getting Error Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

I am getting below error while installing Magento 2.4.0 using command line. Could not validate a connection to Elasticsearch. No alive nodes found in your cluster I have run below two commands. ...
Vrajesh Patel's user avatar
7 votes
3 answers
29k views

Upgrade Magento 2.3.3 to 2.4

How to upgrade Magento 2.3.3 to Magento 2.4?
David Duong's user avatar
4 votes
2 answers
5k views

Proper way to update stock in >= 2.4?

I'm finding inconsistent documentation on how to update product stock for M2 2.4.1. Magento\Catalog\Model\Product::setStockData is documented in code to be deprecated and points to Magento\...
laketuna's user avatar
  • 6,830
2 votes
6 answers
4k views

Magento 2.4 - Two factor authentication

I'm upgrading my development migration to 2.4. I was surprised to see that 2FA was enabled. Can this be turned off? I have enough issues to deal with and prefer not to go through this learning curve....
V. Long's user avatar
  • 131
2 votes
2 answers
6k views

The requested URL /pub/ was not found on this server. - Magento .htaccess problem

I have an problem about magento 2.4.2 Installed magento 2.4.2 using Composer-CLI. But I can't access magento homepage (http://localhost:8888/magento2) The requested URL /pub/ was not found on this ...
Said's user avatar
  • 31
0 votes
2 answers
545 views

Magento2.4: How to sort products by Size options (XS, S , M, L ,XL)?

I want to sort Products based by their size like (extra small, small, medium, large) you can take Magento reference what they use for this term,) 1: Products with All Size options should be on top. ...
Afzal Arshad's user avatar
63 votes
8 answers
105k views

How to disable Two factor Authentication module in Magento 2.4

How can I disable the Two-factor Authentication module using command-line ?
Softec's user avatar
  • 2,065
48 votes
12 answers
53k views

You need to configure Two-Factor Authorization in order to proceed

Having just installed 2.4.0 from scratch, I ran into an "issue" when logging into Magento Backend for the first time: Failed to send the message. Please contact the administrator You need ...
Craig's user avatar
  • 2,650
3 votes
2 answers
970 views

Magento2 multiwebsite multistore sharing storeview code

We have a Magento 2.4 project with multiple websites with multiple stores & we need to share some "store codes" in url terms for store views. All store views should load under same ...
Raul Sanchez's user avatar
  • 3,036
2 votes
1 answer
687 views

How to validate a custom field in sales rule before the discount applying to cart in magento 2.4

I created three custom fields in salesrule Database Table. apply_on_weekday applicable_time_from applicable_time_to Now I wants to validate that custom fields before the applying the cart price rule ...
Harsh Patel's user avatar
2 votes
1 answer
817 views

How to save extension attribute in Salesrule Api magento 2.4

I need to save custom field data in apply_on_weekday column which is located in salesrule DB table. I tried too much but it doesn't save it in DB. I share my code below. vendor\Module\etc\...
Harsh Patel's user avatar
2 votes
1 answer
1k views

how to create PWA magento 2.4 custom theme?

I am new for PWA magento but can't understand full structure yet I have installed PWA Venia and want to create custom theme of venia like in magento we know we create a child theme and can override ...
Asad Ullah's user avatar
  • 1,461
2 votes
3 answers
1k views

Missing css from source code magento 2.4.2

When upgrading to Magento 2.4.2 all of the core css is missing front both the back and frontends. Looking at the source I see no reference to such lines such as <link rel="stylesheet" ...
Goose84's user avatar
  • 2,611
1 vote
2 answers
335 views

Missing Import / Export Options under System->Data Transfer (Magento CE 2.4.1 + Claue Theme)

When logged in as an administrative user (with all resources including data transfer allocated), under the System->Data Transfer menu, there are no import /export options available. The entire Data ...
call_1511's user avatar
0 votes
3 answers
1k views

Magento 2.4 installation issue on windows machine

I have downloaded magento 2.4 and trying to install on windows machine but while hitting "localhost/magento-24/" it is not showing install button. I don't know the reason can some help me in ...
shankar boss's user avatar
  • 1,453
0 votes
2 answers
2k views

Magento 2.4.0 fails to install

I'm trying to make a fresh install of Magento 2.4.0. I want to say in advance I didn't have any problem at all in installing Magento 2.3.5 with PHP 7.3.20. Anyway... Here's my config: Debian 10 ...
KaMZaTa's user avatar
  • 205
0 votes
4 answers
1k views

Owl Carousel randomly not loading magento2.4

on my Magento2.4 I have an issue where owl-carousel will randomly not load. Here is my default_head_blocks.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
Jayreis's user avatar
  • 705
0 votes
1 answer
908 views

Magento 2.4.2: How to get order sub total in my custom module?

With the code below, I am trying to get the order sub total. Please note I am querying the table that I created in the Magento Database. $subtotal = $request->getOrderSubtotal(); doesn't get the ...
CodeForGood's user avatar
10 votes
1 answer
4k views

Sanitizing HTML output in templates in 2.4

Before 2.4 the way you could sanitize an html value in a template was to use $block->escapeHtml($valueHere);. Where $blick is the instance of the current block. This still works in 2.4, but the ...
Marius's user avatar
  • 198k
10 votes
5 answers
40k views

magento/composer-root-update-plugin is locked to version 1.0.0 and an update of this package was not requested

I am trying to install the extension through composer, but I am getting the below error. Your requirements could not be resolved to an installable set of packages. Problem 1 - magento/composer-root-...
somutesting's user avatar
6 votes
6 answers
19k views

Magento 2.4.0 ElasticSearch not alive

When performing the setup:upgrade I get this error : "Could not validate a connection to Elasticsearch. No alive nodes found in your cluster" I have not enabled It previously, updating from ...
V. Long's user avatar
  • 131
6 votes
3 answers
8k views

Magento 2.4 Class Magento\Framework\Search\Adapter\Mysql\Mapper does not exist

I just upgraded my Magento version to the latest Magento version 2.4.0. after a successful upgrade, while I am trying to set production mode I am getting error like Compilation was started. Area ...
Navin Bhudiya's user avatar
4 votes
2 answers
5k views

RabbitMQ and cron_consumers_runner

If you are running RabbitMQ in M 2.3/2.4 and have the env.php section set up for amqp: 'queue' => [ 'amqp' => [ 'host' => '127.0.0.1', 'port' => '5672', '...
Rob Mangiafico's user avatar
4 votes
7 answers
8k views

Magento 2.4.3 - Checkout JS knockout error - renderReCaptcha

We upgrade to Magento 2.4.3 and now face the following JS knockout error in the checkout: TypeError: Unable to process binding "afterRender: function (){return renderReCaptcha() }" Message: ...
JGeer's user avatar
  • 1,418
3 votes
3 answers
3k views

Magento 2.4 with AWS ES not able to install

I'm trying to install Magento 2.4. I have set up AWS ES that I tasted and it works fine! But I keep getting an error: In SearchConfig.php line 81: Could not validate a connection to Elasticsearch....
codexxx's user avatar
  • 43
3 votes
1 answer
3k views

Upgrade Magento 2.3.5-p1 to Magento 2.4

I'm trying to upgrade Magento 2.3.4 and Magento 2.3.5-p1 to the latest release of Magento 2.4, Is that possible ? And How can I do this with composer ? Thanks in advance
eima's user avatar
  • 103
2 votes
3 answers
660 views

How to update Magento 2.3 to 2.4?

I have a store in Magento 2.x.x I want to update Magento 2.3 to 2.4 but when I update it using the command: composer require magento/product-community-edition=2.4.0 --no-update I get the following ...
Prits's user avatar
  • 626
2 votes
2 answers
309 views

Magento2.4.2: How to create two images field in admin form?

I want to one more image field in my custom admin form This is my custom admin form and i want to add one more image field and my code is this vendor/PromotionsPopUpBox/view/adminhtml/ui_component/...
Afzal Arshad's user avatar
2 votes
2 answers
570 views

Magento2.4: How to add custom sort options in backend and sort product on storefront?

In magento enterprise edition, in admin catalog/category there are sort options which sort products on storefront based on that filter, now i want to add a custom filter like Filter by Product ...
Afzal Arshad's user avatar
2 votes
1 answer
33 views

Why does my own payment method not get disabled?

I have created a payment method module in Magento 2.4.4 after a lot of trial and error and I finally have a small working version that works both in the adminhtml and the frontend. The problem I have ...
user avatar
2 votes
2 answers
681 views

Magento2: Custom validation in checkout address form

I'm trying to add a custom validation to some input fields in checkout address forms. The official guide works fine on addressbook and other forms, extending mage/validator and using addMethod is ...
kionez's user avatar
  • 31
2 votes
2 answers
51 views

magento 2 : is it impact on isting page performance for $_product->getResource()->getAttribute('custom_attribute_code')?

I have a custom attribute which has 15 text values. I am using $_product->getResource()->getAttribute($attributecode)->getFrontend()->getValue($_product); . In catalog page I have used ...
Niraj Patel's user avatar
2 votes
2 answers
2k views

How to upload mp4 video using wyswing editor in Magento 2

I have added wyswing editor in my custom module. From there, I want to allow to upload mp4 video from that editor. How can I do that? Any one please help me.
Niket's user avatar
  • 157
2 votes
2 answers
3k views

Magento 2.4.3 - How To disable Page Builder?

I migrate my Magento from M2.4.2 to M2.4.3 but I have some issues due to page builder functionality, please give suggestions for disable page builder functionality.
Rutvik Monpara's user avatar
1 vote
2 answers
2k views

Product tabs are not showing in product detail page

product tabs are not showing on the product detail page and reviews are coming down to Description. I had created a custom tab and this one also does not show http://18.169.225.50/calacatta-matt-...
somutesting's user avatar
1 vote
1 answer
575 views

Extreme big headers only in large configurable products

We have a Magento 2.4.0 store. Most of our products are configurable. And some of them are having a lot of options. We also use swatch options. We have discovered some links which return: Error 503 ...
G. G.'s user avatar
  • 1,132
1 vote
1 answer
3k views

"Not Visible Individually" products display on Frontend in Magento2.4

Is there any way to display "Not Visible Individually" products on frontend? My goal is admin can see product before upload in site...
Himanshu's user avatar
  • 978
1 vote
2 answers
2k 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"?> ...
user1799722's user avatar
1 vote
1 answer
302 views

Magento 2.4 Sidebar\RemoveItem - afterExecute() must be an instance of Magento\Framework\App\Response\Http

I get this error: TypeError: Argument 2 passed to ..\Plugin\Controller\Checkout\Sidebar\RemoveItemPlugin::afterExecute() must be an instance of Magento\Framework\App\Response\Http, instance of ...
Greg's user avatar
  • 2,929
1 vote
3 answers
11k views

How to setup OpenSearch in Magento 2 instead of Elasticsearch

I want to use OpenSearch instead of ElasticSearch in Magento 2 I didn't find anything to configure the OS configuration.
Arun Sharma's user avatar
  • 1,315
1 vote
1 answer
156 views

Magento 2 marketplace extension submission failed

I'm facing an issue with the marketplace extension submission. When I try to submit a module on the marketplace and below error report returns from the marketplace. The report is: { "tool": &...
Jitendra Hengada's user avatar
1 vote
1 answer
2k views

Custom Customer Attribute field data not showing in Customer Account Information

I have added the field "Favorite Color" to the Customer entity and added it to the registration form. The field properly stores data, as I can see when logging in as Admin and checking in ...
dotancohen's user avatar
  • 1,115