Skip to content

How to embed a furniture configurator in your website (WordPress, Shopify, Webflow or custom)

One script tag puts a 3D wardrobe configurator on any page. What the tag does, how the iframe sizes itself, how cart events reach your page, and what to check on each website platform.

Published · 4 min read

A configurator only sells if it sits where your customers already are: on the wardrobes page of your own website, under your own brand. This guide explains how WardrobeConfigurator gets there with one script tag, what happens behind that tag, and what to check on the common website platforms.

The tag

Embedding is one script element, placed where the configurator should appear:

<script
  src="https://wardrobe-configurator.com/embed.js"
  data-tenant="your-shop"
  data-key="WC-…"
  async
></script>

data-tenant is your shop's identifier; data-key is the embed key issued for your shop. Without a valid key the embed shows a notice instead of the configurator, so a copied tag does not work on someone else's site. Ask for your key at info@wardrobe-configurator.com or through the contact page.

What the script does

  1. It replaces itself with an iframe pointing at your shop's configurator. The iframe carries your shop's theme: logo, colours, font and corner radius, as set in your shop's data, so it looks like part of your page.
  2. It sizes the iframe to the configurator's content. The configurator reports its height to the host page as it changes (a longer interior panel, a dialog, the cart), and the script adjusts the iframe, so there is no scrollbar inside a scrollbar and no fixed height to guess.
  3. It forwards cart events to your page. When a customer adds a design to the cart, the host page receives an event with the design and its price lines. You can ignore it, show your own confirmation, or hand the design to your own checkout.
  4. It can preload a shared design. A customer who received a share link, or who comes back from an email, can land on your page with their design already open.

The configurator itself runs on wardrobe-configurator.com, so there is nothing to install, update or host on your side. Your catalogue, limits, rules and prices live with it as data, and a change there is live on your page at once.

Platform notes

WordPress. Add a "Custom HTML" block to the page (Gutenberg) or paste the tag into a text widget or a page builder's HTML element. Some security plugins strip script tags from content for non-admin users; paste as an administrator, or use the plugin's "allow script" setting. Caching plugins are fine: the tag is static, the content comes from the iframe.

Shopify. In the theme editor, add a "Custom Liquid" section (or a "Custom HTML" block in themes that have one) to the page or product template and paste the tag. Shopify's own cart is separate from the configurator's cart; use the cart event to connect them, or keep the configurator's cart as the order channel and let the customer send you the design.

Webflow. Drop an "Embed" element where the configurator should go and paste the tag. Webflow publishes embeds as-is. Set the embed element's width to 100% and leave the height to the script.

Squarespace, Wix and others. Look for a "code block", "HTML embed" or "custom code" element; any builder that lets you paste HTML works. Avoid elements that render HTML inside their own iframe (some "embed" widgets do): the configurator then sits in an iframe inside an iframe, and the height reporting cannot reach your page.

A custom site. Paste the tag; that is all. If your page is a single-page application that re-renders, mount the tag once and keep the element in place.

Checking that it works

  • The configurator appears with your logo and colours, not the demo's.
  • Scrolling the page scrolls the configurator with it; there is no inner scrollbar on the iframe.
  • Open the interior step, add a few drawers, open the cart: the iframe grows and shrinks with the content.
  • Add a design to the cart. If you listen for the event, your page sees it.
  • Open the page on a phone. The configurator switches to its narrow layout inside the iframe.

Content Security Policy

If your site sends a Content Security Policy, allow https://wardrobe-configurator.com in script-src (the embed script) and in frame-src (the iframe).

Price API, for when the tag is not enough

Some shops want the price in their own quoting tool or order confirmation. The same engine that prices the cart answers a JSON request: send a configuration (one wardrobe) or a project (a whole room) to POST /api/<your-shop>/price and receive the price lines, subtotal, tax and total. That is the platform page's "price any design from your own systems", and it needs no embed at all.

Private shops

A shop can be marked private: it is never indexed by search engines, speaks its own language rather than the visitor's, and is reached only through the embed on your site or a direct link you share. That is the right setting for a trade-only shop, or for a shop you are still setting up.

The live demo on this site is itself an embed of the demo shops, with a switch between the two, so what you see there is what your customers see on your page.

See it on a real catalogue

The live demo is the real configurator with a fixed catalogue: two shops, metric and imperial.