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
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
32 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
18 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
0 votes
0 answers
20 views

Can i show separate product in cart if has custom options?

I have simple product with custom option in backend. I have added 2 add to cart buttons in product page . one will add with custom options and one will add product without custom options. If customer ...
user avatar
  • 3,069
1 vote
1 answer
22 views

Table Rates Shipping - UAE States Code issue

I am adding Custom shipping rates according to state of UAE in Table rates shipping method. But getting an error because region or state is incorrect. anyone have idea which is correct region/state ...
user avatar
0 votes
0 answers
20 views

Magento 2.4.3p1 - Redis keeps growing

So, we went live with a new m2 shop last week. It all worked well in our develop environment. Since we dockerized the m2 installation, I wasnt expecting much trouble. But our redis cache keeps growing ...
user avatar
  • 383
0 votes
0 answers
22 views

Magento 2 Cybersource paypal express getting unauthorized - Authentication failed

I am using cybersource payment gateway plugin, configured paypal express checkout and enabled. Getting Authentication Failed 'error and it's not redirecting to payment page. Please give me the ...
user avatar
0 votes
0 answers
15 views

Attention Something went wrong!! in every admin page

When I login into admin side at that time shows me a popup with "Attention Something went wrong!!" I have installed Magento 2.4.X and my PHP version is 8.1.6 Please suggest me how can I ...
user avatar
1 vote
2 answers
50 views

Checkout Page issue after upgrading magento from 2.3.5 to 2.4.4

I am facing an issue on checkout page, I have upgrade magento version from 2.3.5 to 2.4.4 I have checked at console part, in it shows me 404 not found message and those url's I see as "undefined ...
user avatar
0 votes
1 answer
27 views

Change Magento My Order 2.4.4 Date Format

at following path i'm trying to change date format /app/code/Magento/Sales/view/frontend/templates/order/history.phtml https://imgur.com/jOQNshk from 3/6/22 to 03/06/2022 How can i edit following code?...
user avatar
0 votes
3 answers
30 views

How to call CMS page using controller in Magento 2

How we can call the CMS page using controller. Is it possible to call the CMS page from controller. If it is possible how we can call the CMS page using controller. Thanks.
user avatar
  • 33
0 votes
2 answers
38 views

How to send email with attachment in Magento 2.4.3 (ERROR: Unable to send mail: Unknown error )

I am new to Magneto. and i searched and tried different solution online but they didn't work. I have an observer from which I generate CSV file whenever a customer place an order. I'm using <...
user avatar
0 votes
0 answers
16 views

How to show graphQl api run on frontend page in magento2?

How to show graphQl api run on frontend page in magento2 ? I have created custom product collection api so i need to need to display that api collection show on phtml page.
user avatar
0 votes
2 answers
36 views

Unable to override shipping template using a custom module on Magento 2.4.4

I'm currently having issues with overriding the default Magento Checkout shipping.html template using my custom module when upgrading to Magento 2.4.4. Whenever I attempt to override shipping.html the ...
user avatar
0 votes
1 answer
28 views

file_get_contents can find var directory

I am working on magento 2.4.3. I'm attaching a file in an email from the observer. the file is in the var folder. but file_get_contents(/var/orderexp/firstexport.csv) gives the error failed to open ...
user avatar
0 votes
0 answers
22 views

Enable to receive the mail in magento 2

I have a custom form, when the customer submit the form i am sending mail to the customer. When i try to add specific mail id like addTo('mani@gmail.com') function i am receiving mail to mentioned ...
user avatar
  • 33
0 votes
1 answer
30 views

Magento2: How to configure CodeSniffer in phpstorm?

I want to configure code sniffer in phpstorm so i can refactor my code according to Magento coding standards
user avatar
0 votes
2 answers
29 views

After upgrade to Magento 2.4 include_once is not working anymore

I have created an extension to create custom pdf. Everything was working fine in my former magento 2.1 version. Now magento has been upgraded to version 2.4 and my phtml files dont run anymore. Within ...
user avatar
0 votes
2 answers
36 views

Reset Order Numerb and Invoice 2.4.4

i finish to do a lot of test so now i'd like to reset order progressive number and invoices.. Anyone can help me with mysql code for doing this reset? Thanks!
user avatar
0 votes
0 answers
18 views

Override private function _beforeSave(\Magento\Framework\DataObject $customer)

I am trying to modify the copy that displays when a user tries to change their email address to an address that already exists. The current message that displays is "A customer with the same ...
user avatar
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?
user avatar
0 votes
1 answer
27 views

Buy specific SKUs get 10% of on all other products

I am working in Magento 2.4.4 I am trying to set a Cart Price Rule where I say "Buy specific SKUs and get 10% discount on all the rest of products" Like "Buy X Get Y - Percent Discount&...
user avatar
  • 27
0 votes
1 answer
26 views

How to enable/disable welcome email from admin configuration in store basis

Hi I referred this solution for disabling welcome email and it works perfectly.however i want the around plugin to work only if its enabled from admin backend that too in store basis. I added etc/...
user avatar
  • 1
0 votes
1 answer
43 views

How to stop Playing video in the background when popup modal is closed or click on out side of the popup

I have a button. When user click on button i am showing the video in popup modal. But when i click on outside of the popup the popup is closing but video is keep playing and when i close the popup ...
user avatar
  • 33
1 vote
3 answers
132 views

Magento2.4: How to display image with custom image role in category page instead of small image role?

