Help / Embed

Embed a product on your website

From a published product to a working 3D view on your page — placement, size, starting variants, copying the code, allowed websites and the poster.

The Embed on website window builds the code that puts a published product on your own web page. You choose how it sits on the page, its shape on a computer and on a phone, and which variants it opens with; then you copy the code and paste it into your page's HTML. The code is the whole integration: no account, key or plugin is needed on your website.

You need a published product. A draft has no code yet: publish it first from Save & publish on the Scene tab.

Where to find it

WhereWhat to press
Product cardEmbed on the card in Products.
Product detailsEmbed on website in the details in Products; the details close and the window opens in their place.
StudioThe Scene tab → Save & publish → Embed on website, shown once the product is published: the same settings in a narrow column.
The Embed on website window opened from Products: Placement and Size on the left, a still preview on the right, Copy and share at the bottom
The Embed on website window, opened from Products. The product name is hidden.

All three give the same settings and produce the same code for the same choices. In Studio, Frame above the Embed settings still changes the scene frame itself (viewport and snapshots); the shape you pick in Embed changes only the code.

Embed settings in the Studio Save and publish section: Frame, then Placement, Size, Preview and Copy and share in a narrow column
In Studio: Scene → Save & publish → Embed on website. The product id is hidden.

The top line of the window says whether the product is on the storefront. For a draft it says Draft — not published, and the window shows the settings without a preview or code. For a product taken off the storefront the code is still shown — its address does not change, so the same code shows the product again once you bring a version back — but Open viewer is off.

Placement

ChoiceWhat your visitors get
In the pageThe 3D view sits in your page where you paste the code, at the full width of that column.
Tile + windowYour page shows a tile with the product's poster. A click opens the 3D view in a window over the page; closing the window removes the live 3D view of that window. The tile opens the window every time it is clicked.
A demo shop page: on the left an In the page block with the live 3D view and its variant buttons, on the right a Tile + window tile showing the poster and View in 3D
In the page and Tile + window side by side. Demo product on a local test stand.
The window opened from the tile: the live 3D view over the dimmed page, with a close button in the corner
The window opened by clicking the tile. Demo product on a local test stand.

Several embeds on one page are independent: each block and each tile runs its own 3D view, and closing one window does not stop the others.

Tile + window works only if the published product starts On click or When seen (Studio → Scene → Loading screen). With Right away the tile shows the 3D view itself and no window opens. The window does not know the product's start setting, so it states this condition instead of checking it.

The Tile + window code contains a small script that opens and closes the window. If your website builder removes scripts from custom code, use In the page.

Size

SettingWhat it does
DesktopThe shape of the block: 16:9, 4:3, 1:1, 3:4 or 9:16. The block takes the full width of the column you paste it into, and its height follows the shape.
PhoneSame as desktop, or Own shape to pick a different shape for screens narrower than 768 px.

Opened from Studio, the shape starts with the scene's Frame; opened from Products, it starts at 16:9. Changing the shape here does not change the Frame, the snapshots or the scene, and copying the code does not mark the draft as changed.

Starting variants

This section appears when the published product has options (see Options).

ChoiceWhat the code does
Published defaultsThe code contains no variant choice. The 3D view opens with the defaults of the published version.
Choose starting variantsA list for every option. Follow published default — name leaves that option out of the code; picking a variant writes it into the code.
Starting variants with Choose starting variants selected: Metal set to White gold, Centre stone set to Sapphire, Band finish left on Follow published default — Polished
Two options picked, one following the published default. Demo product on a test stand.

Following the default and picking the same variant can look identical today, but they behave differently later:

The lists show the variants of the published version with their published names; unsaved changes in Studio are not there until you publish. If Studio cannot read the published variants, the window says so and offers Try again; the code then starts with the published defaults. Choosing starting variants changes only this code: it does not change the product's defaults and does not publish anything.

Preview

The preview is a still catalogue image of the product in the shape you chose, arranged the way the poster is shown on your page (see below). It is not a live 3D view, and with chosen starting variants the picture may show a different variant. If the product has no catalogue image yet, the window says so.

To see the real 3D view with your choices, press Open viewer. It opens the published product in a new tab and counts as a storefront view. Opening the window, changing settings and copying start nothing.

Copy the code

ButtonWhat it copies
Copy codeThe code for the placement you chose — paste it into your page's HTML.
Copy link (link icon next to it)The direct link to the storefront with your starting variants, to share or to check.
Copy next to LinkThe same link.
Copy next to Embed codeThe same code as Copy code.
Copy <df-view> next to For developersThe code for the <df-view> element, for pages that control variants themselves — see Control variants from your page.

The Copy buttons on the right of Link, Embed code and For developers copy without opening the row; click the row's title to see the text. For developers also lists the technical addresses of every option and variant.

The button you pressed confirms the copy (Copied ✓, or Link copied for the link icon) only after the text is really on your clipboard. If your browser does not allow copying, the row opens with the text selected: copy it with Ctrl+C (⌘+C on a Mac).

Paste the whole code — the block, its <style> and, for Tile + window, its <script> — where the 3D view should appear. In a website builder, use its HTML or custom code block. The code points to the product, not to a version: publishing a new version or rolling back does not change it.

Allow your website

The 3D view runs only on websites listed in Settings → Embed domains (see Settings). On any other website the block shows This 3D viewer is not licensed for this website.

Your plan sets how many websites you can list; the counter in Settings shows it.

When the 3D view starts

How the product starts loading is set in Studio → Scene → Loading screen, and reaches your page after you publish:

StartOn your page
Right awayThe 3D view loads as soon as the block appears.
On clickThe block shows a poster; the 3D view loads when the visitor clicks it.
When seenThe block shows a poster; the 3D view loads when the block scrolls into view. With Tile + window only a click opens the window.

The poster

With On click and When seen, the block (or the tile) shows a poster until the 3D view starts. It is either a Product shot taken automatically when you publish, or My image that you upload.

What needs a new publish, what needs new code

What to doWhen you change
Publish a new versionMaterials, light, camera, options, default variants, option names, the loading screen or the poster. Pages with your code show the change on their next load; the code stays the same.
Copy the code againPlacement, shape, phone shape or starting variants. Replace the old code on your page.
Save the list in SettingsThe allowed websites. No new code or publish is needed.

Code you pasted earlier keeps working as it is. If one page shows the same product more than once, use code copied from the Embed window as it is today: each copy then keeps its own shape and starting variants, and each tile opens only its own window.

Storefront views

A storefront view (see Billing) is counted when the storefront starts a viewing session for an embedded 3D view — not when the visitor starts the 3D model. In practice:

The exact rules and known limitations are in Control variants from your page.