Support

Home Forums Event Espresso Premium PRICE MODIFIER with Multi Event Registration

PRICE MODIFIER with Multi Event Registration

Posted: November 14, 2013 at 11:14 am

Viewing 2 reply threads


Marco Genovese

November 14, 2013 at 11:14 am

I know that ‘Price Modifier’ is not designed to work properly with MER. However, for what I do, it can be adapted. And in fact it works well!

But I have a question: is it possible to selectively display the “Price Modifier”?
I have 3 types of tickets: Adults, Teens and Children. I’ve created a questions group where I put a question with the “Price Modifier”.
I would like that group of questions that contains the application with the “Price Modifier” is visible only for adults and teens and not for children.

Is it possible?


Sidney Harrell

November 14, 2013 at 11:42 am

If you take a look in templates/multi_registration_page_display.php, line 88:

echo event_espresso_add_question_groups($question_groups, $events_in_session[$event_id], $event_id, 1, $meta);

and line 151:

echo event_espresso_add_question_groups($question_groups, $events_in_session[$event_id], $event_id, 1, $meta);

You should have everything there to do what you want. The $question_groups variable should be an array of the question group ids, so before those 2 lines you would want to put a conditional that tests for the $event_id matching the event that you would like to affect, and the $meta[‘price_id’] that matches the price id that you would like to remove the question group from, and if all that lines up, then you would unset the group id from the $question_group array of the question group that you would like to remove.
Sorry I can’t be more specific, but you would need to know the event id, the price id, and the question group id in order to write the specific code.


Marco Genovese

November 14, 2013 at 11:55 am

Ok Sidney! Thanks a lot.
I’ll try to edit the file by following your suggestions

Regards

Viewing 2 reply threads

The support post ‘PRICE MODIFIER with Multi Event Registration’ 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