Skip to main content

Questions tagged [magento2.4.1]

Questions specific to Magento Community Edition version 2.4.1

149 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
420 views

Magento 2 : shipped items not appearing in email template

{{layout handle="sales_email_order_shipment_items" shipment_id=$shipment_id order_id=$order_id}} is used to render shipped items in email template but no items appear in email template. I ...
devhs's user avatar
  • 507
4 votes
1 answer
351 views

Issues with the `sales_order_item_cancel` event in Magento 2.4.1

I have made an API which cancel and order. This is part of the code: // \Magento\Sales\Api\OrderManagementInterface $this->orderManagement->cancel($order->getId()); The above code will ...
Attila Naghi's user avatar
  • 4,023
3 votes
0 answers
964 views

How to create modifier for admin customer form in magento 2?

I have created a new virtualType to change newly added customer attribute value in customer form. But I am unable to modify attribute data. What is wrong with the below code?
Mahammad's user avatar
2 votes
1 answer
36 views

Template hints showing path from cache instead of original file path

In Vanilla magento2, the file path showing original file path as you can see in below screenshot the file path is showing from vendor after doc root. In one of my working project where cache path is ...
Rajkumar Vellaiswamy's user avatar
2 votes
2 answers
2k views

Magento 2.4.1 PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 176128 bytes)

This error(Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in vendor/magento/framework/Serialize/Serializer/Json.php on line 37) is populated when we access the ...
Vitts's user avatar
  • 21
2 votes
0 answers
740 views

2.4.1: Elasticsearch/MySQL memory spikes leading to SWAP

Low traffic site on 2.4.1, elasticsearch, 16GB RAM, but memory usage seems to climb constantly, with CPU usage spiking, until mysql and elastic are basically running in SWAP. Site was running fine on ...
eddhall's user avatar
  • 379
2 votes
1 answer
17k views

magento 2.4 Impossible to process constructor argument Parameter #0 [ <required> Magento\Framework\Search\Adapter\Mysql\Mapper $mapper ]

I am getting below error Impossible to process constructor argument Parameter #0 [ Magento\Framework\Search\Adapter\Mysql\Mapper $mapper ] of Amasty\Shopby\Model\Search\Adapter\Mysql\...
user1799722's user avatar
2 votes
0 answers
89 views

Multiple email attachments in Magento 2.4.1

How to send Multiple email attachments in mail Magento 2.4.1? I tried etc\di.xml <preference for="\Magento\Framework\Mail\Template\TransportBuilder" type="\Vendor\Module\Magento\Mail\...
naveen's user avatar
  • 21
1 vote
1 answer
26 views

Grid is not loading showing just the spinner without errors in logs or console

I'm trying to follow the guide https://developer.adobe.com/commerce/php/development/components/add-admin-grid/ to add a custom admin grid however I'm stuck in a situation where there's no error and ...
gabtzi's user avatar
  • 666
1 vote
0 answers
228 views

script injected in magento 2.4.1 at shipping_policy_content

