Support

Home Forums Event Espresso Premium Change price of a ticket based on registration selection

Change price of a ticket based on registration selection

Posted: November 30, 2016 at 1:37 pm

Viewing 4 reply threads


modernearth

November 30, 2016 at 1:37 pm

We are trying to add $50 onto the price of a ticket based on if they check a checkbox or not in registration-checkout. I understand you aren’t able to do this from the back end so I was wandering if there was a way to do this with jQuery at all? I am able to add an onclick that determines whether it has been clicked or not, so my question is if there was a way to now take that cost and add it to some element somewhere to change the cost? That will appear when you go to the payment options?


Tony

  • Support Staff

December 1, 2016 at 5:38 am

Hi there,

We have a snippet that shows an example of adding a surcharge to a transaction based on the answer to a custom question here:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_ee_apply_transaction_surcharge.php

If you are not comfortable with PHP you may need the help of a developer to set this up for you.

We do have plans to add this kind of functionality into a ‘Price Modifier Add-on’, the feature request is listed here:

https://trello.com/c/uJhRDmvT/104-price-modifier-add-on

Although it is not currently available we will be using that roadmap to help prioritize our developments if you would like to add your vote and any additional comments to that card.


modernearth

December 1, 2016 at 8:46 am

Hi Tony

Thanks for the response, I am quite familiar with PHP so I will give it a try.


modernearth

December 1, 2016 at 9:07 am

Had to customize it obviously, but it did work. Thanks a bunch.


Tony

  • Support Staff

December 2, 2016 at 1:01 pm

You’re most welcome, I’m glad it worked well for you 🙂

Viewing 4 reply threads

The support post ‘Change price of a ticket based on registration selection’ 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