Hello Magento Friends,

In today’s blog, I will give you a solution for How to Fix Checkout Infinite Loop Detected Issue in Magento 2.

In Magento 2 when a customer adds an item to the cart, they are redirected to the checkout page. There they can select their desired payment method and enter the payment details. Once the card details are entered and they click on Place Order, it shows an infinite loop detected error as shown below.

checkout infinite loop error

To get rid of this error, let’s look at the solution for Checkout Infinite Loop Detected Issue in Magento 2.

Steps to Fix Checkout Infinite Loop Detected Issue in Magento 2:

Step 1: Create di.xml as given below path

app\code\Vendor\Extension\etc\di.xml

Now, add the below code

Step 2: Create Session.php at given below path

app\code\Vendor\Extension\Preference\Checkout\Model\Session.php

And add the below code

Conclusion:

This way you can resolve the Checkout Infinite Loop Detected Issue in Magento 2. If the error still exists, Hire a Dedicated Magento Developer that will help to overcome the infinite loop detected problem at checkout in Magento 2.

Share the solution to let your developer friends be free of this issue. For more such Magento solutions, stay in touch with us.

Happy Coding!

Click to rate this post!
[Total: 11 Average: 4.3]