Home Forums Event Espresso Premium Modifying Tax Values

Modifying Tax Values

Posted: October 30, 2018 at 9:45 am


October 30, 2018 at 9:45 am

We have written you a lot about trying to get Provincial taxes to display and have finally come up with a custom function to manage it, with some success, but one major issue.

What we’ve done is:
1. Used the Description field in the Ticket and the Tax section to assign a Province code to each
2. Set all applicable tickets to taxable (collects both taxes)
3. Use our function to remove the tax code that does not apply

This works great for having Ontario only tax OR Alberta only tax. Where this falls apart is that we are unable to update the taxes for partial amounts if the user chooses BOTH an Ontario and an Alberta event.

The current result is:
Ontario – $1
Alberta – $1
Subtotal – $2
Ontario 13% – $0.26
Alberta 5% – $0.10
Total $2.36

We can already loop through the taxes but our efforts to subtract one from the other are failing because – though we can remove a tax line – we just cannot seem to update the variables to a new value.

The result should be:
Ontario – $1
Alberta – $1
Subtotal – $2
Ontario 13% – $0.13
Alberta 5% – $0.05
Total $2.18

What filter do we have to add to manually reset the tax LIN_total to 0.13 and 0.05 as we loop through?



  • Support Staff

November 1, 2018 at 8:58 am

Hi Matt,

I’m not aware of a filter that will allow for resetting LIN_total like that. What you could do is open a Feature Request issue on GitHub and provide as many details as possible (including code examples) for the developers and they can give you feedback. An issue on GitHub will be helpful in this case because it may result in a Pull Request.

The support post ‘Modifying Tax Values’ 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 1 year, 8 months ago ago

Topic Tags



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