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
0 answers
2 views

How to update extension attributes saved to quote using beforeSaveAddressInformation method using plugin?

I was following this article on how to save extension attribute to quote but don't know how I can update the value. It seems like it is only set once. Any hints on how to do it? or a reference link.
user avatar
  • 4,482
0 votes
0 answers
4 views

Magento 2.4.3-p2 custom payment gateway order_status is not working

I am developing a custom online payment gateway module. I have successfully redirect users to 3rd party payment gateway and redirected back. The issue is about the order_status. In every tutorial I ...
user avatar
  • 101
0 votes
0 answers
7 views

magento 2.4 button calls cli command class

I've created a custom console command using standard magento code: namespace Vendor\Module\Console\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\...
user avatar
  • 129
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 ...
user avatar
0 votes
0 answers
9 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:...
user avatar
0 votes
1 answer
10 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 in order email example: Placed on 23.06.2022, 12:00:19 to set Placed on: Friday, 24.06.2022 {{trans 'Placed on ...
user avatar
  • 2,172
1 vote
1 answer
23 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="...
user avatar
  • 3,575
0 votes
0 answers
3 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 ...
user avatar
  • 129
0 votes
2 answers
36 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....
user avatar
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 ...
user avatar
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\...
user avatar
  • 1
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. ...
user avatar
0 votes
0 answers
9 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) ...
user avatar
0 votes
0 answers
18 views
+50

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 ...
user avatar
  • 51
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' => \...
user avatar
  • 129
0 votes
1 answer
18 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 ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
  • 2,749
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=&...
user avatar
  • 33
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\...
user avatar
  • 383
0 votes
1 answer
20 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)
user avatar
  • 33
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 ...
user avatar
0 votes
1 answer
19 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 ...
user avatar
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,...
user avatar
  • 3
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 ...
user avatar
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-...
user avatar
0 votes
1 answer
40 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 ...
user avatar
  • 2,066
0 votes
2 answers
24 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 ...
user avatar
  • 1
0 votes
2 answers
26 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($...
user avatar
  • 129
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 ...
user avatar
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 ...
user avatar
  • 93
1 vote
2 answers
30 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 ...
user avatar
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 ...
user avatar
  • 27
0 votes
2 answers
21 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 ...
user avatar
  • 1
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" ...
user avatar
  • 3,069
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.
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 33
0 votes
0 answers
53 views

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. ...
user avatar
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 ...
user avatar
  • 3
0 votes
1 answer
16 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 ...
user avatar
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"...
user avatar
  • 33
0 votes
0 answers
14 views

Magento2.4: What is the proper/best approach to debug a module?

I want to debug a Custom Consignment Module, what steps should I follow to debug that module, like using debugger are there any other ways of doing that? thanks in advance.
user avatar
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 ...
user avatar
  • 27
3 votes
1 answer
69 views

getFullActionName() returning __ on CMS & Category Pages

Anyone noticed that if you observe the event controller_action_predispatch in Magento 2.4.4 public function execute(Observer $observer) { $request = $observer->getEvent()->getRequest(); $...
user avatar
  • 4,632
0 votes
2 answers
23 views

getFirstItem is not working on collection while getData returns an array

getFirstItem is not working on a collection while getData returns a row. $product_obj = $objectManager->create('Magento\Catalog\Model\Product'); $productCollection = $product_obj->...
user avatar
0 votes
1 answer
21 views

magento-patches: Permission denied

Magento 2.4.3 Installed quality-patches via composer require magento/quality-patches Trying to apply a patch via ./vendor/bin/magento-patches apply MDVA-40311 Getting error: ./vendor/bin/magento-...
user avatar
  • 15
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 (...
user avatar
1 vote
1 answer
11 views

Add extra text in customer backend Address Book - Magento 2.4

we are using Magento 2.4.4. Customers always get confused when they try to set a new shipping address. They by the logic first need to add a new address and then only can select a different shipping ...
user avatar
  • 27
1 vote
0 answers
15 views

How to we can send Coupon Code For Next Order Discount in Magento 2.4.0?

I want to send Coupon Code for Next Order Discount. When any customer will place an order then customer will received a unique Coupon Code For Next Order. anyone have an idea how to i'll do this ?
user avatar

1
2 3 4 5
25