How to add a 3D box designer to a Wix print store
In the Wix editor, add an Embed Code element (Embed & Social → Embed Code → Embed HTML) to the page 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. Wix runs custom code only on a site with a connected domain on a paid Wix plan, so check that first.
Steps
- Make an embed key. In Drint: Account → Sign-in & security → Embed keys. List your site’s domain (the one connected in Wix, for example
yourshop.com). The editor opens only on these. - Add an Embed Code element. Wix editor → Add elements → Embed & Social → Embed Code → Embed HTML. Choose Code (not a website address) and drag it to where the editor should sit; make it tall — 700 px or more.
- Paste the embed. Paste the code below with your key, apply, then publish the site and open it on your own domain (the editor will not open on Wix’s preview).
- Receive the designs. When a customer presses Send design, the order lands in your Drint orders and your webhook is called if you set one.
<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 paid Wix plan with a connected domain for custom code
- Does not run inside the Wix editor preview — publish first
- The customer needs no Drint account
- Editor in English, Arabic (right to left) and Vietnamese
Questions
The element is blank in the Wix editor — is it broken?
No. Wix does not run embedded code while you edit. Publish the site and open the page on your own domain.
Can I use it on a free Wix site?
Not reliably: Wix allows custom code only with a connected domain on a paid plan, and the embed key must list that domain.