How to determine a customer's login status in a store using an app extension?

How to determine a customer's login status in a store using an app extension?

VishalChandola
Shopify Partner
11 0 0

How can I ascertain a customer's login status within a Shopify store using a Shopify app extension? I've developed a discount app and now seek to determine whether the customer is logged into the store or not.

Replies 3 (3)

Dan-From-Ryviu
Shopify Partner
11612 2276 2456

Hi @VishalChandola 

You can use this code to check if customer logged in 

{% if customer %}

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

VishalChandola
Shopify Partner
11 0 0

Hi @Dan-From-Ryviu, thank you for your response. However, I am seeking to retrieve the logged-in status of a customer within the Shopify app extension I've developed. Could you please assist me with this?

Dan-From-Ryviu
Shopify Partner
11612 2276 2456

Sorry but I don't have any idea on your question

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.