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


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!

You must be logged in to reply to this support post. Sign In or Register for an Account

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: publish

Updated by  mlevison 1 week, 6 days ago ago

Topic Tags

Tagged: 

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.