Skip to content

Blog › Add a 3D Box Designer to Your Print Shop Website

How to Add a 3D Box Designer to Your Print Shop's Website

By , Founder of Drint ·

Short answer

A print shop can put a 3D box designer on its own website by pasting one <div> and two script lines into a page, after listing its domains on an embed key in Drint. The editor loads in a frame that only those domains may show. When a customer sends a design, the page receives the mockup picture, the print file and the dieline, and the order lands in the shop's Drint orders.

Why it matters: a shop that quotes boxes by WhatsApp or email loses the customer who wants to see the box first. An embedded designer lets that customer set the size, place the artwork and send a file the shop can actually print, without leaving the shop's own site.

Disclosure: Drint makes this editor. The steps below follow Drint's embed reference; the facts about what the embed returns are the same as on the custom website page.

Key points

  • The embed needs a key made in Drint under Account → Sign-in & security → Embed keys, with the domains where the editor may open.
  • The editor opens at 680 px tall by default and takes the full width of its element; a height option changes it.
  • The result has three files: the mockup picture, the print file and the dieline, plus the size. File links last 24 hours.
  • The same result goes to a webhook as design.completed, signed with the header X-Drint-Signature.
  • A Business trial runs 14 days with no card, on your own domain.

What do you need before you start?

Three things: a Drint account, a page on your site where you can edit HTML, and the domains you will use. Add localhost:PORT to the list to try the editor on your own machine first. The frame only opens on the listed domains, enforced by the browser through a Content-Security-Policy frame-ancestors rule, so a copy of your page on another site shows nothing.

How do you embed the designer?

  1. Make an embed key. In Drint open Account → Sign-in & security → Embed keys and list your domains. The key starts with dre_. It is not secret: it sits in your page, and what it may do is bound to the domains you list.
  2. Paste the embed where the editor should appear.

``html <div id="drint"></div> <script src="https://drint.io/embed.js"></script> <script> Drint.open({ el: '#drint', key: 'dre_…', lang: 'en' }); </script> ``

  1. Choose the options you need. mockup opens one model, size sets the box in millimetres, lang sets the editor's language, customer passes the buyer's details, and artwork starts from a file you already have.
  2. Handle the result. The onDone(result) callback gives you the mockup picture, the print file, the dieline and the size. The same data reaches your webhook as design.completed.

What does the customer's design look like when it arrives?

The shop receives a real dieline at the size the customer chose, not a flat picture of a box. That is the difference that matters at the press: the die maker needs the cut and crease lines, and the customer's artwork is already placed on them. The dieline is built from the same FEFCO and ECMA structures as in Drint's dieline generator.

Links to the files last 24 hours, so save them to your own storage when the order comes in rather than linking to them later.

Which site builders does it work on?

Any builder that accepts an HTML block and lets you add a script can host it. Drint has setup pages for Shopify, WooCommerce, Wix, Squarespace, Salla and Zid. Check your plan's rules on custom code before you start: some builders allow scripts only on certain plans.

What does it cost?

The embed is part of Drint's API plans. Starter includes 1 embed domain, Business 5 and Scale 20, and an extra domain costs $19 a month ($15 on Scale). The 14-day Business trial lets you test the whole flow on one domain first. Pictures carry a watermark grid until you are on a plan. For the per-render sums see Packaging Mockup API Pricing.

What this means for print shops

Start with one product, the box you sell most often, and one page. Send yourself ten test designs, open the dielines in your own prepress workflow and note what you still fix by hand. Only then put the designer on your product pages.

Sources

Try it

Make an embed key in your Drint account, paste the snippet on a test page and open it on localhost. When it works, move it to your shop's domain.

Frequently asked questions

Is the embed key secret?

No. It sits in your page. The editor refuses to open, and results are not accepted, anywhere except the domains you listed.

How tall is the editor?

680 px by default. Pass a height option to change it. It uses the full width of its element.

How long do the file links last?

24 hours. Copy the files to your own storage when the order arrives.

Can I test it before paying?

Yes. The Business trial runs for 14 days with no card, once per space, on your own domain.

More from the blog

How to Make a Packaging Mockup Scene in the Browser in 5 Minutes Drint MCP: Create Packaging Dielines & 3D Mockups with ChatGPT or Claude FEFCO 0201 vs 0427: Shipping Carton or Mailer Box? How to Turn Artwork into a Print-Ready Packaging File Best Packaging Dieline Generator with 3D Preview How Designers Use MCP to Create Packaging Mockups Which Is the Largest 3D Mockup Library? We Counted Does a packaging MCP server make AI assistants more reliable? A measured test of Drint MCP Drint Now Checks Packaging Labels Against the Law of 47 Countries as You Design How to add packaging dielines and 3D mockups to Cursor, VS Code and Claude Code How to Make a Packaging Dieline: FEFCO and ECMA Codes Explained How to make 3D packaging mockups in Canva, step by step Canva or a real dieline: what changes when your box goes to print What I Learned From Pacdora and Yellow Images Drint Now Speaks 41 Languages, With 52 Country Editions for Packaging Designers What a US Food Label Must Show: the FDA Rules, Panel by Panel EU Cosmetics Label Requirements: What Article 19 of Regulation 1223/2009 Demands Korea Cosmetics Label Requirements: Article 10 of the Cosmetics Act, Item by Item Japan Food Label Requirements: What the Food Labeling Standards Demand in 2026 Stand-Up Pouch Sizes: Dimensions, Fill Weights and Dieline Anatomy E-commerce Shipping Boxes: FEFCO Style, Flute and Dimensional Weight App Store and Google Play screenshot sizes in 2026: every pixel size, count and rule How to make device mockups for a SaaS or app landing page that load fast and look sharp EU AI Act Article 50: what AI-made packaging images must carry by 2 December 2026 Why Japan Matters to Drint: Packaging Has to Work, Not Only Look Good Noshi on Japanese Gift Boxes: Inner or Outer, Which Knot, and Where It Sits on the Lid Valentine's Day and White Day in Japan: what they mean for chocolate packaging Japan Omiyage Packaging: Why Souvenir Sweets Come Individually Wrapped Wagashi and the Seasons: How Japanese Sweet Packaging Changes With the Year Seollal 2027 Gift Set Packaging: Dates, Space Rules and Box Styles Bojagi: What Korea's Wrapping Cloth Teaches Gift Packaging Korea's Delivery Food Packaging: Seal Stickers, Chicken Boxes and Vents Korea Café Packaging: Design the Iced Cup, Sleeve and Carrier as One System Mailer Box Die Explained: How FEFCO 0427 Locks Without Glue How to make a seamless AI pattern for packaging and put it on a real dieline How to stage a packaging product photo with AI, and catch what it changes Reverse vs Straight Tuck End: Flap Sizes and Cartons per Sheet Takeaway Tray with Carry Handle: Dieline Sizes and Sheet Yield Beer and Wine Bottle Screen Print Sizes: Body, Neck and Cap Art in mm Pint Glass Print Template: Why a Tapered Glass Unrolls to an Arc Applied Ceramic Labeling (ACL): How Printing Straight on Glass Works Printed Drinking Glasses: Lead and Cadmium Rules for the Top 20 mm Digital Printing on Glass Bottles: What UV Inkjet Can and Cannot Print Packaging Mockup API Pricing: What a Render Costs, from 2.9¢ to 1.5¢ Packaging Design and Packaging Science Degrees: 90 University Programs, Checked School by School

Drint MCP

Try it in your AI assistant