skio
Search…
⌃K

Auto-login to Skio from Shopify Account

Manage Subscriptions Link
Often merchants choose to replace Shopify's native account system with the Skio customer portal login to take full advantage of the passwordless login and reduce the redundancy of having two account areas.
However, sometimes keeping the native Shopify account system is preferable. In this case, the below code can be used to avoid the double login issue.

snippets/skio-manage-subscription-link.liquid

{% if customer %}
{% liquid
assign store_id_hash = 'ENTER STORE ID HASH FROM SKIO DASHBOARD THEME SETUP PAGE'
assign skio_hash = customer.id | append: store_id_hash | md5
%}
<p>
<a href="/a/account/shopify-login?email={{ customer.email | url_encode }}&hash={{ skio_hash }}&id={{ customer.id | url_encode }}&totalSpent={{customer.total_spent | url_encode}}&addressId={{customer.default_address.id | url_encode}}">
Manage Subscriptions
</a>
</p>
{% endif %}