Posted: 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: B) A way to have EE4 round a total to two decimals?; or C) another workaround? Thanks in advance! |
|
Does anyone have a fix or workaround for this? |
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. |
|
|
Hi Josh – Thanks for that. How do I accomplish the scenario you described? That may be a great solution for my situation. |
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:
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.