Set Recurring Payment as default

  • Tim Chapman
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 months ago #2615 by Tim Chapman
Set Recurring Payment as default was created by Tim Chapman
I made some changes to the form plugin to list recurring payment first and make it the default. The problem that I am having now is that if you click "one time" it does not remove the frequency questions. If I click back on recurring and then one time, the frequency questions are removed. Why won't it do it the first time? Is there something else I need to change in the code?

Also, I saw this question in the discussion, but didn't find an answer. Is there a way to have a custom field display in the donor information section instead of in the donation information section?

Thanks

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

More
14 years 1 month ago #2860 by Simon Tayler
Replied by Simon Tayler on topic Re:Set Recurring Payment as default
Hi, I'd also like to know this. Can you help?

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

More
14 years 1 month ago #2866 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re:Set Recurring Payment as default
Hi

Could you send me your site information (FTP account and Joomla administrator account) so that I can check it for you ?

Thanks,
Tuan

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

  • Tim Chapman
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 1 month ago - 14 years 4 weeks ago #2897 by Tim Chapman
Replied by Tim Chapman on topic Re:Set Recurring Payment as default
Recurring questions don't appear in IE but they do appear in Mozilla. I re-installed the component and the jdform plugin and it still doesn't work in IE. Any ideas?
Last edit: 14 years 4 weeks ago by Tim Chapman.

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

More
13 years 2 months ago #8196 by Erin Fernandez
Replied by Erin Fernandez on topic Re: Set Recurring Payment as default
did you resolve issues you were having? If so, I want to make recurring payments the default as well... can you tell me how you did it?

Thanks in advance!!

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

More
13 years 2 months ago #8208 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Set Recurring Payment as default
If you are using donation view in the component, you can set recurring donation to default option by modifying the code alitle. Open the file components/com_jdonation/views/donation/view.html.php, looks at this line of code at line 151:
Code:
$donationType = JRequest::getVar('donation_type', 'onetime') ;

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

If you are using donation form plugin, then you will need to modify the code in the fine plugins/content/jdform.php, change the code at line 181 :
Code:
$donationType = JRequest::getVar('donation_type', 'onetime') ;

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

Hope this help !

Tuan

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

More
13 years 2 months ago #8219 by Erin Fernandez
Replied by Erin Fernandez on topic Re: Set Recurring Payment as default
Thanks Tuan.
It worked !!! I hope it helps others too!

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

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