Skip to Content Skip to Menu

Purchasing Discount Coupons

  • publish
  • publish
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
6 years 11 months ago #298491 by publish
Purchasing Discount Coupons was created by publish
Hi,

I'm trying to implement a group/family plan on mysite. I already had a subs system, and have just got CB/Groupjive to add a community to the site but the community side would benefit from a group subscription.

I've been reading the 2 tutorials - Family Plan and Purchasing Discount coupons.

Purchasing Discount coupons seems the easiest to implement, however I'm unclear about the membership dates. My subscribers are added to a usergroup to allow access to restricted content.

Following the Purchasing Discount coupons tutorial,

Use Case 1 - a plan that creates a 5-use coupon code, potentially the code could be used at 11 month intervals to get almost 5 years of access? - the single user plans could be purchased at 100% discount at any time in the future?
Use Case 2 - limit the validity of the coupons to a month - the single user plans would at most be valid a month after the initial subscription.

The tutorial makes a note that in use case 2 the single user might expire after the family plan, but it doesn't mention this in use case 1.

Is this correct for use case 1?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 11 months ago #298513 by krileon
Replied by krileon on topic Purchasing Discount Coupons
Generating coupons is the easiest approach. There's no features in place for managing subscriptions for other users. You can generate coupons from latest CB Auto Actions now as well using CB Paid Subscriptions action type so you don't have to deal with direct database queries anymore. This can be combined with the below to generate coupons when they subscribe to a specific plan for example.

Plan Active
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Equal To A

Plan Expired
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Not Equal To A


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum