Need help with "Login to View Price" functionality using Theme App Extension

Hi everyone,

I’m currently developing a Shopify app that hides product prices unless the customer is logged in, essentially a “Login to View Price” feature. I’m using “Theme App Extensions” to keep it as clean and theme-compatible as possible.

I’ve managed to get the basics working, but I’m running into issues with:

  • Dynamically hiding/showing prices on product and collection pages across different themes
  • Ensuring compatibility without breaking native theme structures
  • Managing performance without overusing Liquid or client-side hacks

Has anyone here implemented something similar or encountered the same challenges?
I’d really appreciate any tips, references, or even examples of how this can be handled more reliably.

Thanks a lot in advance, happy to share code snippets if needed!

Best regards.