📌  相关文章
📜  在 Shopify 中检查用户登录与否 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:31.250000             🧑  作者: Mango

代码示例1
{% if shop.customer_accounts_enabled %}
2    
      {% if customer %}
3    
        Account
4    
      {% else %}
5    
        Login
6    
7    
        {% if shop.customer_accounts_optional %}
8    
          or
9    
          Create an account
10    
        {% endif %}
11    
      {% endif %}
12    {% endif %}