I want to show a button to let users open the order in the their account.
The problem is, that we also allow guest orders and not every user has an account in the shop.
In this case I don’t want to show the button because the link would lead to an error page.
Is there any way to check for an user account? I couldn’t find anything like it.
Best answer by David ToView original