Skip to Content Skip to Menu

Gift Subscription Question

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
2 years 9 months ago - 2 years 9 months ago #328560 by liaskas
Gift Subscription Question was created by liaskas
Hello

For many years i am using the solution of the tutorial provided here...
www.joomlapolis.com/support/tutorials/107-use-cases/18407-purchasing-discount-coupons

to allow my users to send paid coupons to other members.

The procedure of sending the coupon from the buyer to the receiver is not exactly how we want it to be because members without an active subscription are not allowed to communicate with other members. So the buyer of the coupon can not send the gift coupon to the receiver.

For all these years, the buyer notifies us who the receiver is and we have to manually activate the subscription for the receiver using the buyer's coupon.

We have a tab in each user's profile named "Activate a subscription for [username]"

In this tab we provide a direct link to the coupon order page.

Since many years have passed and lots of improvements took an still take place in CB, has a way been found so that a user can directly activate the subscription for another user instead of ordering a coupon?

I remind that users can not communicate unless they have an active subscription... they do not know each other's mail, so i guess that family plans are also not good for the situation.

Any advise?

Thank you.
Last edit: 2 years 9 months ago by liaskas.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48534
  • Thanks: 8290
  • Karma: 1445
2 years 8 months ago #328571 by krileon
Replied by krileon on topic Gift Subscription Question
CBSubs Family Plans would be the best way to do this, but given they don't know each others email addresses that'd be a problem. Currently CBSubs Family Plans doesn't let you share directly with another user and requires email address. There are plans to improve this eventually to allow directly sending the share request to a specific user without needing to know their email address.

For now the only way I can see to improve your current usage is to have a custom form via form extension that submits to an auto action URL, which can be used to give a subscription to another user. This at least removes you needing to manually give a subscription to someone and lets them do so using a form.


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.

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
2 years 8 months ago #328576 by liaskas
Replied by liaskas on topic Gift Subscription Question
Thank you for your reply Krileon.

Yes, i know about the CBSubs Family Plans. We have discussed this in the almost 2 years ago here

For now the only way I can see to improve your current usage is to have a custom form via form extension that submits to an auto action URL, which can be used to give a subscription to another user.


You mention "form extension". Is it a particular cb plugin, a particular joomla extension or any joomla form creating extension?

What type of auto action and what trigger is needed for this procedure?

I suppose that there is not a tutorial for such usecase. Can you please explain in details how we have to do it?

There is no time rush or any time deadline. I can wait till you find some time to guide me.

Thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48534
  • Thanks: 8290
  • Karma: 1445
2 years 8 months ago #328585 by krileon
Replied by krileon on topic Gift Subscription Question

You mention "form extension". Is it a particular cb plugin, a particular joomla extension or any joomla form creating extension?

You'd need to use a 3rd party form extension for Joomla.

What type of auto action and what trigger is needed for this procedure?

The CB Paid Subscriptions auto action can be used to give subscriptions.

I suppose that there is not a tutorial for such usecase. Can you please explain in details how we have to do it?

That depends on how you let users decide who to give the subscription to. By username? By name? By user id?


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.

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
2 years 8 months ago #328591 by liaskas
Replied by liaskas on topic Gift Subscription Question

That depends on how you let users decide who to give the subscription to. By username? By name? By user id?


By username

Actually i have not completely understood how it will work.

The buyer will buy a coupon and send the coupon through a form to the receiver?
or
The buyer will fill the the recipients username in the form and will complete the subscription activation as he was the other user?

I had in mind to set this form in a user profile tab so that when the buyer visits another user's profile to be able to order a subscription for the displayed user.

Isn't it possible to get the data of the displayed user if you are in someone else's profile?

Thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48534
  • Thanks: 8290
  • Karma: 1445
2 years 8 months ago - 2 years 8 months ago #328607 by krileon
Replied by krileon on topic Gift Subscription Question
You'd need the recipient user to accept the gift subscription since just giving a user a subscription against their will could be a possible problem and there could be strange conflicts (e.g. already gifted a subscription or subscribed manually). Since you're wanting gift subscriptions then CBSubs Family Plans will never be a solution since it's for sharing subscriptions and not buying them for someone.

I'm honestly not sure how to best go about this. An entirely different plugin built from the ground up to gift subscriptions would be the best solution. I've added a feature ticket to look into developing such a plugin for a future release since it's a good idea.

forge.joomlapolis.com/issues/8869

For now I think maybe you could do this without needing to generate coupons. The below is probably how I'd do this.

1. Create a "cb_gifts" integer field. This will contain the number of gifts I have to give away. If there are multiple plans then use "cb_gifts_PLAN_ID_HERE" name structure.

2. Create a CBSubs plan to purchase these gifts. This would use CBSubs Fields integration to increment the "cb_gifts" field by 1.

3. Create a Custom HTML field and use CB Conditional to condition against the viewing user to see if the viewing user has cb_gifts>0. Next add a condition to check if the displayed user is already subscribed to the plan being gifted. This ensures the field can only display if there's even something to gift.

4. Create 3 auto actions. 1 is type CB Paid Subscriptions and gives a subscription to the action user, no triggers, and turn off direct access. 2 is type Field and will reduce cb_gifts by 1 for the viewing user (User: Self), no triggers, and turn off direct access. 3 is type Action and all it does is call Action 1 and Action 2, but it MUST have the same conditions as the cb_gifts field, and for Output use a redirect to redirect back to the displayed users profile.

5. In the Custom HTML field you'd just create a button that links to Action 3. Now they just need to click that button to give a subscription to the displayed user.

This is just a quick rundown of how I'd go about it. It automates the entire process and allows easy gifting directly on profiles when viewing those profiles. This also eliminates generating coupon codes. More steps, processes, etc.. can be added to all of this using auto actions. For example you could create a database table to store gifted subscriptions, add it to Action 3 as done with 1 and 2, then display it using CB Query Field.


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.
Last edit: 2 years 8 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum