Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
10 views

Magento 2 custom API working for Bearer Token and not working for OAuth1.0

I have created a custom API endpoint to retrieve data from a custom table in magento 2. Webapi.xml file content <route url="/V1/bs-customer-price-information/:email/:website_id" method=&...
Mujahidh's user avatar
  • 2,793
0 votes
1 answer
27 views

Show Product Salable Quantity, on Category view

I want to display Product Salable Quantity, on Category view page. On \app\design\frontend\Smartwave\porto\Magento_Catalog\templates\product\list.phtml added the follow code: <?php $objectManager = ...
Hector Solutions's user avatar
0 votes
0 answers
4 views

Time to live error

In my magento (2.4.6-p5, with Varnish and Redis) I keep getting following error in exception.log: [2024-05-15T18:23:57.623784+00:00] main.CRITICAL: InvalidArgumentException: Time to live is a ...
Twisted_Jar's user avatar
0 votes
0 answers
9 views

What is this empty popup in the braintree virtual terminal page

I noticed this empty popup in the braintree virtual terminal page. Does anybody know what it is? Is it supposed to be something.
Haarish Infant Raj's user avatar
1 vote
2 answers
19 views

magento 2.4 login page meta title does not get localized

I have a multi store view magento where each store view has its own language but I have an issue with translating some pages. For regular pages (aka pages that I create via backend in Content > ...
Lou Nik's user avatar
  • 453
0 votes
2 answers
53 views

switcherConfig not working with tab layout but works with collapsible

I am trying to add a switcherConfig on one of my ui component field. Its a simple show/hide rule based on value of one field. This code Works: <?xml version="1.0" ?> <form xmlns:xsi=...
Jaimin Sutariya's user avatar
0 votes
0 answers
33 views

Does observer runs in the background or frontend

I am trying to understand about the events and observers in magento. I created an observer to listen to an event in the checkout page. I have configured it and it triggers after the place order button ...
Haarish Infant Raj's user avatar
0 votes
1 answer
12 views

magento 2.4 is there a way to check whether customer is logged in after registration?

in my magento 2.4.4 I have placed two observers, one for intercepting the registration process (customer_register_success) and another one to intercept when the user logs in(customer_login). What I ...
Lou Nik's user avatar
  • 453
0 votes
0 answers
13 views

magento246: getting wrong permission for category?

I have set category permission to deny for non-logged-in users and in the database values are saved accordingly. but when I search product on front end it shows the wrong permission. \Magento\...
Afzal Arshad's user avatar
0 votes
0 answers
14 views

Magento 2 render custom template same as Magento_CatalogWidget::product/widget/content/grid.phtml by from ajax controller

I'm trying to render products the same as Magento_CatalogWidget::product/widget/content/grid.phtml displaying. I have created a custom ajax controller. $productCollection->...
Arun's user avatar
  • 1
0 votes
0 answers
11 views

(Magento 2.4) Add custom filtering to product attribute in graphql

I'd like to add a filter in the graphQl product query like this products( pageSize: 5 currentPage: 1 filter: { status: { eq: "1" } ...
Erasmo's user avatar
  • 1
0 votes
1 answer
31 views

Can we configure webhooks in Magento using its REST API

I'm currently exploring the capabilities of Magento's REST API for integrating with external systems, and I'm interested in setting up webhooks to receive real-time notifications for specific events ...
Ibrar Akhtar's user avatar
0 votes
1 answer
12 views

Products sort by Price not woking correctly with simple and configurable products

Recently, a client noticed a problem with the products sort by Price function in the category page. For example, the user selects Sort by Price Ascending. The system will return the configurable ...
Dimitra's user avatar
1 vote
1 answer
19 views

Create Rule in Magento 2.4 If a combined $X amount of items in Y category, then get free ship

I have been searching for days but cannot find a way to do this. If you know of an extension to pull this off, I'm open to it. We want to offer a coupon code. If you have $100 or more of products in X ...
David S.'s user avatar
0 votes
1 answer
23 views

Magento246:Product is still visilble for non-logged in customers after setting category permission to logged in user only?

I created a test category called Test added a test product and set category permission to Logged in user only. so the category and product shouldn't be visible to non-logged-in customers. but when I ...
Afzal Arshad's user avatar
0 votes
0 answers
9 views

Customize tier module traductions

Magento documentation says How the application applies locales When the locale is changed for a store, the application searches and applies translations in the corresponding dictionaries in the ...
Claims's user avatar
  • 1,209
0 votes
2 answers
34 views

Magento2.4.6: How to apply category filter on catalog search results product collection?

I want to exclude specific category products from the search results collection, for example, if a customer is not logged in I don't want to show products in search results whose category id is 35. ...
Afzal Arshad's user avatar
0 votes
0 answers
12 views

Magento 2 : Print Invoice with Base Currency in Separate Line

In my magento, I have EUR as base currency and USD as additional currency. In backend, everything is working fine, I see the orders with both currencies. However, when I print the invoice from ...
Lou Nik's user avatar
  • 453
0 votes
0 answers
33 views

Magento 2 : How to click SYSTEM button on the dashboard using Python's Selenium

After clicking on the SYSTEM button in the title, I want to click on the Import button to transition to the page, but I get an error because I can't find the element. How do I resolve the error? The ...
yahoo70515's user avatar
0 votes
0 answers
16 views

How to fix Magento's built-in session management that conflict with how GTM handles sessions causing session regeneration issue

Anyone have this issue before, I notices even in a freshly installed magento 2.4.4p4 commerce edition this issue occur Let me know if this is the correct page to post this issue or I should post this ...
Mohd Farhan Bin Ramli's user avatar
4 votes
3 answers
368 views

Magento 2.4.7 - Advice setting up csp

I am trying to get my head around csp after upgrading Magento to 2.4.7. Prior to this, it was disabled. I have installed a custom module successfully and added a csp_whitelist.xml file with the ...
Ian's user avatar
  • 81
0 votes
0 answers
22 views

Magento 2 : Pager not work in my custom collection

I have a custom collection for ordered products for a customer. $connection = $this->resourceConnection->getConnection(\Magento\Framework\App\ResourceConnection::DEFAULT_CONNECTION); $...
Mujahidh's user avatar
  • 2,793
0 votes
0 answers
25 views

can not install magento 2.4.2 in sub directory

facing issue to install magento 2.4.2 in sub directory - because in magento 2.4.2 and higher website root file is different than it was in magento 2.4.1 or lower (like 2.3). magento 2.4.2 or higher ...
Alon Sabsay's user avatar
0 votes
0 answers
18 views

Upgrading from Magento 2.3.7-pt to Magento 2.4.0

I've been trying to upgrade my magento version from 2.3.7-p2 to 2.4.0 I've double checked all system requirements and everything is good. When I run composer update I get this error: Your requirements ...
Christian's user avatar
0 votes
2 answers
41 views

Jquery ajax call set value to product attribute not saved in magento2

I created product attributes based on the selection of attribute yes/no I am calling Ajax to get value and set it in the editor custom attributes but after setting value by jQuery and saving the ...
Devidas's user avatar
  • 3,358
0 votes
0 answers
10 views

How to set custom menu items active in top menu depending on URL visited (menu caching issues)?

When I add custom menu items to the top menu (where product categories are placed) they are not set as active or are always active, depending on logic I implement for checking active state, no matter ...
player's user avatar
  • 33
0 votes
0 answers
14 views

Create multiple Configurable Products that redirect to the Parent Product

How do I create a parent product with multiple variants e.g. Colour: Oak, Black Oak. Then have both show as individual products on the category page but when clicked, they direct to the parent page ...
Grant Davies's user avatar
0 votes
0 answers
17 views

Optimise Category Page Speed

The category page takes between 4 to 5 seconds to load, occasionally extending to 6 or 7 seconds. The page doesn't have a large number of product listings, with a maximum of around 50, but pagination ...
usman's user avatar
  • 440
0 votes
3 answers
66 views

Create New Custom Email Header Template in magento2?

How to create a New Custom Email Header Template in magento2 and load it into the emails? How to create multiple headers.
Devidas's user avatar
  • 3,358
0 votes
0 answers
15 views

magento 2.4.6 snippet [$block, 'toHtml'] not working

Can anybody explain this magento 2.4.6 statement from core file ? $alertGrid = $this->_appState->emulateAreaCode( Area::AREA_FRONTEND, [$block, 'toHtml'] ); In the above ...
shankar boss's user avatar
  • 1,453
0 votes
0 answers
14 views

Help Finding Extension: Surcharge on product (M2)

We sell cleaning chemicals (B2B) and the state requires a VOC tax for each sale, which must be shown separately. For accounting reasons, we are looking for a more specialised solution. Simply charging ...
Phil's user avatar
  • 1
0 votes
1 answer
11 views

Magento 2 static content deploy duplications

I have Magento 2 installation with a lot of websites and one website has language which other websites don't. When I execute setup:static-content:deploy it generates the language for all store views I ...
Duddy Woody's user avatar
0 votes
1 answer
49 views

FedEx RESTful APIs patch for Magento ver. 2.3.4

Getting email from FedEx Magento ver. 2.3.4 Please be reminded that on and from 15 May 2024 our support for your connection with FedEx Web Services will end and be replaced by the new FedEx RESTful ...
Manoj Pal's user avatar
  • 1,047
0 votes
0 answers
15 views

magento 2.4 custom query bind values

on my magento I need to run a custom query to fix some data. I'm trying to write my queries using Magento standard way as much as possible. The code is pretty simple: first I check if there are any ...
Lou Nik's user avatar
  • 453
0 votes
1 answer
40 views

Magento 2 : Reorder Throw Exception

After successful purchase in the order details page when i click reorder option it throw below exception TypeError: Magento\Framework\DataObject::__construct(): Argument #1 ($data) must be of type ...
ARUL.K's user avatar
  • 3
0 votes
2 answers
22 views

Editor CMS block/page remove attribut onclick

I'm trying to save code like this in my CMS block: <p class="bold-text" onclick="sayhello()">Hello world</p> When I look at the result by clicking on "Show/Hide ...
Sebastien's user avatar
0 votes
2 answers
37 views

'Magento_Customer/js/customer-data' javascript does not get cart items of customer

I have this code as below in a custom module define([ 'rjsResolver', 'Magento_Customer/js/customer-data', 'jquery' ], function (resolver, customerData, $) { 'use strict'; return ...
Mohd Farhan Bin Ramli's user avatar
0 votes
0 answers
6 views

Search conditions returning no results / breaking

I have a couple custom modules, one for adding eav attributes to customers, and I had a module that filtered those customers based on the attribute values, which 'was' working. When I say "filter&...
Jon's user avatar
  • 295
0 votes
0 answers
8 views

magento 2 get product details based on store view by using order item id

How can we get the product details based on store view by using order item [product_id] in magento 2.4.6 ?
shankar boss's user avatar
  • 1,453
0 votes
1 answer
50 views

Add custom mp4 file to Fotorama but without using iframe - Magento 2.4

We would like to load a custom mp4 file on the productpage, directly into the fotorama, but without using a iframe. We do not want to use the YouTube or Vimeo method. We already found the solution to ...
JGeer's user avatar
  • 1,418
0 votes
1 answer
56 views

Shipping information block and customer email

I'm relatively new to Magento development and we're currently using version 2.4.5-p1. We recently migrated from Magento 1 and I'm now working on customizing the new order email. So far, I've ...
Sam's user avatar
  • 1
0 votes
1 answer
37 views

Redirect the customer to Previous Page after registration in Magento 2.4

I want to create one functionality for the customer registration process. if registration is initiated from a particular page, then it should redirect to the same page after registration completion ...
Mitul Vadalia's user avatar
0 votes
1 answer
29 views

.css and .js files only loading when refreshing page after deploy

Whenever I'm deploying updates on our Magento 2 live environment, I run into the issue that on first page load, the .min.css files and sometimes the .js/.min.js files aren't loading (the browser runs ...
Pascal F's user avatar
0 votes
0 answers
14 views

How to use mailchimp for Magento 2.4 Customer Registration mails

Im using Magento 2.4 and all order confirmation mails are triggered from mailchimp.How to trigger Customer Registration Email from Mailchimp
Jothi Subramanian's user avatar
0 votes
1 answer
23 views

Integration page in admin panel not show my custom API

Integration page in admin panel not show my custom API in the list, because i need to allow my endpoint for particular integration user not for authenticated user or is there any other way to achieve ...
ARUL.K's user avatar
  • 3
0 votes
0 answers
13 views

I want to show 1 and partially the next image in the fotorama main gallery of Magento

In the PDP, I want to show the first main image and the partial second image in the product gallery of fotorama for Magento 2.4.6. Is this achievable?
referenceFrontend's user avatar
0 votes
0 answers
19 views

Cart crossell products on PDP

I'm using magento 2.4.6 and I want display the crosssell products that is set using cart-product rule on PDP. Is this possible?
referenceFrontend's user avatar
0 votes
0 answers
37 views

How to pass value of custom dynamicRows select field in category_form.xml

I want to save the data in of a custom dynamicrows field. which i added on admin category page. my custom_form.xml: <?xml version="1.0"?> <form xmlns:xsi="http://www.w3.org/...
section_active's user avatar
0 votes
1 answer
61 views

Check Email Functionality in Register Form in Magento 2.4.6

I want to implement the functionality for checking email in the real-time in the customer register form, without submitting the form, need to check whether the email is already there or not and show ...
Mitul Vadalia's user avatar
0 votes
0 answers
12 views

Test class with collection and save

i'm trying to test if a class method is doing her job. Basically here it is. public function __construct(SaveCommand $saveCommand, SubscriptionData $entityDataFactory, ...
Claims's user avatar
  • 1,209

1
2 3 4 5
36