I added th following script to the order status page.
{% if customer.has_account %} console.log("User account exists") {% else %} console.log("User account does not exist") {% endif %} It seems to work when viewing orders that are a day old. But if I make an order, and then initially see the order status page, {% if customer.has_account %} is not returning true. Any ideas why or a better method of checking if the customer has an account from the order status page.