Support

Home Forums Event Espresso Premium Multiple Prices – Multiple Limits

Multiple Prices – Multiple Limits

Posted: September 15, 2013 at 4:09 pm


mwigston

September 15, 2013 at 4:09 pm

Hi Folks…

Here is a perplexing question.

I have a theatre website I manage for a client. He is general admission but now has two sections. Theatre seating and side stage seating each section needs an attendee limit and seperate pricing.

Going over documentation and searching the forums have not answered this for me and currently I fear the only way to manage this would be to create two events and use a tab plugin to have them select main theatre or side stage.

Is this the case? Most theatres have multiple prices based on where the seating is. I assume there must be something in place for that.

I see I can add multiple prices but it only ever takes from the main attendee limit and would in that case likely oversell the cheap seats

SO:

Main Theatre Tickets $100 88 seats available
Side Stage Tickets $80 20 seats available

can this be done on one event or no…?

Mark Wigston


mwigston

September 15, 2013 at 4:11 pm

BTW sorry I am also using shortcodes if this makes a difference. You can see a page sample at

http://www.petersplayers.com/jully-black-valentines-show/


Dean

September 16, 2013 at 4:24 am

Hi Mark,

Currently no it cannot be done. While you can add multiple price options, there isn’t a feature to add a limit to the number of tickets per type. This feature will be coming but it will be in version 4.

As such you would likely need two separate events running to achieve this.


mwigston

September 16, 2013 at 5:08 am

Okay… I’ll get around it using tabs then rather than have it cluttered with two events.

Silly question… When an event is full it shows the amount of attendees booked. Can I remove that using the custom files addons? The venue owner never wants to disclose the amount of people that will be at a show (tickets are not only online so its deceiving) and never wants to show the ticket cost after the show is sold out. Would love for the scripts to just simply say this show or event is sold out and leave it at that…

Mark


Dean

September 16, 2013 at 5:25 am

Hi,

The custom files addon isn’ät needed here, to remove the ticket count from the sold out message just use CSS

.num_attendees { display:none; }

If you don’t mind digging into the templtae files it is quite easy to conditionalise the prices.

Take this for example:

			<?php 
	if ($num_attendees >= $reg_limit) {} else {
			
			
			if ( $event->event_cost != '0.00' ) { ?>
				 <p id="p_event_price-<?php echo $event_id ?>" class="event_price"><span class="section-title"><?php  echo __('Price: ', 'event_espresso'); ?></span> <?php echo  $org_options['currency_symbol'].$event->event_cost; ?></p>
			<?php } else { ?>
				<p id="p_event_price-<?php echo $event_id ?>" class="event_price"><?php echo __('Free Event', 'event_espresso'); ?></p>
			<?php } ?>

<?php } ?>

It is a slightly modified version of the price code block from the event_list_display.php just using a bit of code already in the template. Using that it will only display the price if the event is not sold out.

It should be just as simple to do it for the registration_page_display.php file as well.


mwigston

September 16, 2013 at 5:28 am

Okay thanks… So I am using the Cupertino template. All I need to do is edit or add that to that css file then?


Dean

September 16, 2013 at 6:22 am

Hi,

Well regarding the css you can add it to the themes style.css file or a plugin such as My Custom CSS (usually a better idea so theme updates don’t wipe your CSS).


mwigston

September 16, 2013 at 6:26 am

yep that worked… Thats great…


mwigston

September 16, 2013 at 6:30 am

Where can I customize this wording?

“We are sorry but this event has reached the maximum number of attendees!”

I will need to change that to “We’re sorry however all seats in this section are sold for this event”


Dean

September 16, 2013 at 6:37 am

Hi,

The best way to change wording is actually to translate the plugin.

You can do this with this guide https://eventespresso.com/wiki/how-to-change-wording-with-poedit/

Or you can use a function to translate strings http://www.viper007bond.com/2011/07/13/changing-core-wordpress-strings/

You could also dig into the template files to find the actual phrase and change it, but as mentioned translation is usually the better option.


mwigston

September 16, 2013 at 7:58 am

The PO edit isn’t working on my computer. When I open the .po file it shows nothing.

I think this is pretty clear though…

http://www.petersplayers.com/jully-black-valentines-show/


Dean

September 17, 2013 at 1:24 am

That’s strange, did you download the PO/Mo files correctly from Github? They can be confusing to download.

To download the PO file – left click the link on the main page and then right click the Raw button in the top right of the page that comes up and save as.

To download the MO file – left click the link on the main page, and then left click the View Raw text link in the middle of the page that comes up.

If you don’t do this you may end up with a MO and PO file that contains garbage data and the language wont work.

https://github.com/eventespresso/languages

The support post ‘Multiple Prices – Multiple Limits’ 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