Support

Home Forums Event Espresso Premium Urgent!!! Remove event pricing and payment

Urgent!!! Remove event pricing and payment

Posted: March 7, 2013 at 3:55 am


Tone Soldal

March 7, 2013 at 3:55 am

I do not want the event pricing and payment to show, as we will issue invoices manually.

What do I do?


Dean

March 7, 2013 at 4:05 am

Hello,

You will need to amend the templates to remove mention of the prices.

Start of by copying these files to your wp-content/uploads/espresso/templates directory

event_list.php
event_list_display.php
registration_page.php
registration_page_display.php

You will only edit 2 files, but all four are needed.

in registration_page_display, do a search for espresso_price_select and then you will need to remove the line of code containing that. You would be advised to remove the code above to get rid of the labels

for example

$price_label = '<span class="section-title">'.__('Choose an Option:   ', 'event_espresso').'</span>';
?> IMPORTANT!!! DONT REMOVE THIS!
<p class="event_prices">
<?php do_action( 'espresso_price_select', $event_id, array('show_label'=>TRUE, 'label'=>$price_label) );?>
</p>

Where it says important dont remove this, if you do remove the ?> it will break the template.

In event_list_display.php look for p_event_price. this is easier because there are just two lines you can remove

<p id="p_event_price-<?php echo $event_id ?>" class="event_price"><span class="section-title"><?php  echo __('Price: ', 'event_espresso'); ?></span> <?php echo  $org_options['currency_symbol'].$event->event_cost; ?></p>

and

<p id="p_event_price-<?php echo $event_id ?>" class="event_price"><?php echo __('Free Event', 'event_espresso'); ?></p>

As always back things up before hand, make sure you have FTP access and if possible test changes on a development or local server before changing on your live server.


Ralph Remo Faes

March 7, 2013 at 4:34 am

Thank you, as we can not use the payment options (multi currency CHF/EUR) we would like to remove as well the pricing and payment from Event Espresso.
When I follow the steps above I get following error in my FTP-Browser:

Server said: Rename /cal.bz/wordpress/wp-content/uploads/espresso/templates/event_list copy.php: Permission denied
Error -150: could not rename remote file

I tried to change the folder to be able to write in it (octal:777), but that is not possible, alsways jumps back to 755.


Ralph Remo Faes

March 7, 2013 at 4:36 am

Oh, I forgot:
This when I try to copy the PHP-files into the folder


Dean

March 7, 2013 at 4:46 am

Hi,

event_list copy.php

Dont have a space in the name, I don’t think the server will like that. And 755 is sufficient.

we would like to remove as well the pricing and payment from Event Espresso.

Do you mean from the admin side? That would be more difficult, practically a re-write of the plugin.


Ralph Remo Faes

March 7, 2013 at 5:08 am

Also without Space it does not work.
If I download the files and upload it from the desktop there is another error:
Could not upload “event_list_display.php”.
Server said: event_list_display.php: Permission denied
Error -160: could not start data transfer

Just hiding the payment option would be sufficient but not the best option.
Better would be if Event Espresso offers this possibility in the General Settings, one day.
Or a multi-currency version! 😉


Tone Soldal

March 7, 2013 at 5:56 am

I have removed the codes in the two templates. But nothing happens!
I simply do not want the pricing and payment to display in the registration form.
Other suggestions??


Dean

March 7, 2013 at 6:03 am

@ralph it sounds like it is a server error more than anything. You would need to talk to your host regarding that.

@Tone Have you checked your cache is clear? The removal of that code happily deleted prices from my website. I am assuming you copied the files to the uploads directory and edited them there?


Tone Soldal

March 7, 2013 at 6:23 am

Tone Have you checked your cache is clear? The removal of that code happily deleted prices from my website. I am assuming you copied the files to the uploads directory and edited them there?

Uploads -> espresso -> templates???


Tone Soldal

March 7, 2013 at 6:35 am

I copied the files to the uploads directory -> espresso -> templates. But it does not do the work!

Did I misunderstand sth?


Tone Soldal

March 7, 2013 at 6:40 am

I managed! Hurray!
Many thx for helping!!!


Tone Soldal

March 7, 2013 at 7:07 am

yet price per attendee + total price display in next window (when submitting the form).
How do I get rid of it?
And also, there are two buttons to confirm registration, which is very confusing. I only need one.

Can you please help?


Ralph Remo Faes

March 7, 2013 at 9:36 am

I can copy the files in the uploads folder but neither in the espresso nore in the templates folder. So I assume it is not a server problem.


Dean

March 7, 2013 at 9:38 am

Hi Tone,

GLad you got it worked out.

The confirmation_display.php contains the code for prices on that page.

Remove these sections.

<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'] . number_format($final_price,2) : stripslashes_deep($price_type) . ' / ' .$org_options['currency_symbol'].number_format($final_price,2);?></span></td>
</tr>

and

<tr valign="top">
<th scope="row" class="header">
<?php _e('Total Price:','event_espresso'); ?>
</th>
<td>
<span class="event_espresso_value"><?php echo $display_cost;  //echo $event_discount_label;?></span>
</td>
</tr>

To remove the second button you can use CSS, add this to your themes style.css or a plugin such as My Custom CSS.

#confirm2 {
display: none;
}


Dean

March 7, 2013 at 9:46 am

@ralph I have seen it before where some folders are accessible and some arent. It is unlikley an issue with event Espresso as it says

Permission denied
Error -160: could not start data transfer

And that is to do with the file transfer or server.


Ralph Remo Faes

March 8, 2013 at 7:03 am

It was an issue from the server.
But we couldn’t use the registration form from Event Espresso anymore. Some things did not work out as we expected. So we use EE just to show the event, for registration and payment we use WP ecommerce now. What a pity. One of the best event tools, but still not almighty.
Thanks!

The support post ‘Urgent!!! Remove event pricing and payment’ 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