Support

Home Forums Event Espresso Premium Trouble Setting up Ticket Quantities in EE3

Trouble Setting up Ticket Quantities in EE3

Posted: March 23, 2015 at 8:17 pm


Joshua Stecker

March 23, 2015 at 8:17 pm

Trying to set up selling tickets for our theatre company using EE3 (I downgraded from EE3 due to the lack of Promo Code support in EE4).

I set up all the events, but noticed that each event a user can only purchase one ticket (or be one “attendee” as the language goes).

It was really easy to do in EE4 but I can’t seem to make it work in EE3. I need the following:
* Set up each event with a Ticket Limit of 50.
* Set up three price tiers. (General Admission, Senior, Student)
* Be able to sell various mixes of those tiers to not exceed my ticket limit (50) within each event.

Help?


Dean

March 24, 2015 at 6:13 am

Hi,

You can set EE3 to allow more than one attendee to be registered at a time (Max Group Registrations in the event settings).

However, if you need them to be able to purchase more than one Ticket at a time, you will need to use the Multiple Event Registration addon, which allows them to add to cart and select multiple tickets.

EE4 is definitely easier when it comes to this aspect. Hopefully the promo codes for EE4 won’t be too much longer though even internally we don’t have a release date yet.


Joshua Stecker

March 24, 2015 at 6:23 am

Ok, if that’s the case, to not confuse my users, can I get rid of the standard “Register” button and just have the Multiple Event Registration “add to cart” link?

And can I change the text “add to cart” to “Buy Tickets” and make it look like a button instead of just a hyperlink?


Lorenzo Orlando Caum

  • Support Staff

March 24, 2015 at 6:55 am

Hi, that can be done.

Use this example CSS to remove the Register link:

https://eventespresso.com/topic/use-cart-only-for-registration/#post-138700

Then use this to remove the “or.”

https://eventespresso.com/topic/use-cart-only-for-registration/#post-138531

The Add to Cart link has a some CSS classes. Here is an example of how to turn the link into a blue button:

https://eventespresso.com/topic/how-do-i-style-add-to-cart-and-view-cart-links/#post-90763


Lorenzo


Joshua Stecker

March 24, 2015 at 8:56 am

Couple of things:
1.) For creating the Add to Cart button: Tried putting the CSS code in My Custom CSS and in the style sheet and haven’t been able to fix it. Suggestions?

2.) Now that I made the other above edits, the user clicks “Add to Cart” once and the link then changes to “View Cart.” Can’t I just have them click “Add to Cart” and have it take them to the page to pick tickets? The double link thing is redundant.

3.) How can I change the “Add to Cart” or “View Cart” text to “Buy Tickets”?

4.) Lastly, now the PROMO CODE line doesn’t show up in the registration field. How can I fix this?

Thanks.


Lorenzo Orlando Caum

  • Support Staff

March 24, 2015 at 10:03 am

On your first question, try refreshing the page to ensure the new CSS loads.

For your second question, it works like this because an attendee usually adds multiple events to the shopping cart.

For your third question, an additional entry can be made to the gettext filter here:

https://gist.github.com/Pebblo/9772609552259e625a02

function mycustom_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        ' or ' => '',
        'Add to Cart' => 'Buy Tickets',
        // 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 );

For your last question, go to the General Settings and make sure the option “Allow discount codes in the shopping cart?” is set to yes. Then save changes.


Lorenzo


Joshua Stecker

March 24, 2015 at 10:33 am

Ok, so everything has worked EXCEPT the creation of a button for the “Add to Cart/Buy Tickets” link.

Pasted the code in every orifice I could find and still no go. Any last suggestions?


Lorenzo Orlando Caum

  • Support Staff

March 24, 2015 at 12:18 pm

Hi,

Have the CSS classes been changed for the link through a custom template?

Is a link available?

Thanks


Lorenzo


Joshua Stecker

March 24, 2015 at 12:32 pm

What link do you need?


Joshua Stecker

March 24, 2015 at 1:31 pm

I don’t know what I just did, but it finally worked. All good. Thanks!


Lorenzo Orlando Caum

  • Support Staff

March 24, 2015 at 2:29 pm

Great! I’ll update this support post to resolved.


Lorenzo

The support post ‘Trouble Setting up Ticket Quantities in EE3’ 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