Orders are missing on Order History page in My Account on Front-end

The Orders are missing and the error You have placed no orders is presented in My Account on Order History page. But! The customer has orders and they are presented in the admin panel.

Usualy it happens because of the Order Status has Visible on Storefront = No.

How to display missing orders on Order History page in My Account on Front-end

  1. In the admin panel navigate to the Sales > Orders and open Order that 100% customer did and it doesn’t displays on Order History page.

  2. Check Order Status and remember it. In my case it’s Awaiting payment. check-order-status-magento-2

  3. Then in the admin panel navigate to the Stores > Order Status and check the value in the Visible on Storefront in the Order Status row. check-if-order-status-is-visible-on-frontend-magento-2

    • If you see Yes - close this page and debug or try to google again.
    • If you see No - please remember Status Code from the previous step and follow next steps. In my case it’s icecore_open.
  4. Navigate to the database. I use Adminer for this.

  5. Open sales_order_status_state table and change 0 to 1 in the visible_on_front column in the row where is status = icecore_open (take your Status Code in the Step 3). change-visibility-of-order-status-on-frontend-magento-2

That’s it!

Thank you !