we found a script like this in shipping/shipping_policy/shipping_policy_content <script id="shopcart">((g,r,w,s,t,o) => {if(g.location.href.indexOf(atob(t))>-1){a=r.createElement(...
gabtzi's user avatar
  • 666
1 vote
0 answers
65 views

Custom filter search problem

I am trying to add custom filter to layer navigation. Basically I didn't have any problem with displaying it on navigation sidebar but collection filtering is now the problem. I have filter which is ...
Milos Stambolija's user avatar
1 vote
0 answers
202 views

Installing Magento 2.4.1-p1 on a developer's local getting an error after running static-content:deploy -f

I'm installing Magento 2.4.1-p1 on a developers local using docker to create the environment. I have installed Magento and imported the DB and run: #This run just fine composer update -vvv #This run ...
rlock's user avatar
  • 11
1 vote
1 answer
387 views

How to change Newsletter subscription message on order success page

When a new order is create and the customer has checked the Subscribe to Newsletter box, below is how the checkout/onepage/success page appears. I will like to change the text Thank you for your ...
Inducesmile's user avatar
1 vote
0 answers
232 views

Magento 2 - How to get newsletter subscribers email id in transactional email templates without @domain.com

I am using the following script to add in my email template, Hi {{var subscriber.getSubscriberEmail()}} Eg: Hi [email protected] I want to name only, how to remove @domain.com I need: Hi abc123
zus's user avatar
  • 175
1 vote
0 answers
1k views

Magento 2.4.1 - "No such entity with customerid = "

I have an error on Magento 2.4.1 during the checkout process. Basically, I try to place an order as a guest, having Store > Checkout > Checkout Options > Allow Guest Checkout = Yes, but I get ...
Kloppo's user avatar
  • 95
1 vote
1 answer
462 views

Magento 2 form key changes on going from front-end to back-end

I have a button on front-end category pages for editing these pages. On click it redirects to dashboard rather than category edit form in admin side. $objectManager = \Magento\Framework\App\...
aich.khalid's user avatar
1 vote
1 answer
855 views

Frontend Grid Filters not Working in magento 2.4.2

I am getting this after a click on the Apply Filters Button in the frontend grid. Uncaught TypeError: $(...).notification is not a function at UiClass.apply (filters.js:203) at HTMLButtonElement. (...
Abhay Agrawal's user avatar
1 vote
1 answer
225 views

How to get third party module block function to custom module block

Third party module Block: Path: app\code\Amasty\Storelocator\Block\View\Attributes.php <?php /** * @author Amasty Team * @copyright Copyright (c) 2021 Amasty (https://www.amasty.com) * @package ...
zus's user avatar
  • 175
1 vote
1 answer
176 views

The product's required option(s) weren't entered. Make sure the options are entered and try again

I am getting the standard error when the product requires options to be selected before adding to the quote/cart. However, it seems the error is displaying multiple times to match the number of ...
ozmo's user avatar
  • 87
1 vote
1 answer
1k views

Magento 2.4: How to create Observer for "after save" event in custom module

I am using the custom module, in the backend, there are two fields, Field 1 manually entered Field 2 get the values based on Field 1. Here I want to get the Field 1 value in Observer after click save, ...
zus's user avatar
  • 175
1 vote
0 answers
121 views

How to add images in js

How to include images in js, My code : if (firstStore.address && firstStore.state && firstStore.zip && firstStore.store_hours_weekdays && firstStore....
zus's user avatar
  • 175
1 vote
2 answers
54 views

Backend not working after changing the docroot to /pub

I have recently changed the docroot of Magento to /pub. I followed the official guide and then when I see the images are all broken and the admin URL is not working. It shows a page not found in the ...
shivam's user avatar
  • 23
1 vote
0 answers
494 views

layered navigation not working with custom filters magento 2.4

layered navigation is not working with custom Collection filters in Magento 2.4 File Name - Magento\Catalog\Model\Layer\Category\CollectionFilter; $collection->addAttributeToSelect($this->...
user2505121's user avatar
1 vote
0 answers
50 views

Magento 2.4.1 EE checkout and cart page blank with 400 products

In magento2.4.1 EE I have added 400 products to cart. I click on proceed to checkout, getting blank page and cart page is also blank. My php_value memory_limit 756M php_value max_execution_time 18000 ...
Baljit Kaur's user avatar
1 vote
2 answers
354 views

Magento 2 - How to remove products from Wishlist if click again same Wishlist icon?

How to remove the products from wishlist if again click the wishlist icon? How to implement on my wishlist icon -> https://magento.stackexchange.com/a/166263/57334
zus's user avatar
  • 175
1 vote
0 answers
1k views

Custom Product Collection not Getting Filtered by Layered Navigation in Magento 2.4.1

I am trying to create a page that show a list of products that have price which is greater than some specific amount and i also want to add Layered navigation for filter these product collection based ...
Nikunj Rawat's user avatar
1 vote
0 answers
86 views

Magento 2 common css variables not applied for third party modules

I am using a custom theme, declared common variables under, app\design\frontend\Zero\my_theme\web\css\source\components 1) _variables.less Eg: @h1__font-size: 48px !important; 2) common.less Eg: h1 { ...
zus's user avatar
  • 175
1 vote
1 answer
927 views

How to add product to Wishlist without redirecting and without page refresh using ajax on Listing page

My controller: app\code\Vendor\Mymodule\Controller\Index\Wishlist.php <?php namespace Vendor\Mymodule\Controller\Index; class Wishlist extends \Magento\Framework\App\Action\Action { public ...
zus's user avatar
  • 175
1 vote
0 answers
371 views

Display custom options on category page and allow add to cart

I want to display product's custom option on listing page and want to allow customer to add to cart from the category listing page. I have added Qty field and following code to display the custom ...
Jackson Wyss's user avatar
1 vote
0 answers
1k views

Default sorting options Sort by 'rating' not working in Magento 2.4.1 in ElasticSearch 7.x

I have installed Magento 2.4.1 Open source edition with Elastic Search 7.x version. Magento admin -> Stores -> Attributes -> Product Find default 'rating' attribute and set 'Use in filter ...
sandip's user avatar
  • 4,014
1 vote
1 answer
597 views

Script injection below body tag in Magento 2.4.1

I upgraded our Magento from 1.9 to 2.4.1 after we found malware that was trying copy customer credit cards before allowing the customer to use PayPal. I used Magento's migration tools to copy data to ...
Kiwi-9080's user avatar
1 vote
2 answers
374 views

magento 2.4 : customer session get destroyed after payment

I am using magento 2.4.1, i have used plugin for payment gateway like - ccavenues , payu but issues it that after payment it gets redirected to "checkout/cart/" While debugging it seems ...
user1799722's user avatar
1 vote
0 answers
227 views

Magento 2.4.1 Uncaught TypeError: Cannot read property 'imageTemplate' of undefined

My Magento store was working fine before updating to the latest version of Magento then I started getting this error and now none of the images load and the checkout doesn't work anymore. Uncaught ...
Prinston Hicks's user avatar
1 vote
1 answer
263 views

How to Add new Country In Magento 2.4.1

How to Add new Country In Magento 2.4.1
milan's user avatar
  • 19
1 vote
1 answer
758 views

Magento 2 Remove configurable products from product listing page programatically

I am trying to remove configurable products from product collection, as a result products are being filtered correctly but pagination is not working as expected and showing wrong count. For example ...
DEEP JOSHI's user avatar
0 votes
1 answer
60 views

HTTP to HTTPS redirection

My site won't automatically redirect from HTTP to HTTPS. Have gone through the forums and documentations but can't figure it out so posting. I am quite newbie to Magento. I am using Magento ver. 2.4.1....
Debtanu B's user avatar
0 votes
1 answer
481 views

how do I create a custom GraphQL query that fetches a list of products in Magento 2.4.1

In my schema.graphqls file I've created this Query type Query { getLinkedProductsByGroups(groups: [String]): [LinkedProductsByGroup] @resolver(class: "Vendor\\ProductDisplay\\Model\\Resolver\\...
gabtzi's user avatar
  • 666
0 votes
1 answer
482 views

In magento 2 Clear Local Storage key value On Update Cart

in magento 2 i want to clear local storage key (local_key) value on any cart changes like product add,update,delete in cart
we testers's user avatar
0 votes
1 answer
340 views

How to show "use default values" on all stores view in magento2?

I am facing an issue. I want to show "use default values" on all store view in special price from and to fields only. Suppose I have a website with two stores. "use default values"...
Zahid Hussain Magento's user avatar
0 votes
2 answers
155 views

Cron job generates a different output compared with a controller in Magento 2.4.1

I implemented a custom plugin that loops through all products and generates a CSV file. Even if the execute() function has the same code in both files (cron job and controller), the CSV file generated ...
user avatar
0 votes
0 answers
349 views

How to add custom attributes to checkout summary magento2.4

I am trying to display a product attribute value I have found the template where it is displayed: vendor/magento/module-checkout/view/frontend/web/template/summary/item/details.html I override this ...
kiran's user avatar
  • 597
0 votes
3 answers
113 views

How to remove and change My Account Navigation

I am trying to remove some tabs https://prnt.sc/I0JvtmM41ROP I am using below file path and code app/design/frontend/vendorname/themename/Magento_Theme/layout/default.xml <!-- Downloadable ...
kiran's user avatar
  • 597
0 votes
2 answers
38 views

How to move description in list page magento 2.4

I want to move the sku after description in list page. https://prnt.sc/DFlrsqO-tC4A
kiran's user avatar
  • 597
0 votes
1 answer
356 views

Magento 2.4.4 upgrade after customer login is not working?

I have upgraded the site from magento 2.4.2 to magento 2.4.4. After the upgrade, the customer login is working fine, but after logging in, if I move to any other pages, the customer logs out ...
pankaj parmar's user avatar
0 votes
1 answer
367 views

Find all duplicate product name

Looking to find all duplicate product names, Tried to find out with group by but it not giving duplicate values,its eliminate duplicates values, $collection = $this->productFactory->create()->...
shyam's user avatar
  • 461
0 votes
1 answer
890 views

Customer success messages disappear too fast in magento 2

Once the customer completed the registration, the success message hide too fast? Kindly guide me to any solution to sort it out?
Jaisa's user avatar
  • 2,626
0 votes
2 answers
553 views

How to manage SHA-1 passwords in Magento 2

We are migrating customers from ERP to Magento 2. In ERP passwords are in SHA-1 format while Magento does not support that. We have 2 options - Either reset manually OR creation of a custom script to ...
Rashi Goyal's user avatar
0 votes
2 answers
45 views

Product page error when i enabled the development mode in magento 2

Magento version: 2.4.1 theme: codazon when Magento is in production mode everything works fine but when I enable development mode, I can't access the product page and I got bellow error: 1 exception(...
Majid Imanzade's user avatar
0 votes
1 answer
726 views

Magento 2 No quote data for Checkout Session in custom api

\Magento\Checkout\Model\Session\Proxy $checkoutSession $quoteId = $this->checkoutSession->getQuote()->getId(); When accessing this code from rest api $quoteId is null, but when accessed from ...
Vishwanath Kharabe's user avatar
0 votes
0 answers
197 views

Magento 2.4.1 controller cache control

It seems that on my Magento 2 instance the controller methods are somehow cached because I am doing changes, compiling the code, but they are not visible when they are called. I even added a die() ...
user avatar