Please Log in to join the conversation.
jamesmoeller wrote: I'm using CB Subs for my customer membership subscription system and DT Register as my event registration system. I need a way to sell memberships that enable the customer to sign-up (at either a discounted rate or for free) a certain number of events. DT Register has the capability to manage discount codes on event registrations. So what I'd like to do, if this is possible, is use the Auto Actions capability to trigger a script when a customer purchases a membership subscription. That script will then generate a unique customer-specific discount code, and communicate that code to the customer via the "thank-you" email, and finally it will execute an SQL command that will create the new active discount code within DT Register. I'll work with the DTH Development folks on the SQL command that creates the active discount code in there program. But does the rest of this sound like a do-able thing in CB Subs and Auto Actions? If so, any initial advise on how to approach this?
If I'm going about this all wrong or you know of an easier way to accomplish this, feel free to suggest that as well. But, from what I've found, none of the membership subscription systems and event registration systems seem to be all that well integrated to enable what I'd like to do.
Thanks,
Jim
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
To act on CBSubs subscription activation/deactivation you can use the below trigger and conditionals.Problem #1: I have had nearly no success in figuring out how to trigger this php code with CB Auto Actions off a CB Sub plan activation so that the custom field can be updated before the “thank-you” email goes out. This code generally works when I trigger it from something like “user login”, but I’d like it to trigger it when a new CB Subs plan is activated. I’ve gone through many forum posts and tried many different settings combinations….with no result. It mostly just doesn’t trigger. How do I trigger this at a point in the workflow where the customer’s environment variables are all accurate and usable by my php code?
If you use the above trigger then [var3] is the Plan ID. What variables are available depend entirely on what trigger is used. You can see a list of triggers and their variables in the below tutorial.Problem #2: I also need to know the specific CB Subs plan (i.e. plan id or alias) that was selected so that I can alter the event registration discount code value and incorporate that into the SQL INSERT to set that table entry in the event registration program. Is there a way that the plan IDs are communicated to the php code executed within CB Auto Actions?
We'll be working on improving documentation after CB 2.0 goes Stable. Currently we've several examples which you can find below in addition to the trigger list above.No offense, but IMHO, the entire topic of CB Auto Actions is crying out for some more documentation. CB Auto Actions and CB Subs SQL Actions integrations are very cool and powerful features…just need to be explained a bit better.
Please Log in to join the conversation.