courtly
courtly
courtly
courtly

Upcoming Events

San Francisco CiviCRM Meetup - February 8th, 2012
February 8th, 2012
Come meet others from the Bay Area who are interested in, using or developing (more...)

UK usergroup - London meetup
February 8th, 2012
Come and meet others from the UK that are using CiviCRM or are interested in (more...)

London user and administrator training
February 23rd, 2012
A comprehensive two day hands on training course covering the configuration, (more...)

CiviCRM London sprint Feb 2012
February 27th, 2012
Following the CiviCRM training here in London, we will have a CiviCRM code (more...)

UK South West - CiviCRM Meetup
March 20th, 2012
Come meet others from the Area who are interested in, using or developing for (more...)

[Bristol, UK] user and administrator training
March 21st, 2012
A comprehensive hands on training course covering the configuration, (more...)

San Francisco user and administrator training
March 29th, 2012
A comprehensive two day hands on training course covering the configuration, (more...)

CiviCRM Usability, Test and Code Sprint - San Francisco (March 2012)
March 29th, 2012
This usability, code and test sprint is targeted at CiviCRM users and (more...)

CiviCon 2012 San Francisco Bay Area - April 2nd 2012
April 2nd, 2012
CiviCon is THE annual event bringing together the people who use, develop, (more...)

CiviCRM Documentation, Test and Code Sprint - after CiviCon San Francisco (April 2012)
April 4th, 2012
This sprint is targeted at CiviCRM users and developers who want to work on (more...)

CiviCRM Components

Tools for engaging your supporters...

CiviContribute


CiviEvent


CiviMail


CiviMember


CiviReport


Membership Price Sets

Not Just a Contact Database

These optional components give you more power to connect and engage your supporters.

  • civiCASE

  • Case management for clients and constituents.

  • civiEVENT

  • Online event registration and participant tracking.

  • civiMEMBER

  • Online signup and membership management.

  • civiMAIL

  • Personalized email blasts and newsletters.

  • civiREPORT

  • Report generation and template management.

April 17, 2009 - 13:02 — chrisivens

I had to add some price sets to our recent project and I think I managed to get both the existing system and the price set system to work side by side. To give you an idea of why I had to do it, think of this; you have a specific membership open to organisations, the amount that the organisation needs to pay to join is based on its size. A company of 2-4 people will pay less than a 300+ employee company.

How did I do it? I added a system similar (and borrowed code) from the events system. I used the custom fields and not the price sets as defined in events. When I had the prices available I had to implement a complicated radio button system (complicated in code not usability) to get the price chosen. This means that if a price set is available, it will be shown and can be selected as a sub set of the main membership options.

I guess the best thing to illustrate this may be a picture. We haven't finished the theme yet so here is a VERY small glimpse of what we have set up.

( categories: )

Comments

Okay this looks popular

I'll have to write something a little more in-depth and hopefully add a patch file for anyone interested. I run v2.1 so I will have to focus on this for the post but much of what I write will transfer to 2.2+ I reckon. If anyone wants to step up and help produce a patch for 2.2 then let me know. It's a volunteer thing so I only have so much time until the wife moans :)

Things are looking promising for this to make Core in 2.3 too.

Bring it on!

Being able to offer membership uplifts via price sets has long been a major stumbling block. CiviMember is long due a phase two rework and this code would be a fantastic inclusion. Just wish I was a coder who could offer the project more. I realize that many of the other new features and modules that have been added over the last couple of years enhance the whole solution but I can wholeheartedly give my vote for a CiviMember overhaul.

Nice one!

Got to get me one of those

This looks like a nifty solution to a requirement that I have as well.

Any more detail on how the magic was weaved?

Daragh

Thoughts on code

I know it's a comment on my own post but I'd just like to say something about the code needed to do this. I thought it was going to be a lot more work but credit where it's due, most of the raw material was there to do this. If needed I can provide full code on my changes but I'd say that it would be too much to go into here.

looks great!

This looks great -- a functionality that I've been hoping for. Were you able to retain the full flexibility of the event price sets? So there can be unlimited number of fields using different field types? Also, do you have it working in both the front and backend?

How does it process the records -- multiple inserts into the membership table, and a single contribution record?

...very interested.