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 (Moderator: Dave Greenberg) »
  • Class Cards
Pages: [1]

Author Topic: Class Cards  (Read 1688 times)

mr.andrey

  • Guest
Class Cards
August 05, 2008, 10:27:12 am
Hello,

We have a yoga studio with people buying class cards in person and online. We want to keep their class card information (how many classes they have left) online for us and them to see. We have the attendance sheets, and would like to be able to select the users from the list and do a mass class-card-minus-one for all who attended. Is that possible to do?

Many thanks,
Andrey.

P.S. I'm new to CiviCRM, but have a good understanding of Drupal. So far it looks pretty amazing!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Class Cards
August 05, 2008, 02:44:56 pm
I think you'd have to create some custom code which does a new "action" from the search interface in order to handle the  "mass updating" as you've described. There is a "Batch Update via Profile" function which gives you an editable grid of any core or custom contact, participant, contribution or membership fields - but this feature allows you to set all values in a column to the same value w/ one click OR update each row. It doesn't have a "subtract one" function.

Might be easier to discuss this after you've played with things a bit and thought about how you want to store the class card-class remaining data. Alos, can people buy different levels of class cards? (e.g. 5 class card, 10 class card, etc.). If so, one approach would be to set this up as a price set field with select options and use a single Online Event for them to "buy" these online.
Protect your investment in CiviCRM by  becoming a Member!

mr.andrey

  • Guest
Re: Class Cards
August 05, 2008, 03:01:45 pm
Hi Dave,

Thanks for the reply.

I think "Batch Update via Profile" with the grid where the admin can manually alter the dates will work fine for me as a start. I think as I learn more about CiviCRM, I will write something like a "subtract one" function to automate this process.

I'm not entirely clear what you mean by the last paragraph. People can buy different levels of class cards (5 for $60, 10 for $110, 20 for $200 as well as a drop in for $15). I looked at the event registration with multiple price options, which looks good. I think that would be ideal. Is there a way to automatically trigger a profile field having a value increased by 5,10 or 20 when someone buys (registers) the class card (event)?

Thanks for your time and ideas,
Andrey.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Class Cards
August 05, 2008, 03:51:36 pm

not sure what you mean by "automatically trigger a profile field having a value increased by 5,10 or 20 when someone buys (registers) the class card (event)?". however, in v2.1, you can implement the "postProcess" hook and basically do additional db operations based on the db state / $_POST / other parameters. If by "automatically trigger", you mean update a "custom" field when someone registers for a class, then you should be able to use this hook

Note that 2.1 is not yet released, an alpha is scheduled to go out tomorrow

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mr.andrey

  • Guest
Re: Class Cards
August 05, 2008, 04:15:59 pm
Hello Donald,

Thanks. That's exactly what I meant. The post-process operation that can increase an integer value of a custom profile field by X when someone registers for a class.

Do you have any idea of how long it might take for 2.1 to be production-stable?

Many thanks,
Andrey.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Class Cards
August 05, 2008, 05:10:38 pm

the approximate schedule is here: http://wiki.civicrm.org/confluence/display/CRM/CiviCRM+v2.1

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Class Cards

This forum was archived on 2017-11-26.