Support

Home Forums Event Espresso Premium Price Display options

Price Display options

Posted: September 12, 2012 at 7:37 am

Viewing 15 reply threads
at line 42 and via the theme css use display:none (less risk of it breaking things) i.e:

in css
.dean {display:none;}

or delete that entire chunk of code in the

(more risky)


islesser

September 12, 2012 at 7:37 am

Hi ive got a few problems with how the price of my events are displayed.
Firstly on the event registration page where the price is shown it reads as
“Price: £75.00 + 20.00% Surcharge”
whereas i need this to read
“Price: £75.00 + VAT”
I’ve changed the text option to VAT in the overall settings but its not shown here, also i need to get rid of it showing the percentage. Ive looked through the files individually but cant find where this is set and what to change.

Also
on the confirm registration page there is a
PRICE PER ATTENDEE:
section which i dont need and cant see how to get rid of

Thanks for your time


Dean

September 13, 2012 at 12:08 am

Hello,

The way it is set up, the surcharge area needs some sort of figure to work. IT can be set up to either show something like £20 VAT or 17.5% VAT, but unfortunately, not just VAT.

In the Confirmation page, to remove Prive per Attendee you will need to code edit confirmation_display.php, which can be copied to your uploads/espresso/templates folder.

On line 42, remove or comment out this

       <tr>
        <th scope="row" class="header">
          <?php echo empty($price_type) ? __('Price per attendee:','event_espresso') : __('Type/Price per attendee:','event_espresso'); ?>
        </th>
        <td><span class="event_espresso_value"><?php echo empty($price_type) ? $org_options['currency_symbol'] . $event_price : stripslashes_deep($price_type) . ' / ' .$org_options['currency_symbol'].$event_price;?></span></td>
      </tr>


islesser

September 13, 2012 at 12:44 pm

ye that fix works great thanks

is there anyway i can just hide the price from the registration page aswell then?


Dean

September 13, 2012 at 11:29 pm

Copy registration_page.php and registration_page_display.php over to the uploads/espresso/templates folder.

In the newly copied registration_page_display.php line 160 change the line there to this (note its just an addition of two // )

    <p class="event_prices"><?php //echo event_espresso_price_dropdown($event_id); 
//Show pricing in a dropdown or text ?></p>


islesser

September 14, 2012 at 3:34 am

Yep thats worked, thanks alot mate


islesser

September 14, 2012 at 6:47 am

on closer inspection this seems to have broken the pricing section of the plugin, all events no matter what price i set in the event manager cost £0.00 now. and this has only happened since i modified the files you stated?


Dean

September 14, 2012 at 7:04 am

I can only assume you may have added it to the wrong bit, the code change only stops the price from being displayed on the registration page, it does not change or effect any other code.

Can you copy and paste the section your changed please?


islesser

September 14, 2012 at 7:43 am

Line 38-44 inclusive from confirmation_display

                if ( $display_price ){

           ?&gt;    

          &lt;?php
            /*
             * Added for seating chart addon

Line 160-161 of registration_page_display


islesser

September 14, 2012 at 7:49 am

although i have removed all 3 files you suggested (not replacing them) and no change. (if that helps)


islesser

September 14, 2012 at 7:51 am

line 160-161 of registration_page_display (didnt post before for some reason)

http://pastebin.com/9HgU76wm

  • This reply was modified 12 years, 3 months ago by islesser.
  • This reply was modified 12 years, 3 months ago by islesser.


islesser

September 14, 2012 at 1:22 pm

on further inspection its and error in the
registration_page_display.php or registration_page.php file

(turned out i hadnt removed them and it now works, but i still need to stop the price from being shown on that page


Dean

September 17, 2012 at 7:55 am

Hey

Perhaps I overcomplicated this, so sorry, I thought it was a quick and simple solution.

Other options:

Copy the confirmation_display.php to your uploads/espresso/templates folder.

Either add a CSS class to the


islesser

September 25, 2012 at 10:56 am

to the?


Dean

September 26, 2012 at 1:36 am

Ooops, sorry about that.

Either add a class to the <tr> surrounding the Price per attendee in the confirmation_display php (line 41) and in your theme css use display: none or delete the code <tr> (line 41) to </tr> (line 46)

Those line numbers are approx.


islesser

October 4, 2012 at 4:19 pm

ye that removes the price on the confirmation display page, i need to remove the price from being shown on the registration page without breaking the overall priceing


Dean

October 5, 2012 at 12:42 am

If you mean the individual registration pages then the price already has a class .event_prices. You can use the same display_none; trick with that too.

Viewing 15 reply threads

The support post ‘Price Display options’ 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