0
votes

I'm trying to add a feature in a shopify app that blocks a certain customer from accessing a certain product, but I found out that I can block access from the site's theme. But how can I control customer access from an app and not from the theme, or is there a way I can edit the theme using an app's backend?

1

1 Answers

0
votes

You can use the assets api to modify theme files. You could use this to update a snippet that contains your logic and then process the layout to make sure the snippet is included.