Support

Home Forums Event Espresso Premium Donations… not showing options from Group Questions (2)

Donations… not showing options from Group Questions (2)

Posted: May 17, 2020 at 3:00 am

Viewing 16 reply threads


4ohelleah

May 17, 2020 at 3:00 am

Using EE4. Do Group questions still work – how can i get them to show up in the cart?
One is a multiple choice which is only showing up as i have i have added to the description – the other in the Question group is a fill-able text field that doesn’t show up anywhere.


4ohelleah

May 17, 2020 at 3:15 am

This reply has been marked as private.


Tony

  • Support Staff

May 18, 2020 at 4:40 am

Hi there,

I’m not sure I understand your question, can you define what you mean by ‘Group questions’, please?

You can add questions to the registration form, but not directly on the single event page, part of the reasons for this is the registration start with the ticket selector submission so including registration questions on the single event page is adding registration questions before the registration has started but I’m not sure if I understand what you are trying to do correctly.


4ohelleah

May 23, 2020 at 12:30 am

Used to be able to do it in EE3. Selected the pre-prepared question group and the showed up in the form on checkout after you selected how many tickets were needed.

What I need is to have a blank form text field that the user can fill in if they have selected an option on the donation page of donating in ‘Memory of’ or ‘in Honor’ of where they can add a person’s name and their relationship to them and if it is in honor or in memory…..

How can I do this – used to be able to do it with question groups…..

Have been waiting to hear back from you – didn’t realized that i was replying to a ‘no reply’ email address instead of here!


Tony

  • Support Staff

May 25, 2020 at 4:30 am

Used to be able to do it in EE3. Selected the pre-prepared question group and the showed up in the form on checkout after you selected how many tickets were needed.

Ok, so that still Question Groups, as in a group of individual questions and can still be set in almost the same way they worked in EE3.

First, you add individual questions into question groups: https://eventespresso.com/wiki/add-questions-event-espresso-question-groups/

Then you set the question groups you want to ask for either the ‘Primary registrant’ and/or ‘Additional Registrants’:
https://monosnap.com/file/SbYGsxdaZwiWs4NzEmDA0v2DNWikX8

That second screenshot if from the event editor, when you edit the event you’ll see that option in the sidebar.

What we don’t currently have is an option to selectively show/hide specific questions based on the ticket selection if that is what you are looking to do.


4ohelleah

May 25, 2020 at 5:35 am

Very strange! It is showing up properly now!
I didn’t change anything. Possible that I expected it before I clicked proceed to registration. It is still show y’all as tickets instead of donations tho. Need a work around for that.


Tony

  • Support Staff

May 25, 2020 at 7:29 am

I’m sorry but I don’t follow.

Can you add a screenshot showing what you want to change?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


4ohelleah

May 25, 2020 at 10:52 am

This reply has been marked as private.


Tony

  • Support Staff

May 26, 2020 at 3:27 am

All working fine except for ‘Attendees’ as there are no attendees and nothing to attend.

You can use a snippet like this:

https://gist.github.com/Pebblo/4c819243acfee1ce36b1

Just chance ‘Participant’ to donation.

And of course I would like a bland for people to insert their own donation amount!

We currently don’t have any kind of variable pricing within Event Espresso.

You can use tickets like you are now, or some people use a 3rd party add-on called the Price Modifier add-on:

http://aparnascodex.com/downloads/price-modifier-for-event-espresso-4/

That allows you to ass value to questions on the registration form, it’s still not variable pricing as such but allows the users to select different values.


4ohelleah

May 26, 2020 at 4:10 am

Participant looks great – no reason to change it to donor participant will work for all of other events I will create throughout the year am downloading the whole plugin to my desktop to add the script to to functions.php and then will re-upload that. But – I have two folders. event-espresso and event-espresso-core-reg (not sure if one is from EE3 or not) which one should I edit – I don’t see functions.php in either of them.

Don’t think the price modifier is needed I already have a lot of options for the user to choose from – but will keep it in mind for the future!


4ohelleah

May 26, 2020 at 4:15 am

Found functions>attendee_functions.php – but not sure where it goes or id i am to ovrwrite anything that is in there already


Tony

  • Support Staff

May 26, 2020 at 4:46 am

\event-espresso is EE3.

\event-espresso-core-reg is EE4.

However, if you modify files within a plugin those modifications will be lost with each plugin update release (WordPress does NOT use incremental updates for themes/plugins, an update within WordPress is essentially deleting the current version, downloading the new version and extracting new version in it’s place rather than only updating the specific files that changed).

Rather than editing core files within the plugin, the above function can go within a custom functions plugin on the site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Found functions>attendee_functions.php – but not sure where it goes or id i am to ovrwrite anything that is in there already

That’s from EE3 (your using EE4 so looks like you don’t need those files), but again not the above, I highly recommend you do not modify the files within the plugin itself. It prevents you from updating the plugin and prevents us from providing support.


4ohelleah

May 26, 2020 at 4:55 am

Thank you – will try it….


4ohelleah

May 26, 2020 at 7:15 am

Uploaded the folder with the php file in it to plugins – activated it and nothing happened – donations still says attendee instead of participant. refreshed – cleared my browser cache. No longer have a site cache.

<?php
/*
Plugin Name: Site plugin for ohelleah.org
Description: Site specific code for ohelleah.org
*/
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */

function mycustom_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Attendee Information' => 'Participant Information',
	'Attendee %d' => 'Participant %d',
        // Add some more strings here
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 );

/* Stop Adding Functions */

help….


Tony

  • Support Staff

May 26, 2020 at 3:07 pm

My apologies, the filter needed for the above string changed a while back and that snippet hadn’t been updated.

I’ve updated it now:

https://gist.github.com/Pebblo/4c819243acfee1ce36b1


4ohelleah

May 26, 2020 at 3:32 pm

That worked!
Thank you!


Tony

  • Support Staff

May 26, 2020 at 3:36 pm

You’re most welcome, glad its working.

Viewing 16 reply threads

The support post ‘Donations… not showing options from Group Questions (2)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso