Questions tagged [magento2.4]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
13 views

How to fix Referenced sniff "PHPCompatibility.FunctionUse.RemovedFunctions" does not exist with PHP8.1

For php8.1 and with the latest Magento coding standards we are facing below error while running the static test from CLI and PHPStorm ERROR: Referenced sniff "PHPCompatibility.FunctionUse....
1 vote
1 answer
22 views

Upload csv file from a custom admin form issue

This is my fieldset from the uicomponent form: <fieldset name="image_form_fieldset"> <argument name="data" xsi:type="array"> <item name="...
0 votes
0 answers
9 views

CSP - Host whitelists can frequently be bypassed. Usage of nonce or hash: strict-dynamic

As per https://csp-evaluator.withgoogle.com/ whitelisted hosts can frequently be bypassed, i.e. google and adobe. Is there any way to use strict-dynamic (either with hash or nonce) for script-src ...
0 votes
1 answer
6 views

how to set the weekday in order email template magento 2.4

how to set the weekday Monday, Tuesday, Wednesday, Thursday etc in created_at_formatted example: Placed on 23.06.2022, 12:00:19 to set Placed on: Friday, 24.06.2022 {{trans 'Placed on %created_at' ...
0 votes
0 answers
6 views

In Model Edit, display filtered grid of another Model

Consider two models, Foo and Bar. The Bar model has a non-nullable field foo_id which is associated with a Foo object. <?xml version="1.0" ?> <schema xmlns:xsi="..." xsi:...
0 votes
0 answers
2 views

magento 2.4 programmatically assign simple products to grouped product

I'm facing a weird error. I'm trying to create a grouped product with its own children. The children simple products have already been created so I only need to create the grouped product and assign ...
0 votes
0 answers
13 views

Magento 2.4.0 = How to I can apply Cart Price Rule Condition in this coupon Code?

I want to Add Cart price rule condition in my custom auto generated Coupon Code. If email is equal to test@gmail.com. How to i'll do this. Please check my code. This code is working Perfectly i just ...
0 votes
0 answers
9 views

pagebulider error on backed

Working on magento 2.4.4 instance.I created a block from backend and call that block in the homepage with help of pagebuilder.After saving the page, Error filtering template:Invalid block type:Magento\...
0 votes
1 answer
18 views

Unable to retrieve the qty updated product value in the cart using Observer

I am trying to get the cart item value once the qty updated in the Cart page for the specific Item. Have used the below code to get the value, But the event triggered still its showing the old value. ...
5 votes
7 answers
8k views

Magento 2.4 Best way setup with Docker environment

What is the best way to Configure Docker environment with Magento 2.4. If some know please give me a solution.
0 votes
0 answers
8 views

Pagination not updated after product attribute filtration

I have done following plugin to filter the products by a custom attribute 'promotion_on', it works, but pagination does not reflect filtration (it shows full product lists' (without filtration) ...
0 votes
1 answer
17 views

Creating configurable product attribute with magento > 2.4

I wrote an extension to import products from an XML-file. It is working (for now), but I am using a ->save() method on the Class Magento\ConfigurableProduct\Model\Product\Type\Configurable\...
0 votes
1 answer
15 views

Magento 2 How to Upload Image For Category Using Rest API?

I want to upload a Webp image for category using Rest API. i did the same thing for product with reference of product image upload API (that support image with jpg or png extension) that's provided by ...
0 votes
0 answers
10 views

GET Products API call with paging takes increasingly longer with each page number

On behalf of an integration with a client using Magento 2, we are fetching products from their Magento system using the /v1/products GET REST API call for version 2.4.4. They have a large number of ...
0 votes
2 answers
41 views

How to remove use website option from the system.xml in Magento 2

When we create system.xml file by default "use website" checkbox option will come. Is there any way to remove that option.
0 votes
1 answer
16 views

Can we create System.xml fileds inside any custom menu in Magento 2

when we create system.xml by default those field are come under store -> configuration. can we create those fields inside any custom menu using system.xml file? is this possible?. If possible how ...
0 votes
2 answers
35 views

Magento2.4: Is it Okay to upgrade magento from 2.4.3 to 2.4.4 in ubuntu 22.04?

I want to upgrade Magento from 2.4.3 to 2.4.4 and also want to upgrade ubuntu from 20 to 22.04, should I update or not, people are getting some issues on upgrade, is there any idea how to solve those ...
0 votes
0 answers
13 views

magento 2.4 programmatically create new product with custom id

the usual procedure to create a new product via code is to call the product factory, set the new data, then save using the repository: $data = [ 'id' => $id, 'sku' => $sku, 'type' => \...
0 votes
2 answers
30 views

What is the best approach to learn magento2 as backend developer?

I want to become a certified backend Magento developer in 6 months, what path should I follow?
0 votes
1 answer
18 views

How to move breadcrumb to below main menu in custom module in magento 2

I created breadcrumb using layout.xml file but when i am go to that page breadcrumb is coming at the top of the page. what i need is below the main menu. <referenceBlock name="breadcrumbs"...
0 votes
1 answer
10 views

How to set meta title dynamically for specific category in magento 2

I want to set meta title dynamically for specific category only and i getting meta title information based on url id(?id=1). events.xml <?xml version="1.0" ?> <config xmlns:xsi=&...
0 votes
0 answers
18 views

Page Builder not working after composer installation on Magento 2.4.2

I installed PageBuilder on my Magento 2.4.2 application using composer: composer require magento/module-page-builder However, the pagebuilder is not working. I can see this in the logs: [2022-06-22 ...
0 votes
1 answer
32 views

Magento 2.4: How to change text "Order #" to "Confirmation #" in printed page that appears post order placement?

It happens too often that customers call or email, worried that there were two orders created when they only placed on order. The reason this happens is that Magento issues an order number such as ...
0 votes
1 answer
18 views

How to set Dynamic meta title for cms page in magento 2

How to set different meta title for the same page. I am getting meta title data based on the page url (?id=1)
0 votes
2 answers
36 views

Magento 2 - automatically set product as new when CREATING product only

I want Magento (2.4) to set newly created products as new for specified period of time but only when product is created and not saved after being edited... So, I would need something very similar to ...
0 votes
0 answers
28 views

Magento 2 fastly GeoIP redirect to different store but same country based on domain

We have below website and store setup within a single Magento instance Website 1 (domain1.com/uae) Store A (Country Code: AE) Website 2 (domain1.com/om) Store B (Country Code: OM) Website 3 (...
0 votes
1 answer
17 views

How to Get all Order using GraphQL in Magento 2?

I want to get all Pending order Status Orders using GraphQL, Anyone can share a complete example or module. How to I'll do that ? I have create Custom module Admin Grid, Now i want to display Only ...
0 votes
0 answers
45 views
+50

Stop redirect on session to store view

When I log in as customer on store view B, then visit store view A, most links I click on store view A result in a redirect to store view B. It only changes the domain name, not the URI using a 302. ...
0 votes
1 answer
28 views

How to change filter "and" to "or"?

version : Magento 2.4 safira I want my website show every products related to filters I choose. If I choose multi filters, I only got products fulfilled all conditions. Is there any way I can edit ...
0 votes
0 answers
35 views

Error after data-migration-tool update

After updating data-migration-tool I get this error every time I try to run the command: Warning: Could not check compatibility between Migration\Logger\Logger::addRecord(int $level, string $message,...
0 votes
1 answer
37 views

Inject dependency based on php version

I use soap to do some calls to a remote server, php has changed method signature for __doRequest between php 7.4 & 8.x, is there any di.xml tag that can conditionally change the loaded class based ...
0 votes
1 answer
37 views

Magento 2 Category rule and override the cart file by plugin

how do I can set up a rule in Magento 2 by category, If need to do something like this: I one product that is from one category is added to the cart then the customer can't add any product from ...
0 votes
2 answers
24 views

magento 2.4 add to cart multiple simple products with options

I'm trying to add to cart multiple simple products with different custom options at once. So far, I've overridden the checkout/add controller and replaced the line $this->cart->addProduct($...
0 votes
0 answers
9 views

Add Block To Layer Navigation As Filter Field

The layer navigation will display the filters when we config field use in Layer Navigation of product attribute as the document https://docs.magento.com/user-guide/catalog/navigation-layered-...
0 votes
3 answers
57 views

Back in stock alert translation and locale Magento 2.4.4

does anyone know where the Locale of the Stock alert is located in Magento 2.4.4.? I want to translate those strings in the e-mail: In stock alert! We wanted you to know that these products are now ...
0 votes
2 answers
23 views

how to change/customize minicart dropdrow instead a dropdown cart I wish having a slider from right do left at magento 2.4.4

how to change/customize minicart dropdrow... instead a dropdown cart I wish having a slider from right do left at magento 2.4.4 could someone help me ? Also please suggest me if any extension is ...
0 votes
1 answer
11 views

Magebto 2: Order place for customer using oauth authentication instead token

How to access magento 2 api for customer, guest and admin using oauth authentication.
1 vote
2 answers
29 views

Elasticsearch 7.11 connection refused using Devilbox

I'm starting the Elasticsearch 7.11 in my linux, and it works when i run curl -XGET localhost:9200 INSIDE MY LINUX. But the issue is, i'm trying to access this Elasticsearch service started in my ...
0 votes
3 answers
591 views

Magento 2.4 allow admin to add out of stock product from admin order

In magento 2.4 we can not add out of stock product while placing order from admin. I have requirement that admin should be able to order from admin side even the products are out of stock. I see the ...
1 vote
1 answer
63 views

Magento2.4: How to get Salable quantity in list.phtml file?

How can i get salable quantity in list.phtml file, I want to show label on those products which have 0 salable quantity.
0 votes
1 answer
23 views

Add custom option Programmatically in cart its not increasing quantity in cart

I am adding custom option programatically in below observer. <event name="checkout_cart_product_add_after"> <observer name="mymodule_checkout_cart_product_add_after" ...
0 votes
1 answer
27 views

Magento 2.4.4 PageBuilder SourceMaps not generated

I hope to get some help here. I am using M2.4.4 with Pagebuilder on the backend. But on Product Edit Detail I get lots of 404 errors with missing .map files. How can I disable PageBuilder SourceMaps ...
0 votes
0 answers
6 views

E-Mail Preview template cut Magento 2

When I create a transactional e-mail via Marketing --> E-Mail Templates and then click "Preview" my preview window is somehow being cut to a preview_iframe which only covers like 1/5th of ...
0 votes
2 answers
20 views

chown: invalid group: ‘:apache’

After copying all files / db on my local VB when I tried to setup permissions: find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + && find var vendor pub/static pub/media ...
0 votes
1 answer
37 views

Admin Login Issue 2.4.4

Hello i'm getting an issue after moving my live 2.4.4 website (example.com) into a staging subdomain (testing.example.com) As you can see in screen shot i have broken CSS in admin login and also not ...
0 votes
1 answer
15 views

Remaining Characters on Product Configure in Admin

I'd like to add a remaining character count to the configure product screen when an order is created through the Admin. Like it does on the customer-facing side. I have created a new module. I'd ...
0 votes
0 answers
15 views

How we can call menu subcategory page using controller/layout.xml file in magento 2

How can we call the menu subcategory page from the custom controller or can we call the subcategory using layout.xml file. is it possible to call the subcategory using layout.xml file/controller. if ...
0 votes
1 answer
15 views

How to Add Cart Price Rule Condition in Coupon Code Programmatically in Magento 2.4.0?

I want to add Add condition in Coupon Code : If Email is subscriber@gmail.com Please check attached screenshot: How to i'll do this programmatically. Please check my code everything is working fine ...
0 votes
1 answer
3k views

Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl

[root@3-6-17-40 ~]# sudo systemctl start elasticsearch.service Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service&...
0 votes
1 answer
22 views

after upgrading magento 2.2.3 to 2.4.4 all pub files return 404

I just upgraded my Magento setup from 2.2.3 to 2.4.4 and all went good but after running setup:upgrade command i tried to access the website and it load without any php error but all files serving ...

1
2 3 4 5
25