Questions tagged [magento2.4]
Denotes questions related to the features included in Magento version 2.4.x
821
questions with no upvoted or accepted answers
5
votes
0
answers
402
views
Declarative schema uses padding in 2.3, gone in 2.4, do we have to use it?
In a module we're developing we declare a new database table with a foreign key relationship to the sales_order table. We want to support Magento 2.3 and 2.4, so we use the declarative schema (...
4
votes
0
answers
371
views
Magento 2.4: Uncaught TypeError: base is not a constructor
After Magento update to 2.4, I'm getting this "base is not a constructor" error which is causing other grids to unable load in the admin.
When I run the command:
->sudo chmod 777 -R Var/ ...
3
votes
0
answers
1k
views
Magento 2.4.1 Elastic Search critical error failed to create query "all shards failed"
I updated my site to Magento 2.4.1 after that in my exception.log i continueously get folllowing error :
main.CRITICAL: {"error":{"root_cause":[{"type":"...
3
votes
0
answers
824
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?
2
votes
3
answers
46
views
Admin panel not loading properly, after magento 2 upgraded
I have recently upgraded Magento from 2.3 version to 2.4 version and it has been the upgraded, after upgrade the admin panel is breaking. Not loading properly. Can anyone please help me with solution.
2
votes
1
answer
59
views
Magento 2.4.3 Upgrade from 2.3.0 showing iframe for Online payment
I have upgraded Magento 2.3.0 to Magento 2.4.3, everything is working perfectly but when selecting CCAvenue online payment on payment page, one iFrame is showing below to enter credit card information ...
2
votes
0
answers
31
views
Magento 2 Coupon code restriction
I'm trying to modify the coupon code scenario and below is the scenario that I need to achieve.
Full cart total should be >= $499.
I added the condition that if a configurable product is found in ...
2
votes
0
answers
141
views
Implementation of Composition Instead of Inheritance in Controllers Magento 2
I am trying to implement Magento 2 Coding Standard so I found an Article Here -> https://community.magento.com/t5/Magento-DevBlog/Decomposition-of-Magento-Controllers/ba-p/430883
I have changed my ...
2
votes
0
answers
46
views
How to get blog result list into catalog search Magento 2
Hello I am currently working on Custom blog extension. Where I want to get blog posts in catalog result.
where I am having my_blog_post table with following columns.
id
title
image
description
...
2
votes
0
answers
103
views
Catalog Search result Wrong Result Magento 2
I am facing issue in the search result. I have installed Magento 2.4.0 and using Elasticsearch 7.0.
When I search for h397 it gives me 4 product count and if I search for h397-4 it gives me 1868 ...
2
votes
1
answer
189
views
Custom Sorting on category page not working in Magento 2.4.2
I have Magento 2.4.2.
I have written a custom code to add A-Z & Z-A filters on category page.
I have added dependency injection using below code
<preference for="Magento\Catalog\Block\...
2
votes
0
answers
202
views
Magento2 filter products based on location (custom attribute) programmatically
I have a Magento2 Store (v2.4) where I have multiple locations. for (eg. Jaipur, Delhi, Mumbai etc). I have managed locations using custom attribute using multiple dropdown list and assigned it to ...
2
votes
1
answer
976
views
Magento 2.4 decline message disappears quickly - several quick fixes don't to the trick
I have a problem on my updated Magento 2.4 store. The error messages (like insufficient stock amount) disappear after a short time. Instead, I want them to be visible until the customer clicks on them....
2
votes
1
answer
757
views
Magento 2.4 Products are not showing in category - Elastic Search enabled
I have recently installed a Magento 2.4 for a client, configured elastic search and everything worked well until I created a few additional store views (my assumption).
Now the products are visible ...
2
votes
2
answers
789
views
Magento 2.4.1 admin tfa configuration page is blank
I just migrated from Magento 2.3.4 to 2.4.1 , after i logged in from the backend i was redirected to TFA configuration page, but it shows blank container like this:
i already ran these commands below,...
2
votes
1
answer
352
views
Connection refused error in command line Magento installation 2.4.1?
Magento removed web installation in 2.4.1 version, while installing from command line, I am getting below error:
bin/magento setup:install --base-url=http://dev.magento.local/ --db-host=127.0.0.1:...
2
votes
0
answers
39
views
Add new plugins to tinymce 4
Does anyone know a simple tutorial on how to add plugins to tinymce 4 based on magento 2.4. The most stuff i found out there is outdated or missing alot of informationen
2
votes
1
answer
2k
views
Magento 2.4: Catalog Search index exception: Could not ping search engine: No alive nodes found in your cluster
We have installed Magento 2.4 on our local machine. After installing, we have got the below error when doing the setup:upgrade
Could not validate a connection to Elasticsearch. No alive nodes found
...
2
votes
1
answer
278
views
Cannot search for multiple words with Elasticsearch
Since switching search engine to ElasticSearch 7.9.1 (necessary for Magento 2.4.0) my site has only been able to search the catalog with a single word. When two or more are entered the front end ...
2
votes
0
answers
239
views
Custom payment method not appearing in checkout (Magento 2.4)
I have been trying for a few days to create a custom payment method in checkout to implement a payment gateway from a new payment provider. So far I have seen many informations and tutorials but ...
1
vote
1
answer
25
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="...
1
vote
0
answers
16
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 ?
1
vote
2
answers
48
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 ...
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 = $...
1
vote
0
answers
25
views
Magento 2.4 Custom logger , log admin activity of product edit with code?
How do you log admin activity of the product edit page with code? create a logger which logs admin activity.
1
vote
1
answer
28
views
How do I get all option value id's for a given attribute in a specific category in my custom block?
My shop has an attribute manufacturer.
This attribute has option values like adidas and nike etc.
I have a custom module with a block
I placed the block on a specific category through a widget
The ...
1
vote
0
answers
95
views
Magento 2.4.4 new email syntax
Previously I had been using the code below to get the payment method title of an order and placing it in an email
{{var order.getPayment().getMethodInstance().getTitle()}}
However, since the ...
1
vote
0
answers
28
views
How do I include the stock item with the product collection
In magento-1.9 I would call
$Products = Mage::getResourceModel('catalog/product_collection');
$products->setFlag('require_stock_items', true);
And this would add the StockItem to every product in ...
1
vote
0
answers
82
views
Magento 2.4.3 Invalid block type: Magento\Backend\Block\Order\Create\Form
I upgraded the Magento Version 2.4.3, in the Admin Sales-Create New Order, I am getting the error of
2 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: ...
1
vote
1
answer
78
views
Notice: Undefined index: extension in /home/xxx/xxx/vendor/magento/framework/File/Uploader.php on line 806
I'm adding Vimeo movies to my products. The first one to add works flawless. If I open another product and try to add another movie I get this error: Notice: Undefined index: extension in /home/xxx/...
1
vote
0
answers
26
views
Magento 2 Braintree taking too much time to get response
Cart page and checkout page take too much time for some time. After disabling the Braintree extension both pages are loading normally. Sometimes both pages are loading normally with the Braintree ...
1
vote
0
answers
31
views
Quantity Increments in advanced inventory is not working for configurable products Magento 2
I tried to increment the product quantity by 10 steps on each click on the + sign by configuring it in the quantity increment from the advanced inventory of the product dashboard. Unfortunately, it is ...
1
vote
0
answers
41
views
How to filter product using tier price in Magent 2.4.x
I am using Magento v2.4.3, Elasticsearch 7.13.1 with Graphql. I want to apply a price filter on tier price value. As price coming as per customer group and default filter getting applied on price ...
1
vote
0
answers
21
views
Shipping costs per vendor (looking for extension)
We are employing drop shipping for the product of our Magento 2 instance, but we need to have separate shipping costs for each vendor that sends the product to the customer on their own. So if
Vendor ...
1
vote
1
answer
46
views
"Type Error occurred when creating object" persists
I am getting the following error message:
main.CRITICAL: Type Error occurred when creating object: Vendor\CartUpdate\Plugin\Minicart\Image, Argument 1 passed to Vendor\CartUpdate\Plugin\Minicart\Image:...
1
vote
1
answer
62
views
How to Hide or Show Custom attribute based on other custom attribute in Product detail/edit page from Adminpanel Magento 2.4.x?
I have created the Product's custom attributes programmatically(Setup->Installdata.php).
$eavSetup->addAttribute(
\Magento\Catalog\Model\Product::ENTITY,
'...
1
vote
1
answer
60
views
How to get product id in admin product edit page when using component grid
I am trying to get request param id when editing the page in my component dataprovider file.
But getting always null value in it.
I am rendering a grid in the product edit page and I need to filter my ...
1
vote
1
answer
39
views
Sorting Street fields in magento 2.4
I am with a need to reorder 03 street fileds in the following order in shipping, billing, and customer address forms.
street[2] - first
street[1] - second
street[0] - third
I could reorder other ...
1
vote
1
answer
32
views
Translate checkout, quantity in product page, compare and my wishlist near search bar Magento 2.4
I have a multilanguage store.
I used the GitHub method to install relevant language packs
The file containing the different language packs is located at /var/www/html/magento/app/i18n/Mageplaza
Each ...
1
vote
0
answers
43
views
How can I configure Contact Us form & Contact Email in Magento 2?
Please explain Simple ways to configure the Contact Us form and Contact Email.
How can I Enable the Contact Us Form?
How to Customize the Email Contact form ?
How to Configure the Contact Us form?
1
vote
0
answers
38
views
How to export and download advanced pricing csv file programmatically in magento 2.4
I have to export and download Advanced pricing csv file via cron(programmatically).
Can anyone please explain me how can we do?
1
vote
0
answers
17
views
Magento2 How to remove coupon code programatically
I am using a custom script to apply multiple coupons at a time for example:
GET100OF
GET200OF
GET300OF
Now, If the user wants to remove GET200OF then how to do this?
Below solution does not works:
$...
1
vote
0
answers
50
views
Add a JS mixin to the add to cart button
Im looking to add a JS mixin to the 'add to cart' button, that will log the add to cart form information to the console when a user clicks submit.
1
vote
0
answers
141
views
magento 2.4 show product options in custom template
On the frontend, I have a custom template with some tabs: when the user switches among tabs, he can load a simple product. Each tab loads a different product. This works fine with normal products but ...
1
vote
2
answers
160
views
How to install magento 2.4.x with NGINX on ubuntu?
Please give me steps to install magento 2.4.x.
Thanks,
Ziya
1
vote
0
answers
53
views
magento 2.4.3 Custom theme "Required parameter theme_dir was not passed"
I'm trying to create custom theme in my magento 2.4.3. I m getting error "" have written like this below.
1 exception(s):
Exception #0 (InvalidArgumentException): Required parameter '...
1
vote
0
answers
53
views
How to Resolve Payment Request is not defined error in GPay using Magento 2?
I have integrated Google Pay Extension from the marketplace.
https://marketplace.magento.com/unboundcommerce-module-googlepay.html
After integrating on my local machine and Configured with Test ...
1
vote
0
answers
25
views
How to restriction the review status update when review is already approved
I want to add conditions for review. If the review is already approved then restrict the functionality to stop the change the status of the review.
<?php
namespace Custom\Reviews\Plugin\Controller\...
1
vote
0
answers
31
views
Magento 2.4: UI component paging with non-collection DataProvider
I have listed UI component with DataProvider that is not a collection. I want to make pagination for it but when I add simply toolbar and pagination nodes in XML it does not work. I can see that I ...
1
vote
0
answers
16
views
Magento2: facing this error en_US/Magento_Catalog/images/product/ placeholder/.jpg' [] []
How to resolve this error in magento2: Unable to resolve the source file for 'frontend/themename/en_US/Magento_Catalog/images/product/
placeholder/.jpg' [] []