Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I added th following script to the order status page.
<script>
{% 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.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025