I want to display images with a custom role as shown in pictures, now I want to show those images instead of images with a small role on the category page, and I want to do this programmatically? I ...
user avatar
0 votes
0 answers
16 views

How to condition check a product attribute in a JS Mixin?

Using Magento 2 I am trying to do a condition check on a mixin I created for the update function on the mini-cart. The code looks like this: define(function (customerData) { 'use strict'; ...
user avatar
0 votes
1 answer
12 views

How to configure different 404 page for each store in Magento 2

I have two different store in magento. I need to create two different 404 pages with different content and assign it to different stores in magento 2. How can i achieve this in magento 2. Thanks.
user avatar
  • 33
0 votes
2 answers
37 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 ...
user avatar
0 votes
1 answer
19 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 ...
user avatar
1 vote
0 answers
11 views

Magento 2.4 altering admin controller post value using plugin

I tried changing the values using before dispatch plugin using below code but it's not working. public function beforeExecute(\Vendor\Module\Controller\Adminhtml\Index\Save $subject){ $info = $...
user avatar
0 votes
0 answers
47 views

Magento2.4 Set default country as per ip address in shipping address

I need to set country id as per guest Ip address in shipping address on checkout page. Override LayoutProcessor and add code but its not working. di.xml <?xml version="1.0"?> <...
user avatar
  • 123
0 votes
0 answers
22 views

slider for category product image in magento 2

I am using magento 2.4.2 how to add slider in category product image? if product have 4 image then show 4 image as a slider in list page.
user avatar
0 votes
1 answer
30 views

Magento 2: How to specific HTML <div> decrease CLS score in Google page speed for Mobile view?

i need to decrease CLS score for specific div tag for mobile view. for ex. : <div class="product-info-main"> Screenshot Mobile View: https://i.imgur.com/gwFhrjV.png Screenshot Desktop ...
user avatar
0 votes
1 answer
36 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:/...
user avatar
0 votes
0 answers
20 views

Cart Price Rules by condition

In my code i can apply 50% discount on cart but i want this discount to apply only when product from a specific category is added. \Magento\Quote\Model\Quote $quote, \Magento\Quote\Api\...
user avatar
0 votes
0 answers
23 views

Magento 2.4: Product List widget not rendering

I am using Magento 2.4.4, I have tried to add Product List widget on my home page, but it appears like a string on frontend {{widget type="Magento\CatalogWidget\Block\Product\ProductsList" ...
user avatar
  • 1
0 votes
1 answer
19 views

Developer mode not working after upgrade to Magento 2.4.3

I've recently upgraded my local installation of Magento from 2.3 to 2.4.3. After doing this, several serious issues have arisen. I'm hoping somebody has experienced similar and found a way to solve ...
user avatar
0 votes
0 answers
18 views

Could we use /rest/V1/guest-carts/{guest-card-id} with ADMIN TOKEN?

Following method is usable with authorization bearer admin token? Method - PUT {URL}/rest/V1/guest-carts/{guest-card-id} Param - { "customerId": X, "storeId": X }
user avatar
0 votes
2 answers
42 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.
user avatar
  • 33
0 votes
0 answers
21 views

How to add new column in product attribute options

I want to add custom column for attribute options in Magento 2, like this: How can i do?
user avatar
0 votes
1 answer
17 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 ...
user avatar
  • 33
0 votes
0 answers
22 views

Magento ver. 2.4 : There seems to be an issue with the search

There seems to be an issue with the search. When searching some of product, like for example DS-2CD2085FHW search "2085", we get no results even though we should get at least 1 result on it. ...
user avatar
  • 2,172
0 votes
1 answer
18 views

Info About messages.phtml in 2.4.4 version

Hello i'm doing some debug for an issue i have and i made an override of messages.phtml to following path /app/design/frontend/Company/template_child/Magento_Theme/templates/messages.phtml inside ...
user avatar
0 votes
0 answers
31 views

How to add pdf in mail in Magento2.4.3?

I tried almost all solutions from the internet but nothing works in magento 2.4 and above. for pdf attachment in mail If Anyone knows how to attach pdf in mail. Please share your answer. Thanks.
user avatar
  • 33
0 votes
0 answers
15 views

Block not loaded after Login in magento 2

Block not loaded on PLP page after Login in magento 2 tried both way plugin and observer facing the same issue. Block name : category.products.list Any idea Friends I'm stuck on this point. Also I ...
user avatar
  • 696
0 votes
0 answers
17 views

im installing mahento 2.4 using xamp on windows everything goes well but a connection error with elastic search

[Progress: 671 / 1346] Installing search configuration... In SearchConfig.php line 81: Could not validate a connection to Elasticsearch. null this is my installation command: php bin/magento setup:...
user avatar
0 votes
0 answers
21 views

render attibute on final_price.phtml for configurable product

I would like to to change final_price.phtml (Magento_ConfigurableProduct/templates/Product/Price/final_price.phtml) file for configurable product and add the newly created text attribute under the ...
user avatar
0 votes
0 answers
13 views

UPS Method title is not visible for US Address in Magento 2.4.3-p1

UPS method title is not visible for US address meanwhile it is visible for Canada address.
user avatar
0 votes
3 answers
30 views

Invalid template file: 'Magento_Store::switch/languages-style-02.phtml

I have created a module to be used with Magento 2.4 based on https://github.com/php-cuong/magento2-one-page-products to have a custom catalog page with all products. Code used by me are same without ...
user avatar

1
2
3 4 5
25