Conditional Logic Question

I may be missing something (tends to be the case) but is there a way to conditionally display something based on a specific product that the customer owns (Woo) & the status of said product? For example:

  1. Sell Membership A as a standard Woo Subscription product
  2. If customer purchases Membership A and Membership A subscription is Active then show thing.

Thought perhaps I could accomplish this with some custom strings but I’m at a loss.

If not possible, this would be super great as a future feature. Could essentially do away with most bloated membership plugins.

1 Like

Hi @DoncoMarketing,

Sure! Element Conditions allow things like:

  • Checking if a user has a particular role
  • With a String Expression you could pull in a user meta field
  • With a String Expression you could actually run a shortcode and do something like [is_member]YES[/is_member] | is | YES

I’m not sure how exactly that would tie over to WooCommerce Subscription products, but I’m sure there are some ways to bridge the gaps. I’ve not used any of them in particular, but it looks like the Groups WooCommerce plugin could be used with Groups to manage automatically adding/removing WordPress roles or the shortcodes from that plugin could be used.