Skip to main content

Questions tagged [magento2.4.2]

Marks questions related to Magento 2.4.2 version

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

Products still present and searchable on frontend even if disabled on the Backend

Products still present and searchable on frontend even if disabled on the Backend with Magento 2.4.2. Hello, I encountered issues on the product still searchable on frontend even if disabled. Version: ...
Lynford Lagondi's user avatar
0 votes
1 answer
17 views

How do I add a method and use it in a letter template?

I need to add a custom method and use it in the template of the email that goes to the user after registration to confirm his account. How can I do this?
WhoYou's user avatar
  • 55
0 votes
1 answer
22 views

How can I add custom method for \Magento\Email\Model\AbstractTemplate?

I need to replace the method of getting the link this.getURL() with my custom method this.customMethod() in the confirmation email of the user during registration. I have created a module: ...
WhoYou's user avatar
  • 55
0 votes
2 answers
45 views

Magento 2 : How Can I disable woff2 format?

How can I disable woff2 format for fonts in Magento 2? I need .lib-font-face to connect only woff.
WhoYou's user avatar
  • 55
0 votes
2 answers
30 views

How can I set zero price for simple product programmatically?

How can I set zero price for simple product programmatically? If I set: $product->setPrice(0); In admin panel price field is empty. If I save this product - system return error - price field is ...
WhoYou's user avatar
  • 55
0 votes
2 answers
55 views

Multiple filtering by SKUS for products in categories

In the administrative panel, in the Categories section, there is a Products in Categories tab. In this tab, you can filter products by sku. I need to be able to specify multiple skus separated by ...
WhoYou's user avatar
  • 55
0 votes
0 answers
24 views

Template overriding worked in Magento 2.4.2 doesnt get triggered in Magento 2.4.6-p2

I have custom Magento module which was originally deployed and worked properly in Magento 2.4.2 , which injects some JS to frontend product page, with some backend connectivity. After copying same to ...
Indunil Ramadasa's user avatar
0 votes
1 answer
45 views

Exporting Categories Data from Magento 2.4.2 and importing to Magento 2.4.6

I have to export categories, products and other related data from a Magento 2.4.2 instance to a empty Magento 2.4.6-p2 instance. As the first step I am trying to export/import categories data. ...
Indunil Ramadasa's user avatar
0 votes
1 answer
46 views

How can I sort is not saleable products in the end of category

I need products that are out of stock (!$_product->isSaleable()) to be displayed at the end of the category list in the catalog (frontend part) Magento v 2.4.2
WhoYou's user avatar
  • 55
0 votes
2 answers
371 views

Varnish Cache won't clear on Magento 2.4.2

I'm running Magento 2.4.2 and have recently added Varnish to it. The site also has Cloudflare in front of it. The server is running Plesk (Ubuntu) and Varnish is running in Docker within Plesk. I've ...
wjp_bill's user avatar
  • 330
1 vote
1 answer
58 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?
Afzal Arshad's user avatar
0 votes
1 answer
35 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->...
Sandeep Singh's user avatar
0 votes
2 answers
147 views

Magento 2.4.6 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/...
Ravindrasinh Zala's user avatar
0 votes
1 answer
361 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\...
Prince's user avatar
  • 123
0 votes
1 answer
878 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 ...
Prince's user avatar
  • 123
0 votes
3 answers
751 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?
WhoYou's user avatar
  • 55
0 votes
1 answer
104 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 ...
WhoYou's user avatar
  • 55
1 vote
0 answers
26 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 ...
Mani's user avatar
  • 393
1 vote
0 answers
98 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 ...
Vamsi Krishna's user avatar
0 votes
1 answer
225 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? ...
Savan Patel's user avatar
  • 2,366
0 votes
0 answers
28 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 ?
Rashi Goyal's user avatar
0 votes
1 answer
2k 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(...
kiran's user avatar
  • 597
0 votes
3 answers
2k 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
Afzal Arshad's user avatar
0 votes
1 answer
138 views

How to disable billing address in checkout page?

I want to disable the "Billing address" from checkout page in Magento 2.
kiran's user avatar
  • 597
0 votes
1 answer
38 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->...
Akshay's user avatar
  • 3
0 votes
1 answer
28 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 ...
Niño Florenjamin Soriano's user avatar
0 votes
1 answer
26 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)
Bhagyashri Pawar's user avatar
0 votes
2 answers
2k 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":&...
Ayman Elgohary 's user avatar
0 votes
1 answer
695 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
César Robledo's user avatar
1 vote
1 answer
602 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 ...
Ilja Polanskis's user avatar
2 votes
0 answers
15 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 ...
P Walker's user avatar
1 vote
1 answer
146 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.sstatic.net/xA4Y7.png https://i.sstatic.net/fYyuu....
pankaj parmar's user avatar
1 vote
1 answer
247 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
Afzal Arshad's user avatar
0 votes
3 answers
95 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/...
Head's user avatar
  • 177
2 votes
1 answer
257 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 ...
HalconDeveloper's user avatar
2 votes
0 answers
259 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.sstatic.net/0aBuC.png vendor\...
Sutariya Parth's user avatar
1 vote
1 answer
582 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 ...
slavikusq75's user avatar
0 votes
1 answer
118 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 ...
Head's user avatar
  • 177
0 votes
1 answer
140 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 ...
Mani's user avatar
  • 393
0 votes
1 answer
203 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 ...
slavikusq75's user avatar
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="...
kiran's user avatar
  • 597
0 votes
1 answer
245 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?
Avinash Borse's user avatar
1 vote
1 answer
378 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 ...
Amar jyoti Chetia's user avatar
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 ...
Max's user avatar
  • 197
1 vote
0 answers
241 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 ...
Greg's user avatar
  • 2,739
0 votes
2 answers
586 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. ...
Afzal Arshad's user avatar
1 vote
1 answer
362 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"?> &...
Rushikesh Solanki's user avatar
1 vote
0 answers
753 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 ...
sandip memariya's user avatar
0 votes
1 answer
366 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 ...
pankaj parmar's user avatar
0 votes
2 answers
954 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 ...
Afzal Arshad's user avatar

1
2 3 4 5
7