What's your biggest current challenge? Have your say in Community Polls along the right column.

Classic and New Customer Types Urgent

Classic and New Customer Types Urgent

Columbus_Themes
Shopify Partner
126 9 16

How to check whether the merchant is using the old classic user or the new one-time code user type using liquid?

If you find my reply helpful, please hit Like and Mark as Solution.

Happy coding!
Reply 1 (1)

Columbus_Themes
Shopify Partner
126 9 16

One work around we found is:

{% assign login_url = routes.account_login_url %}

{% if login_url contains "shopify.com" %}
     <span>One-Time Code Login</span>
{% else %}
     <span>Classic Login</span>
{% endif %}

Is there any official document way?

If you find my reply helpful, please hit Like and Mark as Solution.

Happy coding!