Questions tagged [magento2.4]
Denotes questions related to the features included in Magento version 2.4.x
1,025
questions with no upvoted or accepted answers
1
vote
1
answer
207
views
Can I use Opensearch 2.2?
Opensearch 1.2 is supported with >= 2.4.3-p2
Does anyone know if I can use the latest version (2.2)?
Thank you.
1
vote
0
answers
294
views
CustomResponseInterface class does not exist in API
i got error when i call API everytime.
[2022-08-29 10:26:45] report.CRITICAL: Report ID:
webapi-630c9465cd611; Message: Class
\Rental\Totalrevenue\Api\Data\CustomResponseInterface[] does not exist
{&...
1
vote
1
answer
472
views
From where the product collection is coming when we add required sku's in the product widget settings in Magento2 Page builder
i am changing the structure of grid.phtml file and i want to know from where the product collection is coming when we add the products sku's in the product widget settings.
when i am checking the grid....
1
vote
0
answers
200
views
Magento 2 add custom validation rule for two dynamic fields
In admin product edit page I added dynamic fields. Now I want to validate the filed based on the value of another field.
For example, I want to make Value Required/Optional based on the value of Unit
1
vote
2
answers
171
views
Luma theme deconfigured after installing sample data
Console error:
Refused to apply style from 'https://app.bartofilpc.test/media/styles.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is ...
1
vote
1
answer
233
views
How to remove particular filters from a specific category?
I want to remove the color and price filter only for the specific category in Magento 2.4.3-p1.
I created a separate XML file (catalog_category_view_id_{category_id}.xml) and apply the below code.
&...
1
vote
0
answers
671
views
Task not starting
I am using magento 2.4.3-p2 and created a cart price rule to give free delivery over £50. Since enabling this rule i get notifications at the top of the admin panel saying "Task "Rule ...
1
vote
1
answer
515
views
Magento 2 Braintree Apply pay not working
We are using Magento 2.4 version
We are using Braintree with Apply Pay.
Apply Pay radio button is showing properly on checkout also customer able to do placed orders, We also received customer amount ...
1
vote
0
answers
222
views
Magento 2.4 cant delete old indices from elastic search AWS server
I am having a problem in elasticsearch it doesnt delete old indices when reindexing I am getting this message in var/log/exception.log
[2022-08-10 08:05:36] main.CRITICAL: {"error":{"...
1
vote
1
answer
82
views
How to install Tamil language package in Magento2.4?
Magento doesn't have a Tamil language package in the locale option of the admin panel. How to install a custom 'Tamil' language package and use it.
Following these steps(image) able to add in the ...
1
vote
0
answers
196
views
Magento 2.4.2 - PayPal issues - A wrong PayPal Express Checkout Token is specified
We have a problem with our Magento 2.4 website with PayPal All-in-One Payment Solution (Website Payment Standard) payment method. Some of our customers are getting an error when trying to make a ...
1
vote
2
answers
239
views
Replace body class name attribute in Layout
Is it possible to replace class name value attribute in layout?
for example
body has 3 classes x y z
I want it to be
c y z
how to replace class x to c
I can add class c using
<attribute name="...
1
vote
0
answers
231
views
Magento 2.4 Plugin afterGetPrice() - issues with Full Page Cache
I am overriding the frontend price by using the Magento\Catalog\Model\Product plugin like so:
Sulman/Mymodule/etc/frontend/di.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
1
vote
0
answers
81
views
What is the best solution to smoothly hiding magento messages with click on a close button?
I customized message.js for smoothly messages hiding - now messages will be smoothly hidden afters 5 seconds. Here is the code.
define([
'jquery',
'uiComponent',
'underscore',
'Magento_Customer/js/...
1
vote
0
answers
37
views
Trying to create a configurable product, I get "Option values are not specified" error
I have an error that occurs randomly when I go to create a configurable product.
The process is as follows:
First I create all the simple products and in an array, I store all the ids of the simple ...
1
vote
0
answers
76
views
Why I don't receive email from customer form? (Magento 2.4)
I've created a CMS page with a form where customers can submit some info & by clicking 'submit' Magento sends an email (with all the info provided into the form) to an address that I set by a ...
1
vote
0
answers
24
views
Region Text is not passing along with form
I have created magento admin form using Uicomponent with country and state everything working fine except region value is not passing along with form.This happens only when there is select box ...
1
vote
1
answer
168
views
In Magento 2.4.4 admin when I select any category or product I get this error
Magento 2.4.4
All of a sudden, in admin, when I select any category or product I get this error (below)...
Can you please help me resolve this?
Thank you very much.
Chris
There has been an error ...
1
vote
0
answers
18
views
Customer login fails with no message for old migrated (from M1) customers
I recently migrated a Magento 1.x store to Magento 2.x.
All customers were migrated successfully, etc.
But some customers can't login on the frontend unless they clean their cookies.
I tried with my ...
1
vote
0
answers
19
views
How to write apply cart rule function
I have some rules applied to my shopping cart. Assuming the rules have id: 1,2,3,4 and the order in which the rules are applied is 3,2,4,1.
I want to get cart information detail after applied rule 3,2,...
1
vote
3
answers
909
views
After upgrade Magento 2.4.2 to 2.4.4 search functionality is not working due to elastic search
After upgrade Magento 2.4.2 to 2.4.4 search functionality is not working due to elastic search.
Even category products are showing fine. I have done reindex , cache flush , setup upgrade.
In log i am ...
1
vote
0
answers
33
views
Add Fake Category in Product Url Slug, like www.example.com/fake/myproduct.html
how it is possible to keep a forward slash in the product url slug? Everytime Magento changes the "/" to "-", but we need a fake subpath for robots.txt rules for certain products. ...
1
vote
0
answers
283
views
magento 2.4 programmatically assign simple products to grouped product
I'm facing a weird error. I'm trying to create a grouped product with its own children. The children simple products have already been created so I only need to create the grouped product and assign ...
1
vote
0
answers
136
views
pagebulider error on backed
Working on magento 2.4.4 instance.I created a block from backend and call that block in the homepage with help of pagebuilder.After saving the page,
Error filtering template:Invalid block type:Magento\...
1
vote
0
answers
219
views
Pagination not updated after product attribute filtration
I have done following plugin to filter the products by a custom attribute 'promotion_on', it works, but pagination does not reflect filtration (it shows full product lists' (without filtration) ...
1
vote
1
answer
196
views
GET Products API call with paging takes increasingly longer with each page number
On behalf of an integration with a client using Magento 2, we are fetching products from their Magento system using the /v1/products GET REST API call for version 2.4.4.
They have a large number of ...
1
vote
0
answers
128
views
E-Mail Preview template cut Magento 2
When I create a transactional e-mail via Marketing --> E-Mail Templates and then click "Preview" my preview window is somehow being cut to a preview_iframe which only covers like 1/5th of ...
1
vote
1
answer
371
views
How to Add Cart Price Rule Condition in Coupon Code Programmatically in Magento 2.4.0?
I want to add Add condition in Coupon Code: If Email is [email protected]
Please check attached screenshot:
How do I'll do this programmatically? Please check my code everything is working fine ...
1
vote
0
answers
103
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
631
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
30
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
2
answers
488
views
Custom email directive as per Magento 2.4 docs example not working
While upgrading our email templates to comply with the security changes introduced in Magento 2.4.3-p2, I'm having trouble creating a custom directive as per the Magento docs.
I tried to use the ...
1
vote
0
answers
284
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
256
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
2
answers
490
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
1
answer
1k
views
Magento 2.4.1 - Static content deployment needed in developer mode
I am in the middle of a situation regarding the static content deployment and I find it strange.
I built Magento 2 themes based on Luma/Blank or even not based on those. When I was working under the ...
1
vote
0
answers
756
views
Magento integration will not activate
I created a new integration, when I want to activate it, I do get a login pop-up from the external party. I enter my credentials and I got the following message, but the integration is not activated:
...
1
vote
0
answers
106
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
95
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
1
answer
645
views
Product query is suddenly really slow, because wrong index is being selected in MySql
Issue suddenly started to occur on our live site, dev site has the same database, but just with older data and same query is running completely fine there. I've also tried dumping those three tables ...
1
vote
0
answers
151
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
1
answer
95
views
Push changes from Staging to Live
I have a live website of Magento 2.3.5 p1 and created a staging of my live website and have updated it to 2.4.3 p1.
I would like to know how can I push the update changes from my staging website to ...
1
vote
0
answers
223
views
Running Deploy Hook via bin/magento-docker ece-deploy results with Could not open input file: ./vendor/bin/ece-tools returned non-zero exit status 1
I am trying to get a project that is already live in production setup and installed on my local for development. After running my bin/magento-docker up -d all of my containers start successfully. But ...
1
vote
0
answers
24
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
126
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
776
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
335
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
971
views
Configurable product sorting by price(High to Low) not working in magento 2 Graphql
In Magento 2, suppose we sort by price with DESC order in payload then they sort products by variant's lowest price and that lowest price will be in descending order of all other product's variant ...
1
vote
1
answer
57
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
89
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 ...