How to add a 3D box designer to a WooCommerce print shop

In WordPress, add a Custom HTML block to the page (or product description) 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.

Steps

  1. Make an embed key. In Drint: Account → Sign-in & security → Embed keys, and list your site’s domain (for example yourshop.com).
  2. Add a Custom HTML block. Edit the page in WordPress, add a Custom HTML block where the editor should appear. Your user must be an administrator: WordPress lets only administrators save script tags.
  3. Paste the embed. Paste the code below with your key, update the page and open it on your site.
  4. Receive the designs. Each sent design reaches your page (onDone), your Drint orders and, if you set one, your webhook — from there your developer can add it to the WooCommerce cart.
<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

The block saved but the editor does not show — why?

Usually the script was removed on save (not an administrator, or a security plugin). Paste it as an administrator, or add the two script lines through your theme’s footer scripts setting.

Does it add the design to the WooCommerce cart?

The page receives the result in the browser (mockup, print file and dieline links). Adding it to the cart as a line note or attachment is a small change your developer makes in onDone.

Related

add a 3D box designer to a Shopify print storeembed a 3D packaging editor in your own websiteA mockup API for print-on-demand and packagingA dieline API: FEFCO and ECMA dielines at any sizeDrint API reference