Price column issue

This topic contains 4 replies, has 2 voices, and was last updated by  Stephen Harris 8 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #25044

    Dear Stephen,

    The price column still appears even when all gateways are disabled and we do not enter any price. It automaticallyshows that the price per ticket is €0. This will be confusing since participants have to pay cash at the event itself.

    Any solutions?

    Thank you,

    Stefaan Van Hoeck
    #25046

    Hi Stefaan,

    If the event is free it adds the eo-booking-free-event class to the ticket picker. The plug-in then hides the column via CSS.

    If you’ve disabled the plug-in’s CSS in Settings > Event Organiser > General then that would cause it to display the column. Otherwise your theme may have over-ridden the styles.

    You can, alternatively, always add CSS to your theme’s stylesheet to hide the price column.

    Stephen Harris
    #25048

    Thanks Stephen,
    It ‘s now OK. The CSS was enabled in Settings > Event Organiser > General.
    I have disabled now and the column with price is hidden.
    Stefaan.

    Stefaan Van Hoeck
    #25066

    Dear Stephen,

    ( The url of the event is : http://toerismevosselaar.be/events/event/kersttocht-2016/ )
    A other issue about the price column. The event is free but in the mail ” %tickets% ” there is a price column.

    In the Reservation Form I have add a “Total” field with ID nr. 14 for Children under 12j.
    Is it possible that it is also in the mail. I have try with %event_ID:14%.

    I post here what I have done in the e-mail template. (Settings > Event Organiser > Tab Booking.
    Beste %display_name%, uw heeft voor ” %event_title% ” op %event_date% – %ticket_quantity% – plaats(en) gereserveerd en is/zijn:
    %tickets%
    De reservering van je ticket is %booking_reference%
    Vanaf 12 j betaalt u €3 per ticket ter plaatse aan de kassa. Gelieve gepast te betalen.
    Toerisme Vosselaar vzw dankt u.
    The receiver mail is like this screen picture. We will not see the price column is that possible ?
    In this example of booking there are 6 tickets for 17:15u and 5 for 17:45u

    Stefaan.

    enter image description here

    Stefaan Van Hoeck
    #25092

    Hi Stefaan,

    There’s a filter which filters the HTML mark-up of the ticket list. It’s a slight pain in that you have to replace the HTML mark-up of the list entirely:

    add_filter( 'eventorganiser_email_ticket_list', 'my_email_tickets_table', 10, 3 );
    function my_email_tickets_table( $html, $booking_id, $booking_tickets, $booking_id){
         //$html is the mark-up for the table. Alter/replace as required.
         //$booking_tickets is a array of tickets. Each ticket in the
         //array as $ticket->ticket_price and $ticket->ticket_name etc.
         //$booking_id is the booking ID. Or it is -1 when generating the e-mail
         //for preview (see Settings > Event Organiser > Bookings)
    
          return $html;
    }
    

    You can look at eventorganiser_email_ticket_list() in event-organiser-pro/includes/email.php (just don’t include the apply_filters lines).

    Stephen Harris
Viewing 5 posts - 1 through 5 (of 5 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.