{"id":2961,"date":"2022-08-04T15:08:57","date_gmt":"2022-08-04T15:08:57","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/?p=2961"},"modified":"2023-04-06T14:43:51","modified_gmt":"2023-04-06T14:43:51","slug":"how-to-book-a-fitness-session-with-trainer","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/","title":{"rendered":"How to book a fitness session with trainer"},"content":{"rendered":"\n<p>In this tutorial, we want to focus on fitness session booking, where besides date and time, the customer can also choose: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>the duration of the session<\/li>\n\n\n\n<li>the trainer (and opt for the expert one at a higher cost)<\/li>\n<\/ul>\n\n\n\n<p>We will also focus on an alternative where the trainer will be automatically assigned, instead of being chosen by the customer. <\/p>\n\n\n\n<p>We&#8217;ll create one resource for each trainer and one product for the fitness session, where we will link the resources.<\/p>\n\n\n\n<p>Let&#8217;s start then. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Resources<\/h3>\n\n\n\n<p>Let&#8217;s start with the resources&#8217; configuration, so we can set each trainer&#8217;s availability. <\/p>\n\n\n\n<p>Let&#8217;s go to YITH &gt; Booking &gt; Configuration &gt; Resources and click on &#8220;Add new resource&#8221;. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"864\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png\" alt=\"Add new resources\" class=\"wp-image-4149\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png 1022w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example-300x254.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example-768x649.png 768w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/a><\/figure>\n\n\n\n<p>Let&#8217;s call it with the trainer&#8217;s name, Jimmy in this case, set availability quantity to 1, and set his working days as available every day except for Mondays, his weekly day off. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-resource.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"938\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-resource-1024x938.png\" alt=\"Jimmy's availability in resource settings\" class=\"wp-image-4162\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-resource-1024x938.png 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-resource-300x275.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-resource-768x704.png 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-resource.png 1430w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>As Jimmy is available for the whole day, we don&#8217;t have to set up specific hours here, we will set hours in the fitness session product, which will automatically restrict Jimmy&#8217;s availability as well. <\/p>\n\n\n\n<p>We will add some more extra rules for his <strong>vacation <\/strong>for August 15-31. Let&#8217;s click on <strong>+Add rule<\/strong> in the Additional availability rules, then set the rule type to Generic dates and add the time range. We&#8217;ll set these days as <strong>Not bookable<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-rule.png\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"597\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-rule-1024x597.png\" alt=\"Extra availability rules\" class=\"wp-image-4163\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-rule-1024x597.png 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-rule-300x175.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-rule-768x448.png 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-rule-1536x896.png 1536w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/jimmy-rule.png 1674w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>We&#8217;ll set the other trainers similarly, but with different days off and vacations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Product<\/h3>\n\n\n\n<p>Let&#8217;s move on now to the product settings. <\/p>\n\n\n\n<p>We can create a new product, give it a name, and set it to &#8220;<strong>bookable product<\/strong>&#8221; and &#8220;<strong>virtual<\/strong>&#8220;: <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/bookable-product.png\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"564\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/bookable-product.png\" alt=\"Set bookable product\" class=\"wp-image-4072\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/bookable-product.png 850w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/bookable-product-300x199.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/bookable-product-768x510.png 768w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n\n\n\n<p>Now, you&#8217;ll see the <strong>Booking Options<\/strong> tab where you can add all your settings. <br>If you can&#8217;t see one or more of the sections, make sure you have activated the related module as explained <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/premium-version-settings\/integrations\/\">here<\/a>.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Step 1 \u2014 settings<\/h5>\n\n\n\n<p>In the Settings section, we will set the booking duration as <strong>Customer can book units of 1 hour<\/strong>, because our sessions by default lasts one hour.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/duration-hours.png\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"298\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/duration-hours-1024x298.png\" alt=\"\" class=\"wp-image-3868\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/duration-hours-1024x298.png 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/duration-hours-300x87.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/duration-hours-768x224.png 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/duration-hours-1536x447.png 1536w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/duration-hours.png 1766w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Then, let&#8217;s scroll down to the <strong>Booking terms<\/strong>. <\/p>\n\n\n\n<p>Here we&#8217;ll set up <em>maximum bookings per units<\/em> to <strong>0<\/strong>, that stands for unlimited. Yet, this value will be further restricted by the resources&#8217; availability, so, only free slots with at least one resource will be available.<\/p>\n\n\n\n<p>Additionally, as we want to offer the opportunity to extend the session to a maximum of 3 hours, we will set a <em>minimum booking duration<\/em> to <strong>1<\/strong> and <em>maximum <\/em>to <strong>3<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/max-duration.png\" data-rel=\"lightbox-image-5\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"331\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/max-duration-1024x331.png\" alt=\"Booking terms\" class=\"wp-image-4164\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/max-duration-1024x331.png 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/max-duration-300x97.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/max-duration-768x248.png 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/max-duration.png 1286w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">Step 2 \u2014 costs<\/h5>\n\n\n\n<p>In the <strong>Costs<\/strong> tab, we can set a base price of $30 per hour. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-1.png\" data-rel=\"lightbox-image-6\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"320\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-1-1024x320.png\" alt=\"Base price\" class=\"wp-image-4165\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-1-1024x320.png 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-1-300x94.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-1-768x240.png 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-1.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Yet, for customers who book a 3-hour session, we want to offer a 10% discount, so instead of $90, they would pay $81. For this, we can scroll down and add an <strong>advanced price rule<\/strong> based on the duration unit, as you can see below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-rule.png\" data-rel=\"lightbox-image-7\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-rule-1024x569.png\" alt=\"Discount on 3-hour session\" class=\"wp-image-4166\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-rule-1024x569.png 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-rule-300x167.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-rule-768x427.png 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-rule-1536x853.png 1536w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/price-rule.png 1674w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">step 3 \u2014 Availability<\/h5>\n\n\n\n<p>In the <strong>Availability<\/strong> section, we will set the gym opening hours, so every day from 8:00 to 13:00 and 15:00 to 20:00 except for Sundays.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/availability-4.png\" data-rel=\"lightbox-image-8\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"397\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/availability-4-1024x397.png\" alt=\"Gym opening hours\" class=\"wp-image-4167\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/availability-4-1024x397.png 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/availability-4-300x116.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/availability-4-768x298.png 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/availability-4-1536x596.png 1536w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/availability-4.png 1954w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">Step 4 \u2014 Resources<\/h5>\n\n\n\n<p>Let&#8217;s set up the Resources now, so our trainers. First of all, we have to enable the toggle button, then set the <em>Resource assignment<\/em> to <strong>Customer can select one resource<\/strong> and enable the <strong>Required<\/strong> option, so no bookings can be submitted without a trainer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-settings.png\" data-rel=\"lightbox-image-9\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"428\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-settings-1024x428.png\" alt=\"\" class=\"wp-image-4159\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-settings-1024x428.png 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-settings-300x126.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-settings-768x321.png 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-settings-1536x643.png 1536w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-settings.png 1778w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>We can also set the labels as we want them to appear on the cart and in totals and on the product page.<\/p>\n\n\n\n<p>Now, we can scroll down and finally add the resources, click on <strong>Add resource<\/strong> and select all the trainers who can offer this fitness session. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"322\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/create-resources-1024x322.png\" alt=\"\" class=\"wp-image-3593\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/create-resources-1024x322.png 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/create-resources-300x94.png 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/create-resources-768x242.png 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/create-resources-1536x484.png 1536w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/03\/create-resources-2048x645.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/gym-resources.png\" data-rel=\"lightbox-image-10\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"990\" height=\"1024\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/gym-resources-990x1024.png\" alt=\"Add resources\" class=\"wp-image-4168\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/gym-resources-990x1024.png 990w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/gym-resources-290x300.png 290w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/gym-resources-768x795.png 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/gym-resources.png 1150w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/><\/a><\/figure>\n\n\n\n<p>For the expert trainers, we can add an extra cost in the resource settings, for example, we will add an extra cost of $5 for Chris and Jane.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/chris-price.png\" data-rel=\"lightbox-image-11\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"428\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/chris-price.png\" alt=\"Resource extra cost\" class=\"wp-image-4169\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/chris-price.png 678w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/chris-price-300x189.png 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/a><\/figure>\n\n\n\n<p>And that&#8217;s it!<\/p>\n\n\n\n<p>Let&#8217;s check our product on the front end then.<\/p>\n\n\n\n<p>The customer will be asked to select the trainer first. Here I&#8217;ll be able to see the extra price for expert trainers.<\/p>\n\n\n<div class=\"wp-block-image no-shadow\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-28.png\" data-rel=\"lightbox-image-12\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-28.png\" alt=\"Select trainer\" class=\"wp-image-3019\" width=\"527\" height=\"717\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-28.png 750w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-28-220x300.png 220w\" sizes=\"auto, (max-width: 527px) 100vw, 527px\" \/><\/a><\/figure><\/div>\n\n\n<p>Then, choose the date and time and the session duration. <\/p>\n\n\n\n<p>Based on the resource and the duration, the calendar <strong>availability <\/strong>will be automatically updated. <\/p>\n\n\n\n<p>For example, if I select Jimmy, who is on vacation from August 15 to 31, I will not see those dates visible in the calendar. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-32.png\" data-rel=\"lightbox-image-13\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-32.png\" alt=\"Jimmy's vacation\" class=\"wp-image-3028\" width=\"488\" height=\"616\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-32.png 789w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-32-237x300.png 237w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-32-768x971.png 768w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/a><\/figure><\/div>\n\n\n<p>Also, if I want to book a 3-hour session, the only available times in the morning are 8:00, 9:00 and 10:00, because the gym closes at 13:00.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-30.png\" data-rel=\"lightbox-image-14\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-30.png\" alt=\"Availability change in 3-hour session\" class=\"wp-image-3021\" width=\"505\" height=\"687\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-30.png 750w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-30-220x300.png 220w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/a><\/figure><\/div>\n\n\n<p>Finally, for a 3-hour session, I can also see the price <strong>discounted by a 10%<\/strong>, so pay $81 instead of $90.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-29.png\" data-rel=\"lightbox-image-15\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-29.png\" alt=\"10% discount on 3 hours\" class=\"wp-image-3020\" width=\"484\" height=\"659\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-29.png 750w, https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2022\/08\/image-29-220x300.png 220w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/a><\/figure><\/div>\n\n\n<p>Setting up a bookable product has never been so easy. Have fun!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we want to focus on fitness session booking, where besides date and time, the customer can also choose: We will also focus on an alternative where the trainer will be automatically assigned, instead of being chosen by the customer. We&#8217;ll create one resource for each trainer and one product for the fitness &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to book a fitness session with trainer<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-2961","post","type-post","status-publish","format-standard","hentry","category-bookable-products-with-resources"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YITH Booking and Appointment: How to book a fitness session with trainer<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH Booking and Appointment: How to book a fitness session with trainer\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we want to focus on fitness session booking, where besides date and time, the customer can also choose: We will also focus on an alternative where the trainer will be automatically assigned, instead of being chosen by the customer. We&#8217;ll create one resource for each trainer and one product for the fitness &hellip; Continue reading How to book a fitness session with trainer\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Booking and Appointment\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-04T15:08:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-06T14:43:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png\" \/>\n<meta name=\"author\" content=\"ausilia\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ausilia\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/\",\"name\":\"YITH Booking and Appointment: How to book a fitness session with trainer\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png\",\"datePublished\":\"2022-08-04T15:08:57+00:00\",\"dateModified\":\"2023-04-06T14:43:51+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/#\/schema\/person\/5689fc6012d168000704e80bf26087da\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to book a fitness session with trainer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/\",\"name\":\"YITH WooCommerce Booking and Appointment\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/#\/schema\/person\/5689fc6012d168000704e80bf26087da\",\"name\":\"ausilia\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b8d070e41e47a70dee7611c4d905ff05?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b8d070e41e47a70dee7611c4d905ff05?s=96&d=mm&r=g\",\"caption\":\"ausilia\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/author\/ausilia\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH Booking and Appointment: How to book a fitness session with trainer","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"YITH Booking and Appointment: How to book a fitness session with trainer","og_description":"In this tutorial, we want to focus on fitness session booking, where besides date and time, the customer can also choose: We will also focus on an alternative where the trainer will be automatically assigned, instead of being chosen by the customer. We&#8217;ll create one resource for each trainer and one product for the fitness &hellip; Continue reading How to book a fitness session with trainer","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/","og_site_name":"YITH WooCommerce Booking and Appointment","article_published_time":"2022-08-04T15:08:57+00:00","article_modified_time":"2023-04-06T14:43:51+00:00","og_image":[{"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png","type":"","width":"","height":""}],"author":"ausilia","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ausilia","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/","name":"YITH Booking and Appointment: How to book a fitness session with trainer","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png","datePublished":"2022-08-04T15:08:57+00:00","dateModified":"2023-04-06T14:43:51+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/#\/schema\/person\/5689fc6012d168000704e80bf26087da"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-content\/uploads\/sites\/294\/2023\/04\/resource-example.png"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/how-to\/step-by-step-guides\/how-to-use-modules-on-bookable-products\/bookable-products-with-resources\/how-to-book-a-fitness-session-with-trainer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/"},{"@type":"ListItem","position":2,"name":"How to book a fitness session with trainer"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/","name":"YITH WooCommerce Booking and Appointment","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/#\/schema\/person\/5689fc6012d168000704e80bf26087da","name":"ausilia","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b8d070e41e47a70dee7611c4d905ff05?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b8d070e41e47a70dee7611c4d905ff05?s=96&d=mm&r=g","caption":"ausilia"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/author\/ausilia\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-json\/wp\/v2\/posts\/2961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-json\/wp\/v2\/comments?post=2961"}],"version-history":[{"count":18,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-json\/wp\/v2\/posts\/2961\/revisions"}],"predecessor-version":[{"id":4170,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-json\/wp\/v2\/posts\/2961\/revisions\/4170"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-json\/wp\/v2\/media?parent=2961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-json\/wp\/v2\/categories?post=2961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-booking\/wp-json\/wp\/v2\/tags?post=2961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}