# Restrict customers from booking certain service catagories

**URL:** <https://forum.wixstudio.com/t/restrict-customers-from-booking-certain-service-catagories/74731>\
**Category:** Ask the community\
**Tags:** wix-bookings, wix-members-area, code, question, wix-stores\
**Created:** [November 4, 2025, 8:41am UTC](https://forum.wixstudio.com/t/restrict-customers-from-booking-certain-service-catagories/74731 "2025-11-04T08:41:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_A](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@James\_A](https://forum.wixstudio.com/u/James_A)\
**Post date:** [November 4, 2025, 8:41am UTC](https://forum.wixstudio.com/t/restrict-customers-from-booking-certain-service-catagories/74731/1 "2025-11-04T08:41:47Z")

</div>

Good Morning,

I am setting up a website for a charity where customers can rent wheelchairs and adapted bikes or trikes. Anyone can book a wheelchair, but only members with an annual subscription can book a bike or trike. That’s all working.

I would like to introduce additional functionality where if the customer hasn’t attended an induction session they can’t book a bike or trike, but can book a wheelchair. My plan was to either have a label, a badge, a custom field, or a site role to add to customers once they attend induction.

When trying to create a checkout validation procedure the AI complains that it can’t read any of the customer details to see if they have attended induction.

When trying to use Velo AI to create the code for a page, the code doesn’t do anything no matter which page I insert it to:

```javascript
import { checkout } from 'wix-stores-backend';
import { currentUser } from 'wix-users-backend';

export async function blockCheckoutIfNoInductionLabel() {
    const user = currentUser;
    const labels = await user.getLabels();
    const hasInductionLabel = labels.some(label => label.name === 'Induction');

    if (!hasInductionLabel) {
        throw new Error('Checkout blocked: You need to attend an induction session before renting equipment. Please contact us to arrange.');
    }

    // Proceed with checkout if the label is present
    return checkout();
}

```

I did a workaround where I created a site role called Induction and created two separate services pages for wheelchairs and bikes/trikes. Then set the permissions so only people in the Induction role can view the bikes/trikes. However, the charity would like everyone to be able to see what is available before buying a membership and attending induction.

I’m new to Wix and my coding knowledge is limited, but I feel like there must be a way to crack this. Does anyone have any suggestions?

Thank you.

---

<div class="post-metadata">

**Author:** ![jaosh\_wiixrocket](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jaosh_wiixrocket/32/91183_2.png) [@jaosh\_wiixrocket](https://forum.wixstudio.com/u/jaosh_wiixrocket)\
**Post date:** [November 5, 2025, 8:34am UTC](https://forum.wixstudio.com/t/restrict-customers-from-booking-certain-service-catagories/74731/2 "2025-11-05T08:34:28Z")

</div>

> [@James\_A](#):
>
> I’m new to Wix and my coding knowledge is limited, but I feel like there must be a way to crack this. Does anyone have any suggestions?

Wix users backend died a noble death many a moon ago.

What you are looking to push into the “AI” is wix members backend. There you can possibly get the details of the user you are looking for

. [Velo Wix Members Backend Introduction | Velo](https://dev.wix.com/docs/velo/apis/wix-members-backend/introduction)

---

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [November 5, 2025, 9:44am UTC](https://forum.wixstudio.com/t/restrict-customers-from-booking-certain-service-catagories/74731/3 "2025-11-05T09:44:13Z")

</div>

This thread should help you with more info on how to achieve it.

> [@Show a different set of sessions after customer has booked the introductory session?](https://forum.wixstudio.com/t/show-a-different-set-of-sessions-after-customer-has-booked-the-introductory-session/70139):
>
> We have a personal training service using the booking calendar feature. But we don’t want people signing up for sessions without first attending the introductory session where a trainer can evaluate them / their needs. We’d like to have the other available sessions hidden until then. Is there a way to automate this? Product: Wix Studio / dev What have you already tried: So far, we’ve found ways to hide / show sessions based on user roles, but these need to be changed manually.. We’d prefer i…
