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) »
  • Adding event registration from Contact, price set items not showing up correctly
Pages: [1] 2

Author Topic: Adding event registration from Contact, price set items not showing up correctly  (Read 2085 times)

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Adding event registration from Contact, price set items not showing up correctly
April 02, 2011, 05:50:46 pm
I'm trying to add a comp registration to an already existing contact for an upcoming event, and when I click "Add event registration" the screen that comes up does not include the Admin (non-public) price items, so I am unable to register media or volunteers directly at
civicrm/contact/view/participant&reset=1&action=add&cid=1426&context=participant

I would rather not have to re-enter each contact's information by going the long way through civicrm/event/register and adding and using a discount code.

Is there some way to allow the Add Event Registration screen to include the non-public/User & Admin only price set items? Thanks!!

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Adding event registration from Contact, price set items not showing up correctly
April 02, 2011, 11:05:28 pm
Hi,
There is minor bug in that, which has been fixed in CiviCRM3.4.aplha2.
For now you can apply following patch ( for CiviCRM 3.3.x )
Code: [Select]
Index: templates/CRM/Price/Form/PriceSet.tpl
===================================================================
--- templates/CRM/Price/Form/PriceSet.tpl (revision 32975)
+++ templates/CRM/Price/Form/PriceSet.tpl (working copy)
@@ -30,7 +30,7 @@
           
     {foreach from=$priceSet.fields item=element key=field_id}
         {* Skip 'Admin' visibility price fields since this tpl is used in online registration. *}
-        {if $element.visibility EQ 'public' || $context eq 'standalone'}
+        {if $element.visibility EQ 'public' || $context eq 'standalone' || $context eq 'participant'}
             <div class="crm-section {$element.name}-section">
             {if ($element.html_type eq 'CheckBox' || $element.html_type == 'Radio') && $element.options_per_line}
               {assign var="element_name" value=price_$field_id}


Rajan

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Adding event registration from Contact, price set items not showing up correctly
April 03, 2011, 10:46:47 am
Hi Rajan,

This patch seems to have removed ALL price set items: Events Fee(s) is now blank. Did I install the patch incorrectly, or is this what the patch is supposed to accomplish?

I would like to able to use price set items to determine how many media registrations versus how many volunteers versus student/senior versus adult registrations, rather than adding different participant roles.

Thanks!

Suzanne

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Adding event registration from Contact, price set items not showing up correctly
April 03, 2011, 11:04:21 am
I figured it out; the patch to show admin price sets for what I was wanting is:

Code: [Select]
Index: templates/CRM/Price/Form/PriceSet.tpl
===================================================================
--- templates/CRM/Price/Form/PriceSet.tpl   (revision 32975)
+++ templates/CRM/Price/Form/PriceSet.tpl   (working copy)
@@ -30,7 +30,7 @@
           
     {foreach from=$priceSet.fields item=element key=field_id}
         {* Skip 'Admin' visibility price fields since this tpl is used in online registration. *}
-        {if $element.visibility EQ 'public' || $context eq 'standalone'}
+       {if $element.visibility EQ 'admin' || $context eq 'standalone'}
             <div class="crm-section {$element.name}-section">
             {if ($element.html_type eq 'CheckBox' || $element.html_type == 'Radio') && $element.options_per_line}
               {assign var="element_name" value=price_$field_id}

Thanks for getting me on the right track!

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Adding event registration from Contact, price set items not showing up correctly
April 04, 2011, 08:45:23 pm
Yes, Indeed.
I missed it out while providing the diff  :(.

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Adding event registration from Contact, price set items not showing up correctly
April 07, 2011, 12:15:22 pm
Oops, this isn't the solution I was looking for either, since now the public prices don't show on the public event registration page [civicrm/event/register] when patrons try to purchase tickets; it says admin will register after the event.

The page I was wanting to modify to show the admin price items is the Admin Add New Event Registration contact page [civicrm/contact/view/participant&reset=1&action=add&cid=1568&context=participant]

Is it possible to get the admin price items to show up on the Admin Add New Event Registration contact page [civicrm/contact/view/participant] and NOT on [civicrm/event/register], while still keeping the public price items visible on the Public Event registration page [civicrm/event/register]?

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Adding event registration from Contact, price set items not showing up correctly
April 07, 2011, 09:14:45 pm
Oh,
Check this: https://fisheye2.atlassian.com/viewrep/CiviCRM/trunk/templates/CRM/Price/Form/PriceSet.tpl?r1=33276&r2=33281
It is working for me.

Rajan

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Adding event registration from Contact, price set items not showing up correctly
April 08, 2011, 10:17:54 am
Success!! Thank you!!

(I had initially thought it didn't work because I neglected to select a specific event. I gave up too soon when I didn't see the price items, which of course woudlnt' show up until an event is selected. I'm tired, this morning. :)  )
« Last Edit: April 08, 2011, 10:28:30 am by mirrorstage »

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Adding event registration from Contact, price set items not showing up correctly
February 05, 2015, 01:05:23 pm
Ever since I updated to CiviCRM 4.5.X, I've been experiencing the same issue, again. I upgraded to 4.5.6 today and tried applying the patch, but no price sets are showing up on the "Register Event Participant" page.

