How to add a 3D box designer to a Squarespace print store
In Squarespace, add a Code Block to the page, switch it to HTML and paste Drint’s two-line embed. Customers design on the exact dieline at their size and see the folded box in 3D; you receive the mockup, the print file and the dieline. It needs a Drint API plan — Starter $49, Business $199 or Scale $599 a month (a year is billed as 10 months); Business can be tried free for 14 days on your own domain, no card. Squarespace runs JavaScript in a Code Block only on plans that allow code injection, so check your plan first.
Steps
- Make an embed key. In Drint: Account → Sign-in & security → Embed keys, and list your site’s domain (your own domain, for example
yourshop.com). - Add a Code Block. Edit the page → Add Block → Code. In the block settings turn Display Source off and make sure the mode is HTML.
- Paste the embed. Paste the code below with your key, save, and open the live page: the editor loads in the block.
- Receive the designs. Each sent design reaches your Drint orders and, if you set one, your webhook.
<div id="drint"></div>
<script src="https://drint.io/embed.js"></script>
<script>
Drint.open({ el: '#drint', key: 'dre_…', lang: 'en' });
</script>
What to know
- Needs a Squarespace plan that runs custom code in Code Blocks
- Use your own domain in the embed key, not the preview address
- The customer needs no Drint account
- Editor in English, Arabic (right to left) and Vietnamese
Questions
Why does my code show as text?
Display Source is on in the Code Block settings. Turn it off so the block runs the code instead of printing it.
Does it work with Squarespace Commerce checkout?
The editor sends the design to your Drint orders and webhook; linking it to a Squarespace order is done by your developer or by hand from the order list.