Support

Home Forums Event Espresso Premium Bundle Pricing: Flat Price or Rounding?

Bundle Pricing: Flat Price or Rounding?

Posted: January 23, 2017 at 10:54 am


tulsaleetrivia

January 23, 2017 at 10:54 am

Hi there,

In addition to individual tickets, we’re offering event sponsorships as bundles which include a specific number of tickets to the event. We have three sponsor levels: $1,000; $500; and $300.

The top level ($1,000) comes with 12 tickets, which makes each ticket ‘worth’ $83.333333̅3̅3 (repeats forever), which EE4 cannot calculate or display correctly.

Instead of showing a $1,000 sponsorship, it shows a price of $999.96. I increased the decimals to 3 places in the Country Settings, but that just gave me $999.996. I increased the ‘per ticket’ price to 83.334, but that yielded $1,000.008.

Neither price is acceptable – it needs to be exactly $1,000.00. The same issue exists for the $500 level, as well.

Is there:
A) A way to set a flat price for a bundle (I do not need or want to display individual ticket prices)?;

B) A way to have EE4 round a total to two decimals?;

or

C) another workaround?

Thanks in advance!


tulsaleetrivia

January 31, 2017 at 9:39 am

Does anyone have a fix or workaround for this?


Josh

  • Support Staff

January 31, 2017 at 12:34 pm

Hi there,

I’m afraid the Ticket Bundle pricing cannot be rounded in the way you’re expecting. What you can do though, is sell 1 ticket at a sponsorship level price, then anyone that purchases a $1000 sponsorship can be comped 11 free tickets.


tulsaleetrivia

January 31, 2017 at 6:14 pm

Hi Josh – Thanks for that. How do I accomplish the scenario you described? That may be a great solution for my situation.


Josh

  • Support Staff

February 1, 2017 at 11:04 am

One way is you can create a new “free” ticket that’s going to be used to give comp tickets to sponsors. Please note the ID of the ticket that appears after updating the event after making the new ticket:

Then, you’ll need to remove that free ticket option from the front end. So only admins will be able to select the free tickets. This involves adding a bit of PHP code to your website:

function espresso_vip_tickets( $ticket_row_html, EE_Ticket $ticket ) {
    $VIP_Ticket_ID = 129; // The ticket ID of the restricted access ticket
    if ( $ticket->ID() == $VIP_Ticket_ID && ! is_admin() ) {
        return '';
    }
    return $ticket_row_html;
}
add_filter( 'FHEE__ticket_selector_chart_template__do_ticket_entire_row', 
  'espresso_vip_tickets', 10, 2 
);

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

So after someone buys an event sponsorship, the admin can go in and register the additional free tickets via the backend (when you click on the Add New Registration button for that event, you’ll see the free ticket option there).

The support post ‘Bundle Pricing: Flat Price or Rounding?’ 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