• I’m building a page to display a range of event but want to include the price in the listing.

    I’ve added the #_EVENTPRICERANGE tag to the event display which works perfectly when the event has a ticket price but if no tickets are available the value is shown as £0.

    For our events this could be misleading so I want to hide the price if the value is £0.

    I’ve had a look in the templates but can’t see any option to do this. Is there a snippet available that will only display the price when the value is over 0?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Use the {not_free}content{/not_free} conditional placeholder

    For example, use the following in the single event format:

    				{not_free}
    				<div class="em-item-meta-line em-event-prices">
    					<span class="em-icon-ticket em-icon"></span>
    					#_EVENTPRICERANGE
    				</div>
    				{/not_free}
    Thread Starter Lobsterdm

    (@lobsterdm)

    That’s perfect thank you

    Sorry i’m a total noob in wordpress, where do I insert this code exactly?

    See the following thread for instructions on how to change the format of the single event page: https://www.ads-software.com/support/topic/some-odd-features-showing-on-my-event-page/

    Change this:

    				<h3>Bookings</h3>
    				{bookings_open}
    				<div class="em-item-meta-line em-event-prices">
    					<span class="em-icon-ticket em-icon"></span>
    					#_EVENTPRICERANGE
    				</div>
    				<a href="#em-event-booking-form" class="button input with-icon-right">
    					Signup Now					<span class="em-icon-ticket em-icon"></span>
    				</a>
    				{/bookings_open}

    To this:

    				<h3>Bookings</h3>
    				{bookings_open}
    				{not_free}
    				<div class="em-item-meta-line em-event-prices">
    					<span class="em-icon-ticket em-icon"></span>
    					#_EVENTPRICERANGE
    				</div>
    				{/not_free}
    				<a href="#em-event-booking-form" class="button input with-icon-right">
    					Signup Now					<span class="em-icon-ticket em-icon"></span>
    				</a>
    				{/bookings_open}
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display price but hide when price is £0’ is closed to new replies.