Recurring Payments Only

  • jeffslough
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago #19898 by jeffslough
Recurring Payments Only was created by jeffslough
Is it possible to set the form to just recieve recurring payments? In other words remove the one off donation opton. :side:

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 6 months ago #19924 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Recurring Payments Only
HI Jeff

Unfortunately, it is not possible. You can disable recurring option but not possible to disable one time option. In this case, I think we will have to customize code to meet your need.

Regards,

Tuan

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

More
10 years 8 months ago #34185 by John Rolf
Replied by John Rolf on topic Re: Recurring Payments Only
I need this too. Actually, all I want to do is find a way to have the recurring checked by default on a form with recurring. Then I can hide that field from view so they can't change it. Is there a way to edit a file or database entry somewhere so when the radio button for giving type is there, it defaults to Recurring?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
10 years 8 months ago #34193 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Recurring Payments Only

Dan Nethery wrote: I need this too. Actually, all I want to do is find a way to have the recurring checked by default on a form with recurring. Then I can hide that field from view so they can't change it. Is there a way to edit a file or database entry somewhere so when the radio button for giving type is there, it defaults to Recurring?


Open the file components/com_jdonation/views/donation/view.html.php, find the code below :
Code:
$donationType = JRequest::getVar('donation_type', 'onetime') ;

Change it to :
Code:
$donationType = JRequest::getVar('donation_type', 'recurring') ;

After that, it should work as expected !

Regards,

Tuan

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

More
10 years 8 months ago #34234 by John Rolf
Replied by John Rolf on topic Re: Recurring Payments Only
I actually tried this and then I realized that I do want some forms to be one time only. Can I pay you to add a bit of code that sets the default choice to "recurring" if a form has recurring enabled? I can hide the field on those forms then with some CSS and an HTML override to give me some unique CSS wrapper on the forms.

So again, what I'd love to see (even in the 1.5 version as this site hasn't been upgraded yet) is the behavior of the form to be: if a form has recurring enabled, recurring is the default checked state for the donation_type radio buttons.

Does that make sense?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
10 years 8 months ago #34240 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Recurring Payments Only
Hi Dan

The question is how I can know that I know a form has recurring enabled ? You have different form ? And create a different menu item to link to it ?

Please explain your setup so that I can think about it !

Regards,

Tuan

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

More
10 years 8 months ago #34252 by John Rolf
Replied by John Rolf on topic Re: Recurring Payments Only
I just meant each form config can have recurring set as an option. If that option was set I wanted the live form radio buttons to default to recurring instead of one time. I can hide them myself. I did an HTML override that sticks the form name I the table class of the form so each one is unique.

I'm at the doctor using my phone I will post with screen shots when I can.

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

More
10 years 8 months ago #34261 by John Rolf
Replied by John Rolf on topic Re: Recurring Payments Only
Here are some images that might help:

The first is the campaign config:



And then what I want to see changed:




I hope that makes sense!
Attachments:

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
10 years 8 months ago #34397 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Recurring Payments Only
Hi

I think this customization will take my dev about one or two hours of coding. And it will cost you 20$. If you agree, please submit a support ticket sending us admin and FTP account of your site so that we can do the work for you.

Tuan

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

More
10 years 8 months ago #34714 by John Rolf
Replied by John Rolf on topic Re: Recurring Payments Only
I'm going to actually do this through my other account (this one is my day job), so I'll be repurchasing the component (my subscription ran out for the site I'm doing this for).

But I wanted to make sure we're on the same page.


What I'd REALLY love to see is each campaign to have 3 options:
#1 Single payment only
#2 Recurring only
#3 Both single and recurring

this would be instead of just changing the default selection.

Can you calculate the number of hours (and if you even have any interest in doing this to your public release) and then get back to me? If it's NOT something you want to do, then we'll just go with the original idea, which is changing the default to Recurring for forms that have recurring enabled on them.

thanks!

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

Moderators: Mr. DamDũng Nguyễn Việt