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) »
  • Cutom Fields, Price Controls, Integraton Into Events
Pages: [1]

Author Topic: Cutom Fields, Price Controls, Integraton Into Events  (Read 966 times)

nickandrea19

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.5.23
  • PHP version: 5.2.x
Cutom Fields, Price Controls, Integraton Into Events
March 17, 2013, 09:19:04 am
Hello community! I am trying to create a retreat registration. I created the event. I also created a custom field set and custom fields within it. However, they do not show up on the live registration page, even though they are on the bottom of the "Info & Settings" page for the event ( I have attached a screenshot of this here).

This data is important, for example, to know what kind of meals the participants want. In addition, I want what they select to change the overall cost, for example, depending on what sort of accommodation they choose.

I have read the documentation on custom fields and have not found answers to either of these. Can anybody help me figure out how to do this?

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Cutom Fields, Price Controls, Integraton Into Events
March 17, 2013, 12:02:10 pm
hi - i think you need to set those Fields up for Participants not for the Event

It is the participants that require food ;-)

Once you make the fields, you then need to add them to an existing Profile shown on the Rego page, or create a specific Profile and include on the 'online rego' page of the event configuration screen

hope that helps
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

nickandrea19

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.5.23
  • PHP version: 5.2.x
Re: Cutom Fields, Price Controls, Integraton Into Events
March 18, 2013, 01:29:03 pm
OK so I have created a new profile called "Retreat Participant". I added all the existing fields I want.

Then, I created a custom field set called "Additional Retreat Info," with custom fields for both housing and meals options.

I went back to the Retreat Participant profile and tried to add these new custom fields to it, however, they don't show up. I have to choose from an existing list which includes Contacts, Individual, Household, Organization, etc.... Formatting, but none of the new ones. How do I add those?

Thanks for the help.  :)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Cutom Fields, Price Controls, Integraton Into Events
March 18, 2013, 01:49:09 pm
hi - if you have created the Fields for a Field Group that is set to be used for Participants, then you should find them when you want to add them to a Profile, under the Participants option.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

nickandrea19

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.5.23
  • PHP version: 5.2.x
Re: Cutom Fields, Price Controls, Integraton Into Events
March 18, 2013, 03:34:50 pm
Right on, I got it to work. Thanks petednz.  :)

Now I'm experiencing a problem that when a user is logged in and they want to navigate back to the retreat page which they are already signed up for I'm getting this message:
"Warning: Cannot modify header information - headers already sent by (output started at /home/expand11/public_html/develop/wp-content/themes/genesis/lib/structure/header.php:39) in /home/expand11/public_html/develop/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php on line 339"

From my limited PHP experience I know there are several things that can cause this, one of which is not starting output buffering in certain cases. However, I would think this should not be such a complicated fix. The thing is, once someone registers we want them to be able to login and then see what they have registered for.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Cutom Fields, Price Controls, Integraton Into Events
March 18, 2013, 03:43:26 pm
once someone has registered - they can't go back to that page to see the info they submitted afaik
you can point them to their Contact Dashboard which should list their Events
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

nickandrea19

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.5.23
  • PHP version: 5.2.x
Re: Cutom Fields, Price Controls, Integraton Into Events
March 19, 2013, 08:42:29 am
Hmm well can't we set it up to point it to their Contact Dashboard if they try to visit av Event Page they're already registered for? If so, how? Thanks.  :)

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: Cutom Fields, Price Controls, Integraton Into Events
March 19, 2013, 08:52:30 am

pretty sure it redirects to the event info page in case they are already registered

if you want to redirect them to the contact dashboard, you can potentially do so via the pageRun hook on the event info page. Check http://book.civicrm.org/developer/ for more info on hooks et al

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

nickandrea19

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.5.23
  • PHP version: 5.2.x
Re: Cutom Fields, Price Controls, Integraton Into Events
March 19, 2013, 11:13:50 am
If I am already registered and I try to visit the event page I get that "Warning: Cannot modify header information........System.php" message. Seems strange to me that one would not be able to revisit the event page without it automatically redirecting to the event info page, as you are suggesting. Is there some setting I haven't set correctly?

Re: hooks, I'm using Wordpress. I only see information regarding Drupal and Joomla...

Thanks.  :)

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: Cutom Fields, Price Controls, Integraton Into Events
March 19, 2013, 12:32:53 pm

Seems like your theme is outputting some stuff before civi gets control.

This does not seem to happen with the default theme shipped with WP, so i'd take a look there and figure out whats happening and why. We do try and use ob_start / ob_end with the WP code. You can check and tweak the code as needed here: wp-content/plugins/civicrm/civicrm.php

we are still fairly new to WP and might have not done things the right way. So please do help us fix it :)

The hooks stuff works in WP also. The documentation might be lagging. Which docs were u reading?

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

nickandrea19

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.5.23
  • PHP version: 5.2.x
Re: Cutom Fields, Price Controls, Integraton Into Events
March 19, 2013, 12:52:21 pm
HI lobo,

I was reading http://book.civicrm.org/developer/current/techniques/hooks/. Is there another one that relates specifically to WP?

So, I'm using Genesis theme. I switched it to the default TwentyTwelve theme and it still spit out the same thing.

WOw, so I just threw in an ob_start(); at the very beginning of civicrm.php and that fixed it. Ok. Good to know. Doe the civicrm.php run the entire plugin? Also, will plugin updates overwrite that change, such that I'll need to re-insert it every time an update is released?

Next task is redirecting them to the contact dashboard, which I understand I can do with the pageRun hook? If so, will that allow them to edit and retreat details they may have entered before, perchance?

Thanks a megaton for the help. 

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: Cutom Fields, Price Controls, Integraton Into Events
March 19, 2013, 02:55:49 pm

Might want to check and see if using this fixes your issue:

http://wiki.civicrm.org/confluence/display/CRMDOC43/Displaying+Public+Forms+in+WordPress+Frontend+Sites

check the last section.

Also currently there are no links to edit your information from the contact dashboard. We guess it was an oversight / drupal-centric view of things. Would be a great 4.4 feature and i suspect will take 10-20 hours. Let me know if u'd be interested in tackling and solving this issue

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

nickandrea19

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.5.23
  • PHP version: 5.2.x
Re: Cutom Fields, Price Controls, Integraton Into Events
March 20, 2013, 03:17:25 pm
Ok so I tried what's in that document, added the define() clause to my settings.php file, loaded the URL for the profile template, and it enabled me to enter name and address info. Not sure where that went, though.

I guess we would want users to be able to view their retreat registration and, say, pay the remaining balance if they only put the deposit down before.

I would love to try and tackle this issue if I had the skills. However, my php is limited and I don't think it would be sufficient. My client, however, is not averse to hiring someone to do some custom work to this effect....


nickandrea19

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.5.23
  • PHP version: 5.2.x
Re: Cutom Fields, Price Controls, Integraton Into Events
March 20, 2013, 03:20:21 pm
Oh, I'm also getting a permissions block when I try to use the search function within the CivicRM dashboard. I have all the files in the plugin set to 755. Do you know what's causing this? Thanks!

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: Cutom Fields, Price Controls, Integraton Into Events
March 20, 2013, 03:31:45 pm

might want to check:

http://civicrm.org/what/experts

korlon and webaccess are probably best suited to getting your back on track and going

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 »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Cutom Fields, Price Controls, Integraton Into Events

This forum was archived on 2017-11-26.