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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Modify core code or write extension (to add partial-payment support)?
Pages: [1]

Author Topic: Modify core code or write extension (to add partial-payment support)?  (Read 991 times)

seb

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 4.6.4
  • CMS version: Drupal 7/Drupal 8
  • MySQL version: Ver 14.14 Distrib 5.5.44, for debian-linux-gnu
  • PHP version: PHP 5.6.9-0+deb8u1
Modify core code or write extension (to add partial-payment support)?
December 29, 2013, 10:40:20 pm
I need to add the option of paying a deposit for an civi-event instead of the full payment, and I am wondering, have an idea where to start, whether it would be better to modify civicrm directly or to create an extension for it? In other words can an extension modify the event workflow like that (adding the option for deposit and creating some kind of object like a shopping cart style item for the remainder of the payments) or do I need to change the code itself to do so?
« Last Edit: January 30, 2014, 10:34:59 am by seb »

spalmstr

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
  • CiviCRM version: 4.5.4
  • CMS version: Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
  • MySQL version: 5.6.21
  • PHP version: 5.6.0
Re: Modify core code or write extension?
December 30, 2013, 09:27:10 am
I'd be interested in that functionality, too.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Modify core code or write extension?
December 30, 2013, 02:35:29 pm
This is something that certainly belongs in core and we are inching toward the goal of partial payments with CiviAccounts. Depending on your experience you could get involved in the project and help us get there.
Try asking your question on the new CiviCRM help site.

seb

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 4.6.4
  • CMS version: Drupal 7/Drupal 8
  • MySQL version: Ver 14.14 Distrib 5.5.44, for debian-linux-gnu
  • PHP version: PHP 5.6.9-0+deb8u1
Re: Modify core code or write extension?
December 30, 2013, 04:38:55 pm
Well I am not in a position to be involved in long term programming projects, but I need this for something I am doing within a very short time frame, so I need to either hack the core to make the change or do some kind of extension if that's the better way to modify the default workflow for event signups :)

It shouldn't be too hard I would assume, and since we need to be able to let people make partial payments this upcoming season's events, I can't afford to wait for someone else to do it. I'd prefer to stick with Civi as I like all of it's features, you know? So I'll just see if I can hack it in myself  ;D

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Modify core code or write extension?
December 30, 2013, 08:19:57 pm
Quote
Well I am not in a position to be involved in long term programming projects
I would say that your strategy is counter to your stated goal. Let me tell you a true story: once I needed a system that could (among other things) accept partial payments for events. Instead of teaming up with the CiviCRM team to implement this, I went it alone and hacked together my own drupal module. So now I'm the proud owner of a long term programming project for which I'm the sole maintainer. If I had instead collaborated with others to write the code in such a way that it could be incorporated into CiviCRM, then the community of developers would be maintaining the code. Instead I'm stuck with it forever.
Quote
It shouldn't be too hard I would assume
Haha, that's a good one. You have much to learn young grasshopper.
Quote
So I'll just see if I can hack it in myself  ;D
Well, the benefits of working with rather than against an open source community are not always immediately obvious; many people (myself included) have to find out the hard way. But next year when you're tearing your hair out with upgrades, don't forget I told you so :)
Try asking your question on the new CiviCRM help site.

seb

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 4.6.4
  • CMS version: Drupal 7/Drupal 8
  • MySQL version: Ver 14.14 Distrib 5.5.44, for debian-linux-gnu
  • PHP version: PHP 5.6.9-0+deb8u1
Re: Modify core code or write extension?
December 30, 2013, 08:22:32 pm
I know what you are saying, but I need this within a month, not a few years from now ;)

All I was asking is if it was something to code via extension or hack of the core code

 :P

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Modify core code or write extension?
December 30, 2013, 11:09:58 pm
Work has been funded and is currently in progress for the 4.5 release to support partial payments and changes to existing event registration options - BACK-OFFICE only. Details in these issues:

http://issues.civicrm.org/jira/browse/CRM-13956 (and sub-issues).

We have possible funding for adding support for front-end partial payments - this is under discussion and we'll have a spec/sizing early next week. If your organization(s) are able to participate in funding for this, that would be quite helpful. I'll post back here once we have a spec and defined funding requirements.
Protect your investment in CiviCRM by  becoming a Member!

seb

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 4.6.4
  • CMS version: Drupal 7/Drupal 8
  • MySQL version: Ver 14.14 Distrib 5.5.44, for debian-linux-gnu
  • PHP version: PHP 5.6.9-0+deb8u1
Re: Modify core code or write extension?
January 30, 2014, 10:34:24 am
Excellent excellent!  Well we'd participate in funding but we are a non-profit and have just about no budget  ;D

I did notice the partial-payment being slightly implemented in the live civicrm 4.4.3 version, in that there's some variables and db fields being setup, but nothing happening with them.  I am just going ahead and using those to figure out how to modify the code for my temporary solution to this (because I need this up and running a month ago  :D) and then adapt to the new system eventually when it comes out (this is a summer season based event schedule we have, so the off-season is plenty of time for me to adapt our site to 4.5, if it's out by then.)




Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Modify core code or write extension (to add partial-payment support)?

This forum was archived on 2017-11-26.