Hello all, I'm kinda new to solidus and I'm lookin...
# support
j
Hello all, I'm kinda new to solidus and I'm looking for a way to make it so that accessing the storefront requires a login before seeing products not just prior to checkout. Is there a config that I have not found yet or guide that would help point me in the right direction?
c
Hey Jason 👋 I don’t believe there is a configuration that would enable this, but it shouldn’t be too hard to customize your storefront to achieve this behaviour. I am curious which frontend you are using for your store, is it
solidus_frontend
or
solidus_starter_frontend
? In either one you can probably modify your products controller and force it to require authentication.
☝️ 1
You need to move the definitions somewhere else that is accessible by your products controller and call the
before_action
hook
j
I used the starter_frontend. Thank you both this is great
👍🏼 1