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 CiviEvent (Moderator: Yashodha Chaku) »
  • Multiple Registration - Price set logic issues
Pages: [1]

Author Topic: Multiple Registration - Price set logic issues  (Read 1075 times)

martar

  • Guest
Multiple Registration - Price set logic issues
March 25, 2009, 05:50:07 am
After waiting for a year or so for the ability to implement multiple registrations with CiviCRM, I now face a couple illogical scenarios which makes this module pretty useless unless there are immediate workarounds.  Certainly, those familiar with hard coding can fix some of these issues but it seems as though during redevelopment, these seemingly minor items were not examined carefully.

Three coding issues:

-When a user selects multiple participants, she needs to select the price at the top above the participant's information. When she is taken to participant 2's page, she now needs to reselect the price again.  Ideally, the user should choose the price for the total number of participants on page 1 and when taken to participant page 2, she just needs to fill in participant's information, not enter the price again (and the email, which was covered in another post).  So, there should be a choice whether the values (price selected and email) chosen from page are to suppressed in subsequent pages but nonetheless carried over to the final check out page.

-A bug:  if you choose a price set and both fields items are of the select type, the total echoed (displayed) price by the JS is shown only for the second price field.  If the top price field utilizes radio or checkbox, the JS works fine.

-BIG BUG (almost cat size):  Using price sets, there is no way to set an item as the default "pre-selected" item for multiple field labels.  For example, if you have 2 field labels in a radio, and you'd like to set price 1 as the pre-selected item, you can't.  In my case, I wanted to have one preselected price for the registration so the user does not have to be bothered by selected a price on any of the form pages.  It is implying that the fee is such and you just need to fill in the information for the participant.

If anyone has a quick patch to any of the above, I'd really appreciate it.

-Jen in IRC


Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Multiple Registration - Price set logic issues
March 25, 2009, 06:15:27 am
Quote
-A bug:  if you choose a price set and both fields items are of the select type, the total echoed (displayed) price by the JS is shown only for the second price field.  If the top price field utilizes radio or checkbox, the JS works fine.

This is a bug and we will fix it in v2.2.2 release.

Quote
-BIG BUG (almost cat size):  Using price sets, there is no way to set an item as the default "pre-selected" item for multiple field labels.  For example, if you have 2 field labels in a radio, and you'd like to set price 1 as the pre-selected item, you can't.  In my case, I wanted to have one preselected price for the registration so the user does not have to be bothered by selected a price on any of the form pages.  It is implying that the fee is such and you just need to fill in the information for the participant.

You can use hooks for this:
Quote
function civicrm_civicrm_buildForm( $formName, &$form ) {
    if ( $formName == 'CRM_Event_Form_Registration_Register' ) {
        $form->_defaults['price_1'] = 246;
    }   
}

where price_1 is the name of radio.

HTH

Kurund
Found this reply helpful? Support CiviCRM

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: Multiple Registration - Price set logic issues
March 25, 2009, 06:40:26 am
Quote from: martar on March 25, 2009, 05:50:07 am
After waiting for a year or so for the ability to implement multiple registrations with CiviCRM, I now face a couple illogical scenarios which makes this module pretty useless unless there are immediate workarounds.  Certainly, those familiar with hard coding can fix some of these issues but it seems as though during redevelopment, these seemingly minor items were not examined carefully.

i had to address this a bit and clarify a few things:

1. CiviCRM is a FREE and Open Source Project. The community is / should be as involved in the development and testing of new features as the developers

2. We have a sandbox running with ALL features enabled. So the above could have been tested prior to a release

3. different users have different requirements and we tried to make good choices. We succeed in some and revisit our decision in a future release for others

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

martar

  • Guest
Re: Multiple Registration - Price set logic issues
March 25, 2009, 06:52:24 am
Donald and Karun,

Thanks for responding to this issue and yes, no doubt, most who use this CiviCRM are appreciative of the fact that it is free. What page is the hook implemented on?  (Sorry, this is really a noob question).

Donald, you've been of tremendous help in the IRC. There are very few instances where systems like this have open "rooms" for almost immediate dialogue.  Sorry to have bothered you late in the evening at IRC.

Perhaps with the roll out of 2.2.x, most of these items will be ironed out.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Multiple Registration - Price set logic issues
March 25, 2009, 09:20:08 pm
Filed http://issues.civicrm.org/jira/browse/CRM-4289, that would allow user to set default value for price sets.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Multiple Registration - Price set logic issues

This forum was archived on 2017-11-26.