# Wix velo, integrating boulevard event category without opening as external site

**URL:** <https://forum.wixstudio.com/t/wix-velo-integrating-boulevard-event-category-without-opening-as-external-site/67350>\
**Category:** Ask the community\
**Tags:** wix-bookings, code, wix, question, wix-blocks\
**Created:** [January 12, 2025, 5:15am UTC](https://forum.wixstudio.com/t/wix-velo-integrating-boulevard-event-category-without-opening-as-external-site/67350 "2025-01-12T05:15:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damaris\_Rozel](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/damaris_rozel/32/102797_2.png) [@Damaris\_Rozel](https://forum.wixstudio.com/u/Damaris_Rozel)\
**Post date:** [January 12, 2025, 5:15am UTC](https://forum.wixstudio.com/t/wix-velo-integrating-boulevard-event-category-without-opening-as-external-site/67350/1 "2025-01-12T05:15:48Z")

</div>

**Question:**  
I need to integrate the Boulevard Event booking widget into my Wix website. The goal is to ensure that when a client clicks the “Book Now” button, they are not redirected to an external website. Instead, the booking widget should appear directly within the Wix site. The code I have from Boulevard Event is: blvd.openBookingWidget({  
urlParams: {  
locationId: ‘c241a927-0be4-4fef-9050-3e0d0bdd1dbc’,  
path: ‘/cart/menu/Ms.%20Smooth’,  
visitType: ‘SELF\_VISIT’  
}  
});

The problem I’m encountering is connecting this code to the button using its ID without getting an `undefined` error.

**Product:**  
wix editor

**What are you trying to achieve:**  
I need to integrate the Boulevard Event booking widget into my Wix website. The goal is to ensure that when a client clicks the “Book Now” button, they are not redirected to an external website. Instead, the booking widget should appear directly within the Wix site. The code I have from Boulevard Event is: blvd.openBookingWidget({  
urlParams: {  
locationId: ‘c241a927-0be4-4fef-9050-3e0d0bdd1dbc’,  
path: ‘/cart/menu/Ms.%20Smooth’,  
visitType: ‘SELF\_VISIT’  
}  
});

The problem I’m encountering is connecting this code to the button using its ID without getting an `undefined` error.

**What have you already tried:**  
i have tried using this code  
$w.onReady(function () {  
// Click event for Ms. Smooth  
$w(“#bookMsSmoothButton”).onClick(() =\> {  
try {  
blvd.openBookingWidget({  
urlParams: {  
locationId: ‘c241a927-0be4-4fef-9050-3e0d0bdd1dbc’,  
path: ‘/cart/menu/Ms.%20Smooth’,  
visitType: ‘SELF\_VISIT’  
}  
});  
console.log(“Ms. Smooth booking widget opened successfully.”);  
} catch (error) {  
console.error(“Failed to open Ms. Smooth booking widget:”, error);  
}  
});

```
// Click event for Mr. Smooth
$w("#bookMrSmoothButton").onClick(() => {
    try {
        blvd.openBookingWidget({
            urlParams: {
                locationId: 'c241a927-0be4-4fef-9050-3e0d0bdd1dbc',
                path: '/cart/menu/Mr.%20Smooth',
                visitType: 'SELF_VISIT'
            }
        });
        console.log("Mr. Smooth booking widget opened successfully.");
    } catch (error) {
        console.error("Failed to open Mr. Smooth booking widget:", error);
    }
});

```

});
