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

  1. 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).
  2. 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.
  3. Paste the embed. Paste the code below with your key, save, and open the live page: the editor loads in the block.
  4. 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

See the editor livePlans and 14-day free trial

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.

Related

add a 3D box designer to a Shopify print storeadd a 3D box designer to a WooCommerce print shopembed a 3D packaging editor in your own websiteDrint API pricing: three plans for mockups, dielines and the embedded editorA mockup API for print-on-demand and packagingA dieline API: FEFCO and ECMA dielines at any sizeadd a 3D box designer to a Wix print storeadd a 3D box designer to a Salla print storeadd a 3D box designer to a Zid print storeA 3D mockup and dieline API for print-on-demand companiesDielines and 3D previews for packaging suppliersPackaging mockups and dielines for design agenciesDrint API reference