Support

Home Forums Event Espresso Premium Price Modifier not working as expected

Price Modifier not working as expected

Posted: October 9, 2017 at 2:48 am

Viewing 5 reply threads


beyondsquare

October 9, 2017 at 2:48 am

Hi,

I’m having an issue with the price modifier feature in EE4. I’m trying to create ticket bundles where you pay for 20 tickets and you get a free one. Due to the maths you can’t just change the per ticket price as its always a few cents out. I found a work around by applying a very small percentage modifier.

This works correctly on the page that lists all of the ticket options, once the tickets are selected and you go to the payment page the price reverts back to the pre-modified price and when you choose to pay by credit card again its the incorrect amount. You can see what I mean if you go to http://beyondsquare.ie/btyste and try to buy a Secondary School Ticket bundle on any day.

Any assistance with this will be much appreciated.


Josh

  • Support Staff

October 9, 2017 at 3:30 pm

Hi there,

What’s happening there is the amount of the price modifier is so small it’s being rounded down when the line items get totaled up. There really isn’t a way to force a whole unit total when the number of tickets x price do not equal a whole currency unit.


beyondsquare

October 10, 2017 at 2:58 am

Hi, well that’s not ideal. I’ve discover that if I change the Currency decimal places to 3 it will work as intended, however it now shows prices as being €XX.123

Is there a way I can leave it so that it calculates as 3 decimal places but only displays on the front end as €XX.12


Josh

  • Support Staff

October 10, 2017 at 11:40 am

No and changing to 3 decimal places might disrupt the payment process if the payment gateway doesn’t accept prices formatted with 3 decimal places.


beyondsquare

October 11, 2017 at 2:17 am

OK, well that’s far from ideal. If I can’t do it that way is there away to limit the number of “Ticket B” based on the number of “Ticket A” they have selected. i.e. if I buy 25 student tickets I can select 1 Free Teacher but if I buy 42 student tickets I can get 2 free teachers


Tony

  • Support Staff

October 11, 2017 at 4:02 am

Currently, we don’t have that functionality built into EE so you would need some custom development, maybe using JavaScript to hide the ticket qty’s for the teach ticket and show it based on the number of selected student tickets.

One of the developers listed here may be able to add that in for you:

https://eventespresso.com/developers/event-espresso-pros/

Another option is to limit the registrations to a single class, set the student tickets to be required within EE and then add the teacher ticket with a limit max qty of 1 as a free ticket. The user then needs to select student tickets and 1 teacher ticket and complete the registration, if they need another class they can add another registration.

Viewing 5 reply threads

The support post ‘Price Modifier not working as expected’ 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