• Resolved heywatchoutdude

    (@heywatchoutdude)


    Hi,

    I have created two services (A service duration = 9 hours / B service duration = 7 hours) and assigned them to one provider (user: administrator).

    Then I have set the work hours (for A service) from 10:00AM to 19:00PM (9 hours) on monday.

    Did the same for B service from 12:00AM to 19:00PM (7 hours) on tuesday.

    Note: Ignore Business Representative Work Hours is set to YES.

    Somehow it only displays me the A service in the calendar.

    What am I doing wrong?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Hakan Ozevin

    (@puckrobin)

    Hi,

    With “it only displays me the A service in the calendar” do you mean service B is selectable from service selection pulldown, but there are no free slots for service B?

    You say that “I assigned them to one provider”. However, Ignore Business Representative Work Hours is only valid if there are no providers.

    You should extend Business Representative Work Hours (which means office hours) to cover both services.

    The logic here is to prevent providers to work outside office hours.

    Cheers,
    Hakan

    Thread Starter heywatchoutdude

    (@heywatchoutdude)

    Hi,

    no, service B is not showing up in the front end calendar, so I can’t select it.

    Is it possible to remove a provider from a service? If so, how?

    I did it under ?Business Settings > Work Hours > Service A and B > marked the time“

    Plugin Author Hakan Ozevin

    (@puckrobin)

    If service B doesn’t show up at all, you may have:
    a) set service B as “internal”
    b) used shortcode to show a particular service: [app_book service=”A”]

    You can remove provider from a service in Providers page. Deselect the service from “services provided” column.

    Plugin Author Hakan Ozevin

    (@puckrobin)

    A third possibility for not showing up:
    c) You may have set service categories but service B is not in any category.

    Thread Starter heywatchoutdude

    (@heywatchoutdude)

    Hi,

    a) set service B as “internal”
    -> Not enabled.

    b) used shortcode to show a particular service: [app_book service=”A”]
    -> Im just using [app_book] without attributes.

    c) You may have set service categories but service B is not in any category.
    -> “None defined”

    Plugin Author Hakan Ozevin

    (@puckrobin)

    Please give URL of your booking page.

    Thread Starter heywatchoutdude

    (@heywatchoutdude)

    Plugin Author Hakan Ozevin

    (@puckrobin)

    There is a fourth possibility that I forgot to mention, and it seems you used like that:

    If the booking calendar is on the “description page” of the service, WP BASE automatically interprets as service being preselected and does not allow another service to be selected.

    You can use the shortcode like this to change this behavior: [app_book service=0]

    Cheers,
    Hakan

    Thread Starter heywatchoutdude

    (@heywatchoutdude)

    Yeah this is working but now the user has to accept first the service and then select the date.

    Furthermore is it possible just to include the DATE (without time) in the confirmation mail? I just found ?DATE_TIME“ which also includes the time.

    Plugin Author Hakan Ozevin

    (@puckrobin)

    What do you mean by “user has to accept first the service”?

    Thread Starter heywatchoutdude

    (@heywatchoutdude)

    When I have two services (A and B), there is a new dropdown menu which has to be selected first and afterwards the date via calendar.

    Furthermore is it possible just to include the DATE (without time) in the confirmation mail? I just found ?DATE_TIME“ which also includes the time. -Any idea? If that is possible it should solve my issue.

    Plugin Author Hakan Ozevin

    (@puckrobin)

    When I have two services (A and B), there is a new dropdown menu which has to be selected first and afterwards the date via calendar.

    Yes, that is the way it is supposed to be, and most websites are using like that. You have other options though:
    You can use two calendars on the same page with different services:
    [app_book service=1]
    [app_book service=2]

    Or you can add [app_book] shortcode to each service description page.

    Please check our demo website for different configurations:
    https://demo.wp-base.com/

    Furthermore is it possible just to include the DATE (without time) in the confirmation mail? I just found ?DATE_TIME“ which also includes the time. -Any idea? If that is possible it should solve my issue.

    DATE_TIME shows date only when service is lasting “all day”.

    If you want to use date only even when service is not lasting all day long, you can create your own placeholder. In this example, DATE_ONLY placeholder will be replaced with date. Add this code snippet to functions.php of your active theme or to WP BASE > Tools > Custom Functions.

    add_filter( 'app_email_replace_pre', 'app_pholder_date_only', 10, 2 );
    function app_pholder_date_only( $text, $r ) {
    if ( empty( $r->ID ) ) {
    return $text;
    }

    $booking = wpb_get_booking( $r->ID );

    return str_replace( 'DATE_ONLY', $booking->client_date(), $text );
    }

    Thread Starter heywatchoutdude

    (@heywatchoutdude)

    Thanks! Working like a charm ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Multiple Services – One Provider’ is closed to new replies.