Search Results for 'booking form'

WordPress Event Management, Calendars & Registration Forums Search Search Results for 'booking form'

Viewing 15 results - 571 through 585 (of 932 total)
  • Author
    Search Results
  • #14910

    Nicolas Massart

    Hello,

    I created a custom field fot the events. I can display it on the event detail page with this code :

    <?php 
        $acompte = get_field('acompte');
        $formatted_price_acompte = eo_format_price( $acompte, true ); //Format price with currency
        echo $formatted_price_acompte;
    ?>
    

    Now I want to display it in the mail sent to my users after a booking. For this I’m editing this action :

    //Only send receipt on offline payment.
    add_action( 'eventorganiser_pre_gateway_booking_offline', 'email_booking_receipt' );
    //Uncomment the line below if necessary
    //add_action( 'eventorganiser_pre_gateway_booking_free', 'email_booking_receipt' );
    
    function email_booking_receipt( $booking_id ){
    
         //If you need it:
         $post_id = (int) eo_get_booking_meta( $booking_id, 'event_id' );
         $occurrence_id = (int) eo_get_booking_meta( $booking_id, 'occurrence_id' );
         $booking_amount = (int) eo_get_booking_meta( $booking_id, 'booking_amount' );
         $user_id = (int) eo_get_booking_meta( $booking_id, 'bookee' );
    
    
         //You may want to check that $booking_amount > 0 before proceeding
    
         /* Set the recipients email */
         $bookee_email = eo_get_booking_meta( $booking_id, 'bookee_email' );
    
         /* Set email template - optional */
         $template = eventorganiser_pro_get_option( 'email_template' );
    
         /* Set headers - optional */
         $from_name = get_bloginfo( 'name' );
         $from_email = get_option( 'admin_email' );
         $headers = "From: " . stripslashes_deep( html_entity_decode( $from_name, ENT_COMPAT, 'UTF-8' ) ) . "  <$from_email>\r\n";
         $headers .= "Reply-To: ". $from_email . "\r\n";
    
         /* Set message */
         $message = "

    My message

    "; $message = eventorganiser_email_template_tags( $message , $booking_id, $template );//Parses the email tags /* Set subject */ $subject = 'Votre inscription est en attente de validation'; /* Send message */ eventorganiser_mail( $bookee_email, $subject, $message, $headers, array(), $template ); }

    Could you please tell me how to achieve it ?


    Stephen Harris

    Hi Nicolas,

    The easiest way is probably to change the message that appears to logged-out users

    add_filter( 'eventorganiser_booking_login_required', 'my_login_required_message' );
    function my_login_required_message(){
        $register_link = site_url('/wp-login.php?action=register&redirect_to=' . get_permalink());
        return "<p>Only logged in users can place bookings, you can register <a href='".$register_link."'>here</a></p>
    }
    

    That can in a site utility plug-in (and although not recommended, a theme’s functions.php). Or you can edit the template eo-booking-form.php (after copying it to your theme).

    #14830

    In reply to: single ticket issue


    Stephen Harris

    Hi Heiko,

    Do you have “Simple Booking Mode” enabled (check the ticket-picker options on the form customiser).

    If so, the user will not be able to select the ticket but is assumed to book one place for the one ticket type available for the event.

    If you create additional tickets, then this disables the simple booking mode, and the user can then adjust the ticket quantities.

    #14722

    Stephen Harris

    Hi Urban,

    Please see the first question on this theme-integration documentation page. That details how you can move all the event details to the bottom of the event. (Though you can remove the map from the event-meta-event-single.php template, and move it to the bottom).

    That, however, will cause the event map/details to appear below the booking form. To get round this you need to do two things:

    1. Disable the automatic booking form<br />
    Just add the following snippet to your theme’s functions.php

    add_filter( 'eventorganiser_pro_get_option_disable_automatic_form', '__return_true' );
    

    2. Insert the booking form

    Add the following to your single-event.php template (see FAQ question referred to above) wherever you want the booking form to appear:

    <?php echo eo_get_booking_form(); ?>
    
    #14512

    Stephen Harris

    Do you mean you want to link to an event’s booking form? If so http://yoursite.com/events/event/event-name#eo-booking-form should do it.

    You can do that via:

    $url = get_the_permalink( $event_id ) .  '#eo-booking-form';
    
    #14511

    In reply to: multiple day events


    Stephen Harris

    Hi Cinzia,

    You’re correct in thinking that you would need to sell tickets by “occurrence” rather than series. In this case you would have the event start on the 5th April and end on the 11th and repeat every two weeks. That is each bookable week is a single occurrence

    You can change the format in which the occurrences are displayed by editing event-meta-single-event.php (see source). By default only the start date is included, but you can include in the end date too.

    At the moment, people can select each single day of that course….

    When selling tickets by occurrence, the user selects the start date of the occurrence. So if set up as above, by selecting 5th April, would meant the occurrence 5th-12th April. Unfortunately there it is not possible to highlight the entire week. Alternatively you can edit the eo-ticket-picker.php template to use a drop-down with dates formatted as desired. (The select field must have ID eo_occurrence_picker_select and name eventorganiser[booking][occurrence_id]. The values of the options must be the occurrence ID).

    #14509

    cinzia rascazzo

    I would like to make an anchor to a booking form

    like this:

    <h3 id=”eo-booking-title”>Booking</h3>


    how to make it in the most efficient way?

    i can do it manually, but after your update it will be removed.
    is there another way to do it?

    #14491

    Urban Norlander

    Hi
    I want Radio buttons on this form

    http://svenskamorenoinstitutet.se/events/event/symboler/#eo-bookings
    I want it to be possible for a user to submit several bookings from a form but only one at the time.

    Right now there seems to be a problem because its impossible to make any bookings. I have made some changes earlier but I can’t find them anymore. I would appreciate some help because right now it´s a mess.

    all the best

    /Urban

    #14286

    Stephen Harris

    Hi Cindi,

    1. Yes, this is the subscribe shortcode. Please note for recurring events, this adds all dates. There is a function which can be used to generate an “add to google” link for specific dates. Both of these are in the free version.

    2. There is a function for retrieving ‘bookings’, which would allow yout list volunteers (or ‘bookees’). There is a code snippet here – which does a bit more than you require (solely for the purpose of demonstrating the API). There is also these example which you can place inside your theme’s functions.php or a utility plug-in to add a list of the bookees/volunteers to your event’s page.

    3. By default the time format should be the one set by your site’s settings. Sometimes, as in the case calendar or time-input, the time is displayed in one of two formats (12 hour / 24 hour). In those cases, if your site is using a 12 hour format, then so should the calendar, and vice versa*. The event page templates use the site time format too.. Currently the templates hardcode the date part of the event datetime. This shall change, but it is waiting for a major update – 3.0 – (as its shall change current behaviour). If you want to change this you can edit the template (copy it into your theme first so your changes aren’t lost when updating the plug-in).

    * The plug-in tries to determine whether your entered time format is a 12 or 24 hour format. If it’s wrong you can ‘correct’ it.

    #14253

    Stephen Harris

    Hi Ronya,

    Yes, I’ll be in touch with that plug-in.

    Regarding the optional donation, that would be possible. You can add a field using the form customiser or the form API, to ask for an amount and use that to alter the booking total. You can alter the booking total via the eventorganiser_get_booking_meta_booking_amount filter (see includes/bookings.php) and the eo_get_booking_meta() function. Also for PayPal you’d need to alter the PayPal cart by adding the extra “item”. You can do this via the eventorganiser_pre_gateway_checkout_paypal filter (see this related thread http://wp-event-organiser.com/forums/topic/add-on-mechandize/). If you’d to ‘outsource’ the development of this, feel free to get in touch via this form for a quote.

    #14249

    Ronya Banks

    Hi Stephen,

    I saw in one of your forum responses (to this question: http://wp-event-organiser.com/forums/topic/multiple-logins/ ) that you had developed an unsupported extension that allows PayPal settings to be changed per event. Would it be possible for me to get a copy of that?

    The issue is that my client would like to use a different PayPal account from the default account for a certain category of event. I’ve looked at your EO code as well as snippets you’ve provided to add a gateway, but it seems that adding a second PayPal account would be fairly complex.

    One other thing the client requested was a donation button on the booking form. The client is a non-profit that sells tickets to events but would like to give people the option to add an additional donation to the total. From my googling, it doesn’t look like this is possible even on PayPal’s end, in terms of processing the payment. Would you have any knowledge about this?

    Thanks for your help! Suzanne (web developer for Ronya Banks)

    • This topic was modified 10 years, 7 months ago by  Ronya Banks.
    #14247

    Stephen Harris

    Hi Don,

    I’m glad you like the plug-in :). There is a simple solution:

    add_action( 'eventorganiser_pre_gateway_booking_offline', 'my_offline_gateway_redirect', 10, 4 );
    function my_offline_gateway_redirect( $booking_id, $booking, $errors, $form ){
    
        $total_price = eo_get_booking_meta( $booking_id, 'booking_amount' );
    
        if( $total_price ){
    
            //TODO replace slug below with that of the intended page or hardcode page ID
            $page_id = get_page_by_path( 'pay-offline' ); 
    
            if( $page_id ){
                wp_redirect( get_permalink( $page_id ) );
                exit;
            }
    
        }
    
    }
    

    You will just need to replace ‘pay-offline’ with the slug of the target page, or otherwise set $page_id to the ID of the target page.

    The snippet also checks to ensure that there is an amount to be paid, as otherwise you probably don’t want to redirect them to the “how to pay” page.

    #14242

    Don West

    Hi,
    Great Plugin! Replacing Events Manager Pro with it provided I can get this to work. Since I’ve already purchased it I’m hoping there is an easy solution, as there was with Events Manager Pro 😉

    I use the PayPal Gateway and the Offline gateway.
    I need to redirect only the Offline Gateway after a booking to a page that I specify.
    That page gives the user the option to pay me online with a check (something I wrote with the use of Gravity Forms and their PDF addon), or Redeem a gift certificate (PDF Voucher Addon for WP-eStore).

    This is currently working at my site http://www.donwestworkshops.com. Book an event and select the “Pay WIth a Check/Gift Certificate” Gateway and you will be redirected to said page. The redirect was a few lines of code the developer (finally) posted deep in the annals of his forum. It was deposited in the functions.php file of the theme and worked fine ever since.

    I just need the same little function for your application to work for me 🙂 Note that if I use the suggested redirect to URL feature now present in the settings, my PayPal users are redirected to my offline gateway payment page as well…which is NOT good. They need to go to the thank you page 🙂

    Can you give me some code love on this? Or some direction as to what hook to use? Thanks! 🙂

    #14071

    Stephen Harris

    Hi Adam,

    That article refers to adding a custom field to the booking form.

    It sounds like you’re referring to adding fields to the event admin page. Additional metaboxes can be added to the event admin page, and the user input saved and displayed on the event page. Events are just a post type (of type ‘event’) and there are plenty of articles (like this one) on how to add your own metabox, but there are also alot of plug-ins available that handle on the code-side things for you.

    (By the way, if you instead were referring to the front end submissions plug-in, then you can add custom fields (including select fields), to collect data for the event via the form customiser. This can then be displayed on the event page if desired).

    If you have any further questions, feel free to start a new thread.

Viewing 15 results - 571 through 585 (of 932 total)