I am able to select the contact, event, campaign, participant role, registration date & time, participant status, event sources, notes and even the custom "How did you hear about this event?" custom profile, but no price sets.

Does anyone have any ideas?? Thanks.

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Adding event registration from Contact, price set items not showing up correctly
February 05, 2015, 01:33:42 pm
The functionality you want has been available without needing to patch since at least civicrm 4.2.

Have you tried it without applying the patch as that could be interfering with the standard functionalilty.

My other question is: Did you select a payment processor or the Enable Pay Later option on the fees tab?  If you don't do that you won't see any price fields at all.

« Last Edit: February 05, 2015, 02:08:15 pm by joanne »

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Adding event registration from Contact, price set items not showing up correctly
February 06, 2015, 04:32:34 pm
Yes, I had the functionality without the patch through 4.4.7, but from when I updated to 4.5.x, I have not been able to use the Add Event Registration screen as none of the price set--neither public not admin--were accessible.

Payment processor has been selected and patrons are still able to register themselves, but if I want to arrange media comps or volunteers or community partner comps via back office admin, I am unable to.

I tried the patch to see if that would make a difference and it hasn't. At a loss as to why the price sets no longer show up.
« Last Edit: February 08, 2015, 10:15:34 am by mirrorstage »

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Adding event registration from Contact, price set items not showing up correctly
February 07, 2015, 06:19:12 pm
What happens if you create a new event with a new price set on your site with one price field set to public and another set to admin? 

Can you see that price set when you try to register someone off-line?

mirrorstage

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 1
  • CiviCRM version: 4.6.7
  • CMS version: Drupal 6.37
  • MySQL version: 5.6.23
  • PHP version: 5.4.42
Re: Adding event registration from Contact, price set items not showing up correctly
February 08, 2015, 10:11:49 am
I created a test price set with one public and one admin visible field, and created a test event. When I tried to Add Event Registration from an existing contact, not only did the price set not appear after selecting an event, but the event names initially come up as the event ID number, as shown in the first screen shot.

Though I initially chose the wrong number event, I was able to add a registration to the contact without any price set information. When I clicked Edit, I was able to see the event name (not just the number) but still no price set info--neither public nor admin, and I deleted the registration from the contact.

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Adding event registration from Contact, price set items not showing up correctly
February 09, 2015, 03:37:38 pm
I am a non-techie, so I only have one more suggestion. 

You have confirmed that the problem exists for new price sets as well as upgraded ones and that it has been present since you upgrade from the 4.4 series to the 4.5 series.   

There were considerable changes in the page/form controllers between 4.4 and 4.5, so perhaps some custom code or Drupal module is clashing with that.  If you have a development or staging site you could disable the custom code and the drupal modules to see if that removes the problem.  If so, then add back the modules one at a time to find the source of the clash.

If disabling the custom code and drupal module doesn't "fix" the problem then you will have to wait for this topic to catch the eye of a techie.
« Last Edit: February 09, 2015, 03:40:06 pm by joanne »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Adding event registration from Contact, price set items not showing up correctly
February 09, 2015, 06:03:09 pm
Those screenshots have "javascript crash" written all over them. This is often caused by a server misconfiguration or a module/extension/theme incompatibility. This might have come with the upgrade (e.g. a module/extension you were using before is incompatible with 4.5) or it may just be that your site has had javascript problems all along but you never noticed. 4.5 uses a ton of javascript though, so it's quite noticeable now, isn't it? :)
  • Open up your browser's console (F12) and try the registration again, you should now see at least 1 red error message in the console. What does it say?
  • Also, it would be good to know if the problem is limited to pop-up forms. Try alternately clicking on the button to add a participant with your right mouse button and open it in a new tab. Does it work now?
Try asking your question on the new CiviCRM help site.

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Adding event registration from Contact, price set items not showing up correctly

This forum was archived on 2017-11-26.