Support

Home Forums Event Espresso Premium Is there a way to add surcharge ONLY if question checkbox is checked?

Is there a way to add surcharge ONLY if question checkbox is checked?

Posted: April 17, 2017 at 10:26 pm


Joe Mangrum

April 17, 2017 at 10:26 pm

I want to add a checkbox question to my registration form. If answer A then fee remains the same.If answer B then additional charges apply.

Is this something thats possible?


Tony

  • Support Staff

April 18, 2017 at 5:25 am

Hi Joe,

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 prioritise our developments if you would like to add your vote and any additional comments to that card.


Joe Mangrum

April 18, 2017 at 9:58 am

Thanks Tony,
Where would this code go? in the child theme, is it possible to get it installed with my support token??
It seems a little above my pay grade …whats the timeline for the add-on?


Tony

  • Support Staff

April 19, 2017 at 7:01 am

Where would this code go? in the child theme, is it possible to get it installed with my support token??

The code would be best within a Custom Functions Plugin and yes if you’d prefer to use your support token for this we can add it for you.

There is a link within your account page to redeem your support token. You’ll need to provide all of the requested details (including FTP details) and details on the surcharge you want to apply.

The add-on is currently not under development so will not be released ‘soon’.


Joe Mangrum

April 19, 2017 at 11:20 am

Thanks Tony, This is something I need to think about but sounds great. Will reach out when I’m ready.


Joe Mangrum

May 3, 2017 at 12:16 am

Tony, I’m ready to laugh this, I’m opening a support ticket


Joe Mangrum

May 3, 2017 at 12:39 am

sorry, ready to start this process


Josh

  • Support Staff

May 3, 2017 at 6:12 am

Hi Joe,

We received the form, but I’m afraid the WordPress admin password you sent is invalid. Can you doublecheck that information and resend the redeem a support token form with the correct information? Thank you.


Joe Mangrum

May 3, 2017 at 8:59 am

resent


Josh

  • Support Staff

May 3, 2017 at 1:15 pm

Hi Joe,

If you have a staging server where you’d like to test things out, you can download the customizations in the form of a plugin which you can download here:

https://gist.github.com/joshfeck/1b373714910eda57a46e397df61d97bf


Joe Mangrum

May 8, 2017 at 3:56 pm

I’m not sure what a staging server is?? I thought you would install??


Josh

  • Support Staff

May 9, 2017 at 7:08 am

Hi Joe,

A staging server is a duplicate of the website that is recommended for development, for testing updates, and for testing changes. When you use a staging server for the above tasks it can help prevent issues on the production server that’s taking the real-time registrations.

Here’s a tutorial that shows how to set up a staging server:

http://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

If you decide to test the new code out on your production server, I’ve installed the plugin. When you’re ready to test or start using it, you can go to the WordPress plugins page and click on the Activate link below the plugin named “Event Espresso add custom online payments surcharges”.


Joe Mangrum

May 10, 2017 at 12:14 pm

Thanks Josh I did a quick test and it seems it adds on to the existing surcharges built into the ticket already, I assume just remove these charges and the plugin will work ?invoice view

Should I just remove these charges from the events from now on substituting the plugin??

Thanks so much for your help


Josh

  • Support Staff

May 10, 2017 at 1:03 pm

That’s entirely up to you Joe. The plugin doesn’t factor in whether or not you’ve already added other surcharges.

The support post ‘Is there a way to add surcharge ONLY if question checkbox is checked?’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 2 years, 3 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!