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 CiviMember (Moderator: Deepak Srivastava) »
  • Early Bird Discount for rolling memberships
Pages: [1]

Author Topic: Early Bird Discount for rolling memberships  (Read 711 times)

ted

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: Joomla 1.5.26
  • MySQL version: 5.1.65-cll
  • PHP version: 5.2.17
Early Bird Discount for rolling memberships
October 22, 2012, 07:30:23 am
Hi forum members,

I am attempting to set up a discount for members who renew and pay for their memberships 30 days early. They get a 10% discount for paying early and I would like to have that discount be reflected in civi for their memberships and contributions. Is this possible? If so, how can it be done? I have looked at managing the price sets but it appears that this only works for static memberships not rolling ones.

Thanks,

ted

ted

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: Joomla 1.5.26
  • MySQL version: 5.1.65-cll
  • PHP version: 5.2.17
Re: Early Bird Discount for rolling memberships
October 25, 2012, 07:05:55 am
Still having this issue if anyone has anything.

Thanks,

ted

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Early Bird Discount for rolling memberships
October 25, 2012, 12:06:54 pm
Sounds like you want the membership fee to be discounted by 10% if a renewal is being done 30 or more days prior to end of current membership. Pretty sure you'll need to handle this via custom code in a 'hook'. Note that if user isn't authenticated - the form has no way of knowing whether this is a renewal or a new membership etc. until postProcess - so you'll probably have to handle it in 2 places.

http://book.civicrm.org/developer/current/techniques/hooks/
http://wiki.civicrm.org/confluence/display/CRMDOC42/Hook+Reference#HookReference-hookcivicrmbuildAmount
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Early Bird Discount for rolling memberships

This forum was archived on 2017-11-26.