# Membership tiers?

**URL:** <https://forum.ghost.org/t/membership-tiers/9665>\
**Category:** Memberships & subscriptions\
**Created:** [October 23, 2019, 1:41am UTC](https://forum.ghost.org/t/membership-tiers/9665 "2019-10-23T01:41:06Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![badrihippo](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/badrihippo/32/3213_2.png) [@badrihippo](https://forum.ghost.org/u/badrihippo)\
**Post date:** [June 12, 2020, 5:29pm UTC](https://forum.ghost.org/t/membership-tiers/9665/20 "2020-06-12T17:29:18Z")

</div>

> [@nolan](#):
>
> 1. I understand we can get back an array of subscriptions, but I don’t know enough about Handlebars to know if this is enough to let us gate content. Say for instance we have three plans–tier1, tier2, and tier3. I’d want to do something like (pseudocode):
> 
> ```auto
> {{#if @member.subscriptionPlans.contains("tier1") }}
> 
> ```
> 
> I don’t know if Handlebars lets us use even _that_ much logic, but as of now we’d have to iterate through the subscriptions, collect the plan names, and check inclusion against that list. Unless I’m missing something, that’s a lot of logic to pack into themes, and we’d need that even if we _did_ find a platform that managed memberships through Stripe.

Ghost’s themes don’t natively support that much logic, but the underlying Handlebars engine does. According to [this blog post](https://whitfin.io/adding-custom-ghost-handlebars-helpers/), one can write a custom helper (in this case, to check the `@member.subscriptionPlans.contains('tier1')` you mentioned). However, you’d have to go right into the Ghost source-code, and manually replace it every time Ghost is updated.

[https://whitfin.io/adding-custom-ghost-handlebars-helpers/](https://whitfin.io/adding-custom-ghost-handlebars-helpers/)

You can probably write a script to insert it automatically each time, but either way this option will only be available to self-hosted users.

Those caveats aside, this setup seems quite promising. We could even replace the subscriptions page with custom code, ignoring the tier settings and hard-coding Stripe values directly, which would make for a more seamless experience (at least as far as the user is concerned—little will they know what’s going on behind the scenes! 😉)

---

_[View the full topic](https://forum.ghost.org/t/membership-tiers/9665)._
