Hi Shopify Community,
I want visitors to be able to browse products freely, but only registered users should be able to add items to the cart or proceed to checkout.
Instead of using Shopify’s native customer accounts, I plan to use an external user service (custom authentication system) for registration and login.
I’m looking for guidance on:
-
Server-side solutions to enforce login before purchase, ideally integrating with an external user service.
-
Shopify-native options like Shopify Functions, checkout settings, or app proxies for enforcing login securely.
-
Best practices for routing Add-to-Cart and Checkout requests through an external authentication check.
-
Limitations or pitfalls for non-Plus Shopify stores.
-
Examples, code snippets, or apps that support external authentication before purchase.
Any tips or real-world implementations would be highly appreciated — I want to make sure users cannot bypass login, even via direct API calls.