2022 Developer Survey is open! Take survey.

Questions tagged [magento2.4.0]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

ui-select optgroup filter dropdown in Magento 2 Grid Filter

I am trying to group the option using optgroup for ui-select component in magento2 grid, but facing some issue. It is working fine with the [label,value] options not with optgroup. What i am trying to ...
user avatar
0 votes
0 answers
8 views

Fotorama not working. Showing Type Error in console

I followed this link (Magento 2 + need to use fotorama in cms page) to use fotorama but instead it prints all the images in a line. Using fotorama on my custom product page. When i check the console ...
user avatar
2 votes
1 answer
39 views

Magento 2.4.4 upgrade after credit memo grid gives requested store wasn't found error?

i have upgrade magento 2.3.3 to 2.4.4, all other things are working fine, i have also check credit memo created successfully, but credit memo grid gives "The store that was requested wasn't found....
user avatar
1 vote
2 answers
60 views

Magento 2 Gallery.js fotorama js

there is a function returnCurrentImages in gallery.js file returnCurrentImages: function () { var images = []; _.each(this.fotorama.data, function (...
user avatar
0 votes
0 answers
22 views

Magento 2:Add to cart performance issue detect in newrelic

I have noticed that when I add to cart it takes time to add product. When I jumped into codes and new relic report, I found out weird thing in my new relic report. Here I have an attached screenshot ...
user avatar
0 votes
0 answers
8 views

Magento 2 convert current date time to gmtdate

How to convert current timezone date and time to gmtdate and time ? Here I am adding some hours for todays date and wants to convert in gmtdate to filter order colleciton //Magento\Framework\Stdlib\...
user avatar
0 votes
2 answers
37 views

Magento 2 add JS only on specific static page

I have created one static page, I wanna load specific JS only on specific static page, Here my static page name is ship_custom_page If I have to load specific JS in product page so I am using ...
user avatar
0 votes
0 answers
8 views

Magento 2.4.0 PickupDate ignoring in request UPS API

This is my UPS request API Data where I am passing 4 February 2022 for pickup date but UPS API ignore my <pickupDate> and it taking today's date automatically and return today pickup date in ...
user avatar
0 votes
0 answers
25 views

Magento 2: color picker is not working in ui custom form

it's show like this and I define its field name in XML file
user avatar
0 votes
1 answer
25 views

Magento 2.4.0 external JS not loading

one external js library has this kind of code and full library of code at bottom !(function (o, e, t, _) { ........... ....... .......... })(jQuery, window, document); ...
user avatar
0 votes
1 answer
32 views

Magento 2 : Get option name rather option id in product collection

Hi I am using below product collection,but it returns option id of attribute in collection my question is how to get option label rather than option id in collection. Is there any way ? Because I am ...
user avatar
0 votes
2 answers
105 views

How to upgrade Magento Enterprise Edition?

I am a newbie for the Magento enterprise edition. I am upgrading Magento 2.3.5-p2 to Magento 2.4.0 in Enterprise Edition. Following commands used with MySQL 5.7 and php7.3: composer require magento/...
user avatar
  • 13
0 votes
0 answers
44 views

Magento 2.4.0 upgrade to 2.4.3 error

I am getting error while upgrading Magento 2.4.0 CE to 2.4.3 while executing setup:upgrade command. Cannot instantiate interface Magento\MediaContentSynchronizationApi\Model\GetEntitiesInterface#0 /...
user avatar
0 votes
1 answer
279 views

Magento 2.4.3 : default magento 2.4.3 success or error message not appear on frontend?

We have Magento 2.4.3 upgrade after any action/event perform we can't appear with success/error messages. if we have to go to other pages then the message will be appearing there.
user avatar
0 votes
1 answer
23 views

Magento2 Product Collection Observer only changes one page at a time

In ListProduct block Magento is using initializeProductCollection() to initialize the collection. While initializing it dispatches event catalog_block_product_list_collection as follows. $this->...
user avatar
0 votes
0 answers
23 views

custom ui form on menu click?

I'm try to add a form on menu click and it doesn't works. Can anyone knows?? <menu> <update id="FME_Extensions::fmeextensions" title="FME Extensions" module="...
user avatar
  • 188
0 votes
0 answers
31 views

How to add loader for particular block in magento2

I want to add a loader for a particular section on the home page. I tried with Magento loader. But it's showing for the whole page. I want to show the loader only for a particular section. How to do ...
user avatar
  • 2,460
0 votes
0 answers
18 views

Items are missing on Order Details Page

I am getting an error, when customers are placing an order then on In admin Sales=> Order details page Orders items are missing. But invoice is created successfully. All items are coming in when I ...
user avatar
3 votes
1 answer
90 views

Add additional info based on country selection condition in one page checkout country field

The condition should be like if the country is the UK then the text should not be shown. If the country is other than the UK then the text should be shown. On the cart page, I achieved using the ...
user avatar
0 votes
3 answers
191 views

Get error after disabling a module

I have upgraded Magento from 2.2.4 to 2.4.0, i have custom modules that are not compatible with the new Magento version. So i disabled the module but when i run php bin/magento setup:di:compile I ...
user avatar
0 votes
0 answers
15 views

Magento 2.4.0 Missing CLI "UPDATE" Command

I have to solve a mass csv import issue, described here: Magento 2.3.3 | unable to save changes on imported products. This needs me to use the Magento CLI UPDATE command, which I can't execute. It ...
user avatar
0 votes
1 answer
247 views

After Upgrade to magento2.4.2-p1 getting admin login error, redirecting to denied controller

I have upgraded to Magento2.4.2-p1, and I am not able to log in to admin. It is redirecting to the denied controller. Check screenshot
user avatar
0 votes
1 answer
64 views

After upgrade to magento2.4.2-p1, getting error "stat failed for static/frontend/_view/en_US/Magento_Theme/favicon.ico"

Upgraded to latest version of magento which is 2.4.2-p1. Now static url's are coming like /static/frontend/_view/en_US/Magento_Theme/favicon.ico and site is broken. I did not find any solution of ...
user avatar
0 votes
1 answer
38 views

Change layout of main and subcategories

I'm aware that I can change the layout of a specific category by creating a layout file with the name catalog_category_view_id_123.xml where 123 is my category id. How do I apply a layout change to ...
user avatar
0 votes
0 answers
353 views

Your search returned no results after search category or product in the search box error in Magento 2.4.0

As I am searching anything inside the search box like category name or product it is showing not results error in the Magento 2.4.0 version. Can you please how to resolve the issue quickly ?
user avatar
0 votes
1 answer
164 views

Show customer custom attribute in company admin grid

Using magento enterprise on cloud I have created a customer attribute external_id. When a customer account is converted to a company account how do I show a column in the grid for this custom ...
user avatar
0 votes
2 answers
308 views

UI Component form show dropdown or multiple text fields based on content

I have a form for adding animals with a field called species. This UI Component is: <field formElement="select" name="species" sortOrder="10"> <argument name=...
user avatar
1 vote
1 answer
235 views

Getting array brackets in magento 2 log

I am trying to print the log using logger method in magento 2, while printing i am getting 2 empty array brackets in the log. Can anybody say why it happens like this and how to remove those brackets? ...
user avatar
0 votes
1 answer
167 views

json_decode is not working properly in magento 2.4.0

I am trying to decode the JSON in normal string and print that in the info log in Magento 2.4.0 but I am getting nothing in the info log. Adding the code below anyone please suggest a solution for ...
user avatar
0 votes
1 answer
55 views

Order is complete send order confirmation email only to "admin email address" not to customer magento 2.4.0

Email Confirmation When order is "complete" send order confirmation email only to "admin email address" not to customer for every payment method. Advance Thanks for help.
user avatar
0 votes
1 answer
74 views

Custom log file not creating in magento 2.4.0

I am trying to create a custom log and print the info message on button click in Magento 2, I have extended the monolog/loggger method but the custom log file is not created. Someone can you say what ...
user avatar
1 vote
0 answers
91 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 ...
user avatar
0 votes
1 answer
29 views

How to get the product list data through magento 2 API

when i am calling API through Postman. Only sku, position and category id is coming but How i want more detail like product name price and other details
user avatar
0 votes
1 answer
24 views

Can we use captials letters for vendor name

As per Magento 2 documentation can we use full capital letters for vendor name (i.e RSE). Also, can I get any Magento document for this?
user avatar
0 votes
1 answer
243 views

Need to call a function on button click

I need to print log info when a button is clicked. I am using the below code, please let me know what are the mistakes in my code. I am trying to call a function like below. 'on_click' => 'execute()...
user avatar
1 vote
2 answers
267 views

Magento 2.4 installation on local returning elasticsearch error

I have installed elasticsearch on local (xampp) and on http://localhost:9200/ is showing it is running. But when I trying to install magento 2.4 getting elasticsearch error. Magento installation ...
user avatar
0 votes
0 answers
49 views

SSH commands stopped working after updating Magento to 2.4.0

After updating Magento to 2.4.0, When doing any SSH command, it shows Constant name is expected. I found the issue is coming from the file vendor/magento/framework/Data/Argument/Interpreter/Constant....
user avatar
  • 1
0 votes
1 answer
31 views

Custom log file not creating

I am using Magento 2.4.0 and trying to put a custom log for my custom module by extending the \Monolog\Logger but the log file is not created in the Magentoroot/var/log path. I have attached all the ...
user avatar
0 votes
1 answer
33 views

Image resize issue

I am uploading below image for the product via backend. But it changes to below image It is clearly visible that it changes the color. I have tried using ImageMagik also. I have even tried this ...
user avatar
2 votes
1 answer
118 views

Magento2 - How to remove/disable Custom Free Shipping Method from front-end only?

I created a Custom Free Shipping method and want to disable only in front end. I try using getAreaCode() check here..but not working in Magento 2.4.0. Please help if you know.
user avatar
0 votes
0 answers
267 views

Urgent help - Place Order button is not working on click. Nothing happens and no errors logged for Magento 2.4.0

I am getting complaints from few users that when they go to Checkout and click on "Place Order" button nothing happens. I tried adding lots of debug and system logs but no errors or issues ...
user avatar
  • 179
0 votes
2 answers
200 views

Is it possible to manipulate the default Store View programmatically?

I recently tried to update some product-information on the default storeView (id 0). Instead of applying the changes to the default store, it instead applied them to the product in the next higher ...
user avatar
0 votes
1 answer
29 views

Persist Product setData

I'm using the following code to try and update a product's description: $product = $this->productRepository->getById(5); $product->setData('description', 'foo'); $this->productRepository-&...
user avatar
0 votes
1 answer
225 views

Update Product Descriptions programmatically

I'm trying to build a module that gets product-data externally and updates existing products to do so. Fetching the products hasn't been a problem,I've been able to do so in a number of ways. Updating ...
user avatar
0 votes
1 answer
304 views

Uncaught Error: Syntax error, unrecognized expression: ui/template/modal/modal-popup.html magento 2.4.0

Uncaught Error: Syntax error, unrecognized expression: ui/template/modal/modal-popup.html 2.4.0 custom.js popupTpl: "ui/template/modal/modal-popup.html", jquery.js:1508 Uncaught Error: ...
user avatar
0 votes
1 answer
407 views

How to override model-popup.html magento 2.4.0

How to override modal-popup.html h1 tag replace span tag. vendor/magento/module-ui/view/base/web/templates/modal/modal-popup.html <h1 id="modal-title-<%- data.id %>" class=...
user avatar
1 vote
1 answer
73 views

How to get selected simple product id in the configurable product from the dropdown options in Magento 2

How to get selected simple product id in the configurable product from the dropdown options in Magento 2 The below code works fine with "Swatch Option" but not work with the "Dropdown ...
user avatar
  • 1,389
0 votes
1 answer
537 views

Slow loading Category Page Magento 2.4.0

I am experiencing slow loading Category Pages using Magento 2.4.0. We have 27,000 products of which approximately 6,000 are for the Magento website. The other 21,000+ are for eBay and Amazon. Normal ...
user avatar
3 votes
1 answer
3k views

elasticsearch command error

I have installed elastic search in ubuntu. using this link but when I run this command "sudo systemctl start elasticsearch" I get the below error. Job for elasticsearch.service failed ...
user avatar
0 votes
1 answer
104 views

PRODSECBUG-2403 RCE Vulnerability patch has not been detected! (500) get in magneto 2.4.0 security scan

i am using magneto 2.4.0 . While run magento security scan get this message FAIL | Patch | RCE Vulnerability | PRODSECBUG-2403 RCE Vulnerability patch has not been detected! (500) when try to fin ...
user avatar