Okay
  Public Ticket #2413179
booking (RSVP) only for members
Closed

Comments

  •  1
    martina_schw started the conversation

    Hello, I like to use your Calandar for my yoga classes and show classes in a weekly view. All website visitors should see this weekly view but only my registred members should be allowed to book a yoga class by RSVP.

    Is these feature available)

    Thank you.

    Martina

  •  770
    Zhivko replied

    Hi,

    Yes, via custom filter. Add the filter in your theme functions.php file:

    /**
     * Calendar mod: Only logged-in users can RSVP
     */
    add_action('init', function() {
        $is_logged_in = is_user_logged_in();
        add_filter('stec_event_get_front_data', function($data) use ($is_logged_in) {
            if ((int) $data['rsvp'] > 0) {
                $data['rsvp'] = $is_logged_in ? 1 : 0;
            }
            return $data;
        });
        add_action('stec_single_wp_head', function($event) use($is_logged_in) {
            if ($event->get_rsvp() === 1) {
                $event->set_rsvp($is_logged_in ? 1 : 0);
            }
        });
    });

    Weekly view: https://stachethemes.com/wp-demos/the-calendar/week/


    Stachethemes Developer

  •  1
    martina_schw replied

    Hello, 

    thank you. 

    "logged in" means in my Yoga website or is there a "sign-in" to the calendar?

     Martina

  •  770
    Zhivko replied

    In your Yoga website.


    Stachethemes Developer

  •  1
    martina_schw replied

    Hello, ok - fine :-)

    I tried at your Demo Site to add for a  Yoga recurring class two types of tickets

    1. ticket A: "online live" with a limit of 30 places

    2. ticket B: "present in the studio" with  a limit of10 places

    Unfortunately I couldn't do it. Only one ticket is displayed at the frontend.

    Am I making a mistake or is it not possible to choose two tickets with different limits?

    https://stachethemes.com/wp-demos/tbb/wp-admin/admin.php?page=stec_menu__events&view=edit&calendar_id=127479&event_id=127480

    Thank you for your patience.

    Martina

  •  770
    Zhivko replied

    Make sure to set price. If the ticket is free set it to 0.

    I've already made the changes.

    https://stachethemes.com/wp-demos/tbb/stec_event/yoga-fur-schwangere/


    Stachethemes Developer

  •  1
    martina_schw replied

    Hello, 

    thank you. 

    That is now working. But I am a little confused how to place a reservation for the Yoga 

    class.

    At the frontend first I select the event at the date - for example the 23 th May - I press "Ticket" and select the numbers I like - then "checkout" and "procceed to checkout" and "place order" That ist clear.

    Now at the backend I should see this booking for this day with name and number of places the customer had booked and the places being left for this event.

    Where do I find thist?

    Thank you.

    Martina

  •  770
    Zhivko replied

    Go to Dashboard -> WooCommerce -> Orders.

    When order has been made (ticket purchase) you can see the order status and info in the WooCommerce Orders section.


    Stachethemes Developer

  •  1
    martina_schw replied

    Hello, yes - but this infos are related to the different types of sold tickets and I do not find a link or a info to the occupancy rate and attendees of the event at a specific date...Thx Martina

  •  770
    Zhivko replied

    The event attendees can be viewed from Dashboard -> St. Event Calendar -> Events -> Add / Edit event page -> Attendance tab -> Manage Attendees section at the bottom. Screenshot attached.

    You can also export the attendance info in CSV format by going to Dashboard -> St. Event Calendar -> Export Events -> Select calendar -> View Events. Select event -> CSV -> Attendance. Screenshot attached.


    Stachethemes Developer