Websites & CMS
Embed Microsoft Bookings in nopCommerce
Stores on nopCommerce that sell fittings, repairs, consultations or training often run staff calendars in Microsoft 365. BookingsXP puts that Microsoft Bookings calendar on a store page. A booking is an appointment in Microsoft Bookings, not a nopCommerce order: there is no cart or payment.
- Integration
- nopCommerce
- Plan: Free
- Works on every plan, including Free ($0, no card).
- In short
- The loader in the Custom <head> tag setting and the widget in a topic (page), or a floating button on every page.
- Microsoft Bookings
- Stays your system of record. Bookings land in Outlook and Teams and Microsoft sends the invites and reminders.
- Trademarks
- nopCommerce is a trademark of Nop Solutions, Ltd. BookingsXP is independent and not affiliated with or endorsed by nopCommerce.
What happens with nopCommerce
- The "Custom <head> tag" field under Configuration → Settings → General settings (SEO section) is written into the head of every public page as it is, which suits the loader script.
- Topics (pages) are edited in a rich text editor that filters out script tags unless JavaScript is allowed in the editor. The div form of the widget has no script, so it survives the editor and the loader in the head picks it up.
- Both render in your store's own pages, so the widget resizes itself and its events reach the GTM or Google tag on your storefront.
Set up nopCommerce
Step 1: Load the script on every page
In the admin, go to Configuration → Settings → General settings and find Custom <head> tag in the SEO section (switch the page to advanced mode if the field is hidden). Paste the script and save. On a multi-store install, check the store scope at the top.
Custom <head> tag <script src="https://bookingsxp.com/embed/v1.js" async></script>Step 2: Create the booking page
Go to Content management → Topics (pages) → Add new. Enter a title, switch the Body editor to code view (the </> button) and paste the div below. Tick Published, set a Search engine friendly page name such as book, and choose whether it appears in the top menu or footer. Save.
Topic body <div data-bookingsxp data-widget="w_8fk2m1qz"></div>Step 3: Optional: a floating button on every page
Add this to the same Custom <head> tag field, under the script. It adds a floating button once the page has loaded, so you need no theme edits.
Custom <head> tag <script src="https://bookingsxp.com/embed/v1.js" async></script> <script> document.addEventListener("DOMContentLoaded", function () { var b = document.createElement("div"); b.setAttribute("data-bookingsxp", ""); b.setAttribute("data-widget", "w_8fk2m1qz"); b.setAttribute("data-mode", "floating"); b.setAttribute("data-button-text", "Book now"); b.setAttribute("data-accent", "#111827"); document.body.appendChild(b); }); </script>Step 4: Or: a widget zone or your theme
nopCommerce shows plugins in widget zones but has no built-in plugin for raw HTML. Marketplace HTML-widget plugins can place the div in a zone such as the home page or footer; follow that plugin's instructions. Developers can also add the snippet to the theme's Razor views, which theme updates may overwrite.
Step 5: Clear the cache and test
Use the admin's Clear cache command, then open the topic's URL, for example /book, in a private window. Step through the widget and cancel the test booking in Microsoft Bookings.
Outcomes and caveats
What you get
- A Microsoft Bookings calendar on a nopCommerce page, in your accent colour, resizing to its content.
- A floating Book button across the store without editing the theme.
- Booking events for the GTM or Google tag on your storefront, with the campaign written into each booking.
Limits and caveats
- Bookings are not nopCommerce orders. BookingsXP takes no payments and creates no store customer.
- Paste the script into the Custom <head> tag field, not a topic body: the topic editor removes script tags unless the adminareasettings.richeditorallowjavascript setting is true, and that setting also applies to every other rich text field.
- Admin labels here follow nopCommerce 4.x and later. Older versions differ; if a field is missing, check your version's documentation.
- If you use Allowed websites, add every store host that shows the widget.
Troubleshooting
- The topic page shows nothing where the calendar should be.
- The loader is not on the page. View the page source and search for embed/v1.js. If it is missing, check the Custom <head> tag was saved for this store's scope, then clear the cache.
- The div vanished from the topic body.
- It was typed in the visual editor rather than code view, so it was escaped as text. Open code view, remove the escaped text and paste the div again.
- The topic URL returns page not found.
- The topic is not published, is limited to other stores or customer roles, or has a different search engine friendly name. Check those fields on the topic.
- The widget says "This booking widget isn't enabled on this website."
- Allowed websites is set on the widget and this store's host is not on it. Add it, or clear the list.
nopCommerce questions
Start free, no card
One widget, four templates, GTM and GA4 events and attribution in every booking. No card, no time limit.
No Microsoft sign-in or admin consent. Free plan, no card.