Support

Home Forums Event Espresso Premium Display pretax price on Registration Checkout page

Display pretax price on Registration Checkout page

Posted: November 1, 2019 at 2:30 pm

Viewing 4 reply threads


mlevison

November 1, 2019 at 2:30 pm

I am wondering if I am able to display the base price on the Registration Page (the page before payment options).
I have used the “Display the base price of the ticket in the ticket selector” code snippet from the Code Snippets page (https://eventespresso.com/wiki/useful-php-code-snippets/#display-base-price) and it works great but I am hoping to do the same thing on the Registration Checkout page.
If this is not possible could I potentially add text like (taxes included) to the Name and Description displayed on the checkout page?


Tony

  • Support Staff

November 4, 2019 at 4:39 am

Hi there,

Are you using a price modifier as a tax rather than setting the ticket as taxable?

The reason I’m asking is the checkout page should already show something like ‘* price includes taxes’ on the checkout page if you set the ticket as taxable and then set EE to display prices including taxes. If you set it not to include taxes is shows ‘* price does not include taxes’.

Like this: https://monosnap.com/file/Es5OHACMVvEyNvOJLyfhE8M2dzmzE8

Is that not what you are looking for?


mlevison

November 4, 2019 at 11:20 am

I believe that we need to use price modifiers as we are applying GST in some provinces and HST in other provinces. Is there a way to apply different tax rates/types for different venue locations other than using price modifiers?


Josh

  • Support Staff

November 5, 2019 at 7:27 am

Hi,

That’s the only way in the user interface.

What you can do is change what’s displayed in the price column on the registration checkout page. So for example if you want to display
{base price} + tax you can add this little filter function:

add_filter(
    'FHEE__EE_Default_Line_Item_Display_Strategy___item_row__unit_price',
    'my_change_ticket_row_price',
    10,
    3
);
function my_change_ticket_row_price(
    $unit_price,
    $line_item,
    $tax_rate
) {
    $unit_price = EEH_Template::format_currency(
        $line_item->ticket()->base_price()->amount(),
        false,
        false
    );
    return $unit_price . ' + tax';
}

You can add the above to a functions plugin. Here’s a link to a guide that shows how to add a functions plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


mlevison

November 5, 2019 at 3:52 pm

Thanks Josh, that works for me!

Viewing 4 reply threads

The support post ‘Display pretax price on Registration Checkout page’ 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