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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • CiviEvent queries pls
Pages: [1]

Author Topic: CiviEvent queries pls  (Read 624 times)

chen2401

  • Guest
CiviEvent queries pls
May 22, 2010, 09:15:25 am
hi,

hope some Civi guru can help me out here.  ;D

What we want: client/admin uses for to fill in details, choose event and pay for it.

The thing is, there are several events, all with different prices. Is there a feature in civievent whereby we can select a course and its unique price will autopopulate a field, or something like tt? Cos it seems like right now we will have to create different forms for diff events.


Thank very much in advance!

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: CiviEvent queries pls
May 23, 2010, 04:36:36 pm

you can potentially try doing this with the buildAmount script and a fair amount javascript

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmbuildAmount

in this url:

http://drupal.demo.civicrm.org/civicrm/participant/add&reset=1&action=add&context=standalone

the fee block is populated via the event id. You will need to extend that code to:

1. send in the courseID in the php/javascript
2. ensure that the course custom field is filled before the event id, so you can send in the course id

u'll need to have some way of mapping the course id to the fees

depending on the number of courses, having multiple events might be easier

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviEvent queries pls
May 25, 2010, 04:11:20 pm
Not completely sure I understand your requirement. You can definitely use the "back-office" Register Event Participant form to:
- select from a list of events
- and the fee structure pre-populates for you

You can try this out on the public demo here (selecting Event Registration from the "create new" dropdown in the left-hand column):
http://drupal.demo.civicrm.org/civicrm/participant/add?reset=1&action=add&context=standalone

In Joomla, you would login to Adminstration site, and select CiviCRM from Components - then use dropdown above.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • CiviEvent queries pls

This forum was archived on 2017-11-26.