Support

Home Forums Event Espresso Premium Events Table View display price including Taxes

Events Table View display price including Taxes

Posted: August 13, 2016 at 6:26 pm

Viewing 2 reply threads


Waz

August 13, 2016 at 6:26 pm

Hi Guys

I’ve just modified the template for events table view addon to include the price column using your code
https://gist.github.com/lorenzocaum/ef6afefd07c9c5f6f681

The problem I am having is I need to display the ticket price including taxes. Currently it displays the base price.

I’ve had a little play around but to no luck. It appears

$ticket->pretty_price();
displays the base price without taxes in a nice format

I tried this
$ticket_price = $ticket->get_ticket_total_with_taxes();
but it appears to display the total price without currency symbol and not rounded.

I would like the pretty price of ticket total with taxes rounded to the nearest dollar. is this possible?

Thanks for your help again, cheers

Waz


Tony

  • Support Staff

August 15, 2016 at 4:17 am

Hi there,

To output the price with the currency symbol you should be able to use something like this:

EEH_Template::format_currency( $ticket->get_ticket_total_with_taxes() );

That will that display the price including any taxes.


Waz

August 16, 2016 at 4:15 am

Thanks Tony, that did the trick!

Viewing 2 reply threads

The support post ‘Events Table View display price including Taxes’ 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