Please Log in or Create an account to join the conversation.

Please Log in or Create an account to join the conversation.

Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.

That's necessary otherwise CBSubs won't be loaded. Add global $_PLUGINS; above that. Have edited my post with that fixed as that was added after testing my implementation since it wasn't needed when testing in CB Auto Actions.I had to remove the "$_PLUGINS->loadPluginGroup( 'user' );" line, because I was getting a nullptr dereference. But the rest of the code seemed to work so far.
Correct, your plans can't be combined. If you can't purchase the subscription plan and the donation plans normally from frontend then it won't work. The idea is you first configure them so they purchase fine from frontend then just hide them by configuring them to only display if accessed by URL. So I would do this first before worrying about the code. I'll see if I can write some code that bypasses this, but I'm not sure what'll happen if you do since that's not really a case CBSubs is designed for.I assume this is not necessarily a problem with the code but rather with how I have configured the plan.
Ok, will provide an example with the line item text overridden as well.I hope that adding this "template plan" to the basket will also let me programmatically change its description (same for the invoice) like you mentioned in your reply
Maybe one day, but it's never how we intended CBSubs to be used as it's a subscription manager not a storefront.if you ever decide to make a "proper" API for this, I'll gladly switch over to it
Please Log in or Create an account to join the conversation.

Please Log in or Create an account to join the conversation.