Questions tagged [magento2.4.2]
Marks questions related to Magento 2.4.2 version
334
questions
1
vote
1
answer
32
views
Magento2.4.6: After upgrade magento from 2.3.5 to magento2.4.6, getting this error "Attempt to read property "paymentMethods" on null"?
I have upgraded my website from magento2.3.5 to magneto2.4.6, and everything works fine but when I open any order detail page that was placed before upgradation, it gives me this error, any idea?
0
votes
1
answer
31
views
Magento2 getSelect Printing Query without any __string
I have no idea why my getSelect printing query without echo & __toString.
public function loadOrdersCollection($orders): mixed
{
$pac_orders = array();
$orderCollection = $this->...
0
votes
1
answer
60
views
Magento 2.4.2 admin category URL redirect admin dashboard
Admin category URL link redirects to admin dashboard issue how to fix this issue
Current URL: Category
https://test.cm/mv2/admin/catalog/category/edit/id/12/key/...
0
votes
1
answer
92
views
Magento 2 : Exception Error Depricated Functionality Return type
I am using magento version 2.4.2 and php version 7.4.3
I am trying to run the project locally, getting the below error:
Exception: Deprecated Functionality: Return type of Magento\Framework\Config\...
0
votes
1
answer
129
views
SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition magento2
I am getting the below error when i trying to run setup upgrade command.
SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it ...
0
votes
0
answers
10
views
Can you locate an order that has not been shipped?
We have "missing stock" that is affecting the default stock and saleable quantity by 1 or 2.
I understand that once the order has been shipped, this should reset it. However, there are a few ...
0
votes
0
answers
59
views
sliderElement.slider is not a function, after magento update
after magento update from 2.3.4 to 2.4.2, we notice that on sidebar filters, price slide it is not working.
On browser inspect appears those errors:
layer.js:406 Uncaught TypeError: sliderElement....
0
votes
3
answers
216
views
How can I add custom fields in checkout page?
I want add two fields in checkout page (text type). How can I do this in Magento 2.4.2?
0
votes
1
answer
58
views
How can I set default zip code for checkout page and refresh shipping methods?
I created module for set default zip code in checkout page by this answer - https://magento.stackexchange.com/a/293818/102895. It's work - the ZIP code is set when the page loads by this plugin.
But ...
1
vote
0
answers
25
views
What is the impact of Universal analytics deprecation on Magento 2
To send ecommerce data from Magento 2 to analytics, we have out of the box configuration in admin Magento 2. In which we are adding universal tracking ID (UA-XXXXXXX-1), then its starts sending ...
0
votes
0
answers
59
views
Create Custom CLI command that will parse CSV Magento 2
I have created one custom Model file having function parseCSV() function
This function is responsible to create/deactivate/update the admin users programmatically via CSV. This is working fine for me.
...
1
vote
0
answers
83
views
500 Internal Server Error after install Magento 2.4.2 on windows
getting 500 internal server error while installing Magento 2.4.2 community edition.
configured virtual hosts and given right directory paths but getting same 500 internal server error.
and after ...
0
votes
0
answers
16
views
Magento 2: Getting error when loading editor in admin
I am facing a weird issue whenever I load the editor it gives the below error and because of that, I am not able to save the page.
I have checked multiple pages like CMS Page, CMS block, Categories &...
0
votes
1
answer
183
views
Magento ver 2.4.2 : in checkout payment method cash on delivery payment method, it shows the form to enter the credit card number
This form appears after selecting any payment method for the first time
Even if I click on cash on delivery in the payment method, it shows the form to enter the credit card number. Is this a virus?
...
0
votes
0
answers
25
views
Get Purchase Order Rule Data via repository Magento 2
How to get Purchase order Rules data via repository.
Further, from the result I want to fetch the data of the column 'conditions_serialized'
Anyone who can guide ?
0
votes
0
answers
118
views
Create after save plugin on the purchase order rule repository magento 2
I have added new column via db_schema.xml in the purchase_order_rule table i.e. rule_type
Now, I want to create an after save plugin on the purchase order rule repository that will save the column '...
0
votes
1
answer
1k
views
How to fix Fatal error Deprecated Functionality after upgrade magento version 2.4.5
How to fix below error.
PHP Fatal error: During inheritance of IteratorAggregate: Uncaught Exception: Deprecated Functionality:
Return type of Symfony\Component\Console\Helper\HelperSet::getIterator(...
0
votes
3
answers
999
views
Magento2.4.5: How to add custom text fields on checkout page?
I want to add custom text fields on the checkout page and those fields' values should be saved in sales_order and sales_order_item table
0
votes
1
answer
111
views
How to disable billing address in checkout page?
I want to disable the "Billing address" from checkout page in Magento 2.
0
votes
1
answer
31
views
I have added products to cart programmaically and want to show this products on my frontend
Add to cart Code
$request = new \Magento\Framework\DataObject();
$request->setData($data);
$cartId = $this->maskedQuoteIdToQuoteId->execute($guestCart);
$quote = $this->...
0
votes
1
answer
20
views
Using Registration Confirmation Link after 24 hours to create an account then Order is not showing up in Order History
I am using Magento version 2.4.2-p2
Here's the scenario:
If I use the link within the day, I am able to create an account and see the order in Order History.
If I use the link after 24 hours, I'm ...
0
votes
1
answer
21
views
How Create shopping cart rule 10% off on $100 Grand Total MAgento 2.4.2
I have to create shopping cart rule like, 10% off on minimum $100 spent.
$100 will be a grand Total (Total after discount,Including tax)
0
votes
2
answers
1k
views
Elasticsearch BadRequest400Exception Error : main.CRITICAL: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason"
I have a problem
I am using Magento 4.2.4 and Elasticsearch 6 and this message appears can anyone help me to solve it.
main.CRITICAL: {"error":{"root_cause":[{"type":&...
0
votes
1
answer
280
views
Error Magento 2.4 <required> Zend\Serializer\Adapter\Json $jsonSerializer
Error Magento 2.4
Error loading Wordpress Posts => Impossible to process constructor argument Parameter #4 [ Zend\Serializer\Adapter\Json $jsonSerializer
1
vote
1
answer
258
views
Unable to access custom data section using customerData.get() inside KnockoutJS component
I am following this in order to create new section https://developer.adobe.com/commerce/php/development/cache/page/private-content/
All is working if I request '{localhost}/customer/section/load', the ...
1
vote
0
answers
14
views
One or more integrations have been reset because of a change to their xml configs - Magento 2.4.2
I'm getting this error in my Magento 2 admin.
"One or more integrations have been reset because of a change to their xml configs."
Looking online i can see about people saying to disable the ...
0
votes
1
answer
129
views
After upgrade magento 2.4.4 version order shipment is not working?
i have upgrade magento 2.4.4 version,after upgrade shipment will not create on chrome browser.if i am trying to mozila firefox it's working.
https://i.stack.imgur.com/xA4Y7.png
https://i.stack.imgur....
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
3
answers
71
views
Bolding or changing the color of "Continue Shopping Url"
I took the code from inside:
vendor/magento/module-checkout/view/frontend/templates/cart/noItems.phtml
and i'm overiding it here:
app/design/frontendvendor/namespace/module/Magento_Checkout/templates/...
1
vote
1
answer
181
views
Change 'Home' (Label) to "Shop Online" in my breadcrumbs
I'm trying to make a little change to my breadcrumbs. I'm using Magento 2.4.2
I want to change the "Home" label of my porto theme to "Sports Store".
I'm sure it's a simple change ...
2
votes
0
answers
222
views
URL blocked by CORS policy No 'Access-Control-Allow-Origin' header in magento2
i am using google translate for my custom module.i am facing issue on console as per given image for reference i have given code of phtml file.
console error : https://i.stack.imgur.com/0aBuC.png
...
0
votes
1
answer
398
views
Pages are scrollable after reaching a footer
Just noticed that Responsive Web Design doesn't work correctly for a desktop version of website. After reaching a footer with page scrolling, pages of website can be scrolled far further (just ...
0
votes
1
answer
92
views
Magento continue shopping link to last added product’s category page
I've seen a few similar questions here when i searched but they all pertain to magento 1.
This seems identical do what i want to do..
Redirect "Continue Shopping" Button to the Current ...
0
votes
1
answer
97
views
Refused to connect error in trustpilot for other website in magento 2
I have two websites in my magento admin and I need to add trust boxes in the pages using trust pilot - trust boxes. It is working fine for one website, but when load other website url in the ...
0
votes
1
answer
182
views
Can't get extension attribute in a plugin
I am trying to create a module that uploads Category image (as Category extension attribute) via REST API. The problem is that I can't even fetch extension attributes in afterSave method of my Plugin ...
0
votes
1
answer
48
views
Call phtml using block code
login to magento admin. Open any cms page and write block code in content section.
{{block class="Magento\Framework\View\Element\Template" name="test_file" template="...
0
votes
1
answer
213
views
Fake order received in magento 2.4.2
I received the order which has some script in the name fields, it seems to be fake order but how he can place this? Is there any way to stop this?
1
vote
1
answer
290
views
Custom mysql triggers deleted automatically in Magento 2.4.2
I am trying to create a custom mysql triggers for a custom Magento 2 table by using Setup/UpgradeSchema.php file.
Problem: For the first time triggers are created correctly. But next time when I ran ...
1
vote
1
answer
1k
views
Display out of stock configurable product options without showing out of stock products in categories and search results
Currently I need to display out of stock options for configurable products in the products drop down. For example, a configurable product might have the following options: Small, Medium, Large.
When ...
1
vote
0
answers
155
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 ...
0
votes
2
answers
484
views
Magento2.4: How to sort products by Size options (XS, S , M, L ,XL)?
I want to sort Products based by their size like (extra small, small, medium, large) you can take Magento reference what they use for this term,)
1: Products with All Size options should be on top.
...
1
vote
1
answer
324
views
how to get Revenue using programming in Magento 2?
how can we get the Revenue using API or Without using API programming in Magento 2.4,
like below image,
I have tried using API, and below is my code.
webapi.xml
<?xml version="1.0"?>
&...
1
vote
0
answers
709
views
Magento2 : URL blocked by CORS policy No 'Access-Control-Allow-Origin' header
i am using google translate for my custom module.i am facing issue on console as per given image.
i tried js code in root script it works but in front page it returns error.
for reference i have ...
0
votes
1
answer
270
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
2
answers
521
views
Magento2.4: How to add a custom column in customer grid and show that if customer is online or offline in that column?
I want to add a custom column in customer grid and want to show that if customer is online or offline in that column.
For example, if customer is online show online in that column against that ...
0
votes
1
answer
274
views
How can i Upload image in admin form using data interface and repository?
I want to upload image in admin form by using my DataInterfaceFactory and DataRepositoryInterface Classes, i have create and my interfaces and and form in admin dashboard but don't know how i apply ...
0
votes
1
answer
315
views
Magento2.4 Order shipping address is not in well format
Shipping address showing some code and some data.
0
votes
1
answer
85
views
After migration magento 2 width, height and length does not take decimal values
decimal values not visible after save in magento 2 after migration and also not able to import attribute with decimal values
1
vote
0
answers
40
views
M 2.4.2 - catalog Search with custom attribute not showing
I am using Magento 2.4.2, but sometimes the default search bar does not work elasticsearch engine for the catalog search.
For example, I have a product with custom attribute called "HU816x56&...
0
votes
1
answer
300
views
How to get absolute path of default place holder image in magento 2
How to get the absolute path of the default placeholder image of the products in Magento 2
I used the below code
$imagePath = $this->imageHelper->getDefaultPlaceholderUrl('image');
but it is ...