Support

Home Forums Event Espresso Premium Sell tickets in multiples of 2 etc

Sell tickets in multiples of 2 etc

Posted: October 29, 2014 at 1:18 pm


ca204valry

October 29, 2014 at 1:18 pm

Hi

For an event I am hosting, I need to sell tickets in multiples of 2 instead of 1. Is there a way to do this?


Garth

  • Support Staff

October 29, 2014 at 2:02 pm

Hi,

Sure. Take a look at both these documents:


ca204valry

October 29, 2014 at 2:13 pm

Hi Garth,

I did that I am getting two options now – 0,4 only. I want it to show 8,12,16,20 and so on..


Lorenzo Orlando Caum

  • Support Staff

October 29, 2014 at 4:06 pm

Hi,

First, you’ll need to increase this value:

http://cl.ly/image/1T1O183e1y0e

Then adjust the minimum and maximum values on the specific ticket (e.g minimum of 4 and maximum of 20). Then save changes to the event.

Additionally, if you will be selling large quantities of tickets, then please ask your web host to raise the max_input_vars. This is usually done through a php.ini file:

max_input_vars 3500

jQuery can be used to remove those other values. Take a look at this tutorial:

https://eventespresso.com/wiki/setup-default-value-1-ticket-selector/

It can be adjusted to remove additional values:

function ee_default_ticket_selector_remove_several() {
 $post = get_the_id();
 if( $post == 123 ) {
 ?>
 
 

That should leave 4, 8, 12, 16, 20.

--
Lorenzo

The support post ‘Sell tickets in multiples of 2 etc’ 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