CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Restricting time periods for recurring payments
Pages: [1]

Author Topic: Restricting time periods for recurring payments  (Read 1568 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Restricting time periods for recurring payments
September 24, 2007, 09:37:26 pm
I am already using PayPal Standard to handle recurring donations on my website. It is working fine. Yet I would like to restrict the time periods that a person can choose from when doing recurring donations. Right now the end-user can choose "days(s), week(s), month(s), year(s)". I would like to restrict them to just months.  Is there a PHP or HTML file I can edit to make this happen? Or a global or page setting?

I am using CiviCRM 1.8 with Joomla 1.0.13.


Thanks,
Sarah
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Restricting time periods for recurring payments
September 25, 2007, 12:01:56 am
No such setting as of now, but you can do the following change:

In file :
Quote
civicrm/CRM/Contribute/Form/Contribution/Main.php

replace

Quote
$units = array( 0       => ts( ' -period-' ),
                  'day'     => ts( 'day(s)'    ),
                  'week'  => ts( 'week(s)'  ),
                 'month'  => ts( 'month(s)'),
                  'year'    => ts( 'year(s)'   ) );

with:

Quote
$units = array( 0       => ts( ' -period-' ),
                 'month'  => ts( 'month(s)') );

Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Restricting time periods for recurring payments
September 25, 2007, 10:21:48 am
Thanks! Worked perfectly.

Any chance this could be a Contribution page/global setting setting in a future version of CiviCRM?

-Sarah
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Restricting time periods for recurring payments
September 25, 2007, 11:54:04 am
I think either making this configurable, or just restricting the options a bit probably makes sense. I've posted a tentative issue to re-visit this for 2.1: http://issues.civicrm.org/jira/browse/CRM-2305

I would be interested in hearing from others who use this feature.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Restricting time periods for recurring payments

This forum was archived on 2017-11-26.