• Resolved anphira

    (@anphira)


    From the plugin description, it is not clear. Does this support only simple subscriptions, or does it also support variable subscriptions?

    Additionally, are there hooks to check if a currently logged in user has a specific subscription? For example, in the Woo Subscriptions plugin this PHP check is available to see if the currently logged in user has a specific subscription: wcs_user_has_subscription($current_user->ID, ’99’, ‘active’)

    You can also query in the Woo Subscription about specific variations for variable subscriptions. Is that possible? If so, what is the PHP call?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ben Meredith

    (@benmeredithgmailcom)

    Hey @anphira !

    Great questions, and one of them sent me down a code rabbit-hole that I never emerged from yesterday. (SO, apologies for the slow turnaround on replying!)

    First question: StellarPay subscriptions currently supports Simple products only. The roadmap for adding in additional features is still very much in flux based on user input and demand, so we’d welcome a detailed comment on this feedback post.

    Second question: There’s not currently helper function similar to wcs_user_has_subscription, but it’s definitely possible with some custom code. I’ve reached out to the development team on that, and will see what they can cook up for you.

    This will make great documentation content, so thanks for helping us to make this new product better!

    I’ll mark this post as resolved, but please keep the questions coming!

    Ben Meredith

    (@benmeredithgmailcom)

    Well that was quick: our senior engineer got back to me with this code snippet that mimics that helper function:

    https://gist.github.com/ravinderk/65575722eb90362421067992cc64dcb2

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Variable subscriptions?’ is closed to new replies.