Questions tagged [magento2.4.1]
The magento2.4.1 tag has no usage guidance.
271
questions
0
votes
1
answer
44
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....
2
votes
1
answer
2k
views
How to upgrade Magento from 2.4.1 to 2.4.6
I'm actually on Magento CE version 2.4.1
I need to update it to 2.4.6 (latest version)
I'm in live (I don't have a staging enviroment)
Is there someone who can guide me step to step in upgrading?
...
1
vote
0
answers
125
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(...
0
votes
1
answer
114
views
main.CRITICAL: Exception message: CRLF injection detected Trace:
I'm eoncountering this issue on my Magento 2.4.1 website:
when trying to make an order, by some devices (like my smartphone) at the url https://mywebsite.com/checkout/#shipping the page remains ...
0
votes
0
answers
45
views
How to change navigation bar font type
I'm trying to change the font type of the navigation bar in Magento 2.4.1. Is there a possible way?
0
votes
1
answer
273
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\\...
0
votes
0
answers
34
views
In Magento 2.4.1 How to Add custom fields to dashboard diagram totals and remove Tax, Shipping?
I want to Remove Tax and Shipping and replace them with Quantity, Subtotal, Extra Fee, Total, etc
0
votes
1
answer
299
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
0
votes
1
answer
48
views
Magento Class "string" does not exists - Put email Transport Object into RabbitMQ queue
Magento 2.4.4-p1 EE
PHP 8.1.7
I want to put email Transport Object into RabbitMQ queue.
communication.xml
<topic name="my_topic" request="Magento\Email\Model\Transport\Interceptor&...
0
votes
0
answers
37
views
Magento 2 get tracking infomation is empty
i am using this for sending email
<event name="sales_order_shipment_save_after">
<observer name="sales_order_shipment_after"
instance="...
0
votes
1
answer
260
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"...
1
vote
2
answers
239
views
Change Billing Address Telephone Input Type
I am trying to change the telephone input type from "text" to "tel", so that on mobile devices a number pad will display. I have tried to implement the solution outlined https://...
0
votes
2
answers
126
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 ...
0
votes
1
answer
163
views
I need filter products by discount percentage in layared navigation (category page)
I have applied several price cart rules, I would like to see those frontend rules that work as a filter for discounted products. Someone can help me?
1
vote
0
answers
23
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 ...
0
votes
0
answers
30
views
Add Atribute to "Bulk Images, Price and Quantity" in configurable products
I would like to add a custom attribute to the configurable products as a unique value per product. (Step 3 Bulk Images, Price and Quantity) It now lets me set images, price and quantity in the product ...
1
vote
0
answers
57
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 ...
0
votes
1
answer
213
views
How to fix Download the Upgrade Compatibility Tool error?
i'm trying to download the upgrade compatibility tool and tried it in downloading in HTML folder or any other project but always it gives the same error.
Any idea
0
votes
1
answer
123
views
Modify "Gift Wrapping for Order" Text in Order Email
I am trying to change the text that says "Gift Wrapping for Order" to "Gift Messaging" in the order confirmation email that is sent out.
I have figured out where the copy needs to ...
0
votes
0
answers
304
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 ...
0
votes
3
answers
106
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 ...
0
votes
2
answers
36
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
0
votes
1
answer
273
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 ...
0
votes
1
answer
207
views
Modify Braintree Core Files
I'm trying to make some minor tweaks to two files within the PayPal_Braintree module. I've added them to my custom theme, but they do not seem to take. I think my file path is correct ... but maybe ...
0
votes
1
answer
142
views
Magento2.4: How can i display Product Admin Grid in Report Menu?
I want to display the " product grid" from the catalog menu to in the "Reports Menu" in the admin panel, anyone how can I achieve this task? which means I want to access the ...
0
votes
1
answer
667
views
Magento2.4: Setup:install command error
ubuntu 22.04 and Magento2.4.3, php7.4
when i try setup:install Command i get following errors, any idea why is this happening?
below is my commands
sudo composer create-project --repository-url=https:/...
1
vote
2
answers
912
views
Magento2.4: Display custom CMS block header and footer on homepage
Add a new CMS block on top of the homepage (header) and another one at the bottom of the homepage (footer) using XML layout.
1
vote
1
answer
879
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
326
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()->...
0
votes
1
answer
697
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?
1
vote
1
answer
2k
views
undefined constant SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES
I am trying to access frontend of magento 2.4.3
But getting
Use of undefined constant
SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES - assumed
'SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES' ...
0
votes
2
answers
451
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 ...
1
vote
3
answers
232
views
error while magento installation
Deprecated Functionality: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in F:\xampp\htdocs\magento\vendor\...
0
votes
2
answers
40
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(...
0
votes
1
answer
596
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 ...
0
votes
1
answer
198
views
Customer session variables wiped off when FPC is used
I am working on a Magento 2.4.1 extension that has some special requests where I need your advice on how to handle some technical aspects in a better way.
Basically, when a user logs in or a visitor ...
0
votes
1
answer
549
views
CSS Source Maps are empty after grunt refresh
On Magento 2.4.1, Developer Mode and SSR after running
grunt clean
grunt exec
grunt less
# OR
grunt refresh
Generated Source Maps looks like this
{"version":3,"sources":[],"...
0
votes
0
answers
136
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() ...
1
vote
0
answers
186
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 ...
0
votes
0
answers
104
views
Magento 2 - Get order collection of current month and placed by new and older customer
I want to get the two order collections by new and older customers for the current month.
Please suggest the proper way, I just want the count of orders, Not need all the details of an order.
Thanks ...
0
votes
1
answer
678
views
How to get the customer email by customer id in magento2 admin grid
How to get the customer email by customer id in magento2 admin grid. in my table I have customer id based on customer id get the email id in the admin custom grid.
namespace Vendor\Module\Model\...
0
votes
1
answer
107
views
Is magento2.4.1 supports the elastic search 7.16.1 version
Is magento2.4.1 supports the elastic search 7.16.1 version. please update it
Thanks
1
vote
1
answer
577
views
How to verify the email exist or not in magento2 api
How to verify the email exist or not using 3rd party api in magento2 while customer registration
thanks
1
vote
1
answer
171
views
Remaining Characters on Gift Message
I am trying to use Magento's RemainingCharacters Widget on the gift options message field. I want to limit the amount of characters in this field to 200. It doesn't even appear to be firing. What am I ...
0
votes
1
answer
243
views
Which tables need to restore to get backup of all customers in magento 2.4.1
I am using magneto 2.4.1. Accidently I have deleted all my customer lists but I have a backup. So now which tables I need to restore to get back those all customer list.
0
votes
1
answer
343
views
Magento 2 Add CAPTCHA to login form in createblock
I am building a widget to allow the Login form to display on a CMS page. I am able to get the form to display, but when I try to login, I am redirected to the customer/account page and get the error &...
0
votes
1
answer
519
views
Magento 2 : PDF print invoice logo position change
I want to change the position of the logo in the PDF print invoice logo.
I have to use Magento ver. 2.4.1
please help me
thanks
1
vote
1
answer
304
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 ...
0
votes
1
answer
1k
views
magento2.4.1 setup:di compile error
I got a small problem when compiling magento,i.e,
C:\xampp\htdocs\magento-ce-2.4.1-2020-09-25-04-08-02>php -dmemory_limit=4G bin/magento setup:di:compile
Compilation was started.
Plugin list ...
0
votes
1
answer
72
views
magento compile time error
C:\xampp\htdocs\magento-ce-2.4.1-2020-09-25-04-08-02>php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/9 [===>------------------------] 11% 4 secs 96.0 ...