Support

Home Forums Event Espresso Premium Show all prices in list, but hide free

Show all prices in list, but hide free

Posted: September 6, 2013 at 9:39 am


daytonhistory

September 6, 2013 at 9:39 am

We’re using this solution: https://eventespresso.com/topic/price-range-on-the-event-registration-page/

We would like any event that is listed as $0.00 to remain hidden. Currently it is displaying as “General Admission $0.00” (pulled from Name 2/Price $ in the event editor).

Outside of this custom function, we can hide Free Event with localization, but this information is being pulled from somewhere.

WP – Latest version
Event Espresso is up-to-date Version 3.1.34.1.P
Ticketing Version 2.0.10.2.p
Reoccurring events Version 1.1.7.1
Permissions Version 1.5.4.1


Dean

September 9, 2013 at 12:58 am

Hi Amanda,

“We would like any event that is listed as $0.00 to remain hidden. ”

Do you want the price hidden or the event itself?

If it’s the price, then you can amend the function a little bit, where it says

	if ($result['min'] == $result['max']) {
		$result = $org_options['currency_symbol'].$result['min'];
	} else {

change it to

	if ($result['min'] == $result['max']) {
		$result = $org_options['currency_symbol'].$result['min'];
		if($result == "$0.00") { $result = ''; }
	} else {

If it’s the event itself thats a little harder. you would likely need to either change the [EVENT_LIST] shortcode or use javascript.

If you are not sure how to go about this, I would recommend contacting one of our recommended developers https://eventespresso.com/developers/event-espresso-pros/

The support post ‘Show all prices in list, but hide free’ 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