Skip to Content Skip to Menu

CBSubs - Confused About Functionality #2

  • rustle44
  • rustle44
  • OFFLINE
  • Posts: 40
  • Thanks: 4
  • Karma: 1
10 years 7 months ago #242830 by rustle44
Hi Guys thanks for the quick replies in my previous post

I have completed the manual in its entirety now, but I still have a couple of questions:

First off great manual and thank you for all of the step by step payment plugin pages as well usage case studies, this really helped me.


Now the questions

1) Can site admins issue credits to a user during an active subs?
For example a user is upset with the service, and because of their dissatisfaction we will offer 2 free months of service.
I guess this would involve postponing the billing for two months... Is this possible?

2) Can a user purchase a multitude of subscriptions(quantity) at the same time?
For example a coffee roasting factory will be offering roasted coffee subscription plans.
1 lb/week - 1 lb/bi-weekly/ - 1 lb/month

Can a user order a 2 x 1 lb/week to double their order?
- or - do you have to create a 2 lb/week plan to accommodate this request as well?

Last item
we have some subs which will require a purchase order to be created in Virtuemart (existing)so that our factory can produce the items as it does with the current web store.
So we will be creating a custom cbplugin which will allow us to create orders every time the associated cbsubs transaction is successful.

If you are interested we can share this script with you when complete? Just a thought...

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242847 by krileon
Replied by krileon on topic CBSubs - Confused About Functionality #2

1) Can site admins issue credits to a user during an active subs?
For example a user is upset with the service, and because of their dissatisfaction we will offer 2 free months of service.
I guess this would involve postponing the billing for two months... Is this possible?

If it's not an auto-recurring payment then yes. You can edit the subscription within CBSubs > Subscriptions by clicking the # under ID and edit the expiration date to extend it by 2 months. For auto-recurring payments I don't think you can as even if you change the expiration date the payment will still auto bill from the gateway.

Another option is instead of extending an existing subscription is to give them a coupon using CBSubs Promotions for a discount on any future purchase.

2) Can a user purchase a multitude of subscriptions(quantity) at the same time?

No, not currently. The "quantity" feature is only visually implemented and not used yet, but it's planned as for example it'd be handy to have a quantity for a merchandise plan. The only thing I can suggest at this time is create multiple versions of the plan with incrementing prices to show increased quantity being purchased.

we have some subs which will require a purchase order to be created in Virtuemart (existing)so that our factory can produce the items as it does with the current web store.
So we will be creating a custom cbplugin which will allow us to create orders every time the associated cbsubs transaction is successful.

You probably don't need to create a plugin. You can use CB Auto Actions and its Code action with method set to PHP on the CBSubs triggers to execute PHP code. You can also use CBSubs SQL Actions or a Query action if all you need is database inserts for example. Below for example is the trigger and conditional you'd use in your action.

Subscription of PLAN_ID as become Active
Triggers: onCPayUserStateChange
Conditional 1: [var3] Equal To PLAN_ID
Conditional 2: [var2] Equal To A

Subscription of PLAN_ID as become Expired
Triggers: onCPayUserStateChange
Conditional 1: [var3] Equal To PLAN_ID
Conditional 2: [var2] Equal To X

If you are interested we can share this script with you when complete? Just a thought...

You can publicly share it here for the community benefit as you see fit. We will be discontinuing support for VirtueMart integrations in a future release due to too many rapid changes in VM API and Database usage/structure making it impossible for us to maintain integration.


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