Jump to content

Embedding scheduling software script

Recommended Posts

Hi there,

I am looking to embed code for our scheduling software onto our booking page. 

Whenever I copy the code into the embed or code blocks nothing loads on the page (see screenshot 3).

The code is as follows:

<script
data-origin="https://home.shortcutssoftware.com"
data-company-id=""
data-widget="_m"
type="text/javascript"
src="https://bookingscontent.shortcutssoftware.com/ols-onlinebooking-ui/assets/ols-widget/dist/ols-widget.min.js">
</script>

The only way I've got the code working is when I apply to it to the code injection > footer section (see screenshot 2).

When it loads it looks like this (see screenshot 1). This makes me think that the script is working but I'm missing something when I go to apply it to an embed/code block.

Any help would be greatly appreciated.  

 

Screenshot 1.PNG

Screenshot 2.PNG

Screenshot 3.PNG

Link to comment
3 minutes ago, Joel1234 said:

Hi there,

I am looking to embed code for our scheduling software onto our booking page. 

Whenever I copy the code into the embed or code blocks nothing loads on the page (see screenshot 3).

The code is as follows:

<script
data-origin="https://home.shortcutssoftware.com"
data-company-id=""
data-widget="_m"
type="text/javascript"
src="https://bookingscontent.shortcutssoftware.com/ols-onlinebooking-ui/assets/ols-widget/dist/ols-widget.min.js">
</script>

The only way I've got the code working is when I apply to it to the code injection > footer section (see screenshot 2).

When it loads it looks like this (see screenshot 1). This makes me think that the script is working but I'm missing something when I go to apply it to an embed/code block.

Any help would be greatly appreciated.  

 

Screenshot 1.PNG

Screenshot 2.PNG

Screenshot 3.PNG

Place your script in the Code Block instead

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Here what I got when preview the script in safe mode and also view on live site

image.thumb.png.9ccbb52a51b79be8450fba90dbbd338e.png

image.thumb.png.1760b83331ae30bc9c03abaa254273df.png

Seems there is nothing wrong with the script placement, but the error I got indicated the script's parameters are missing

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
5 minutes ago, Beyondspace said:

but the error I got indicated the script's parameters are missing

I noticed the same error.

@Joel1234 I wonder if the code was sanitized for security?

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
13 minutes ago, creedon said:

I noticed the same error.

@Joel1234 I wonder if the code was sanitized for security?

Originally yes. The full code is:

<script
data-origin="https://home.shortcutssoftware.com/bangonbrows"
data-company-id="20462"
data-widget="_m"
type="text/javascript"
src="https://bookingscontent.shortcutssoftware.com/ols-onlinebooking-ui/assets/ols-widget/dist/ols-widget.min.js">
</script>

 

Link to comment
6 minutes ago, creedon said:

When I ran it ended up near the closing body tag.

ScreenShot2023-06-14at9_33_36PM.png.fca9f9bd0caced509c108f9c5663a66c.png

Just another data point.

That's is expected because the script content was made to `appendChild` on the body

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.