Vectary Documentation
ChangelogFeedbackHelpOpen Studio
  • Welcome to Vectary Docs
  • Documentation
    • Getting started
      • System requirements
      • User interface
      • Rendering
      • Dashboard
      • Account settings
      • Roles
      • Scene orientation
      • Units
    • Importing
      • Import formats
      • Figma frames import
      • CAD files
      • Vectary Processor
    • Design process
      • Design mode
        • Selections tools
        • Primitives
        • 3D Text
        • Light sources
        • Modifiers
          • Array Linear
          • Array Radial
          • Array Grid
          • Array Object
          • Subdivide
          • Bevel
          • Randomize
          • Symmetry
          • Boolean
        • Deformers
          • Bend
          • Twist
          • Taper
          • Skew
          • Stretch
          • Spherify
          • Noise
          • Simplify
        • Setup
          • Group
          • Empty
          • Camera
          • Backdrop
          • Smooth normals
          • Clipping plane
        • Interactive elements
      • Materials and Textures
        • Basic materials
          • Color
          • Roughness
          • Metalness
          • Opacity
          • Emission
          • Normal map
        • Advanced materials
          • Subsurface
          • Refraction
          • Clearcoat
          • Thinfilm
          • Reflectivity
          • Double sided material
        • Baked textures
          • Ambient occlusion (texture)
          • Lightmap
          • Texture remapping
        • Importing own textures
      • Animated materials
      • Decals
      • Camera
      • Environment
      • Background
      • Ground plane
      • Effects
        • Reflections
        • Ambient Occlusion
        • Soft Shadows
        • Fading
        • Smooth edges
        • Adjustments
        • Color Balance
        • Vignette
        • Grain
        • Bloom
      • Control bar
        • Fit View
        • Viewport display modes
        • Gizmo & Origin
        • Snapping
        • Download image
      • Libraries
        • Asset library
        • Materials library
        • Environments library
      • Edit mode
        • Selection tools
        • New object
        • Draw
        • Primitives
        • Extrude
        • Bevel
        • Make circle
        • Bridge
        • Slide
        • Cut
        • Collapse
        • Cap open boundaries
        • Merge faces
        • Mesh Tools
        • Normals
    • 3D configurator
      • Variants
      • Interactions
        • Triggers
        • Conditions
        • Actions
          • Animated texture
          • Animation
          • Cameras
          • Download image
          • Highlight
          • Interactions
          • Materials
          • Link
          • Sounds
          • Transformation
          • Upload image
          • Variants
          • Visibility
          • Send event
          • Set variable
        • Events (for API)
      • Animations
      • Floating UI
        • Floating UI settings
        • Container
        • Materials (UI)
        • Variants (UI)
        • Text
        • Image
        • Button
        • Slider
        • Input
        • Tips
      • Hotspots
      • Variables & Expressions
        • Syntax
        • Functions
        • List of inputs
        • Data import (.csv)
    • Project settings
      • Version history
      • Augmented Reality (WebAR)
      • WebXR (beta)
      • Loading screen
      • Mouse controls
      • Interaction prompt
      • Menu - Settings
    • Sharing, exporting, embedding
      • Sharing
      • Performance analyzer
      • Optimizing a shared project
        • Geometry
        • Textures
        • Materials
        • Effects
        • Light and shadows
        • HDRI
        • Ground plane
        • Tips
      • Project cloning
      • Embedding to other software
      • Export options
    • Other
      • Vectary Plugin for Figma
      • 2D to 3D
      • Selections
      • Comments
      • Shortcuts
  • API
    • Model API
      • Quick Start
      • API Reference
      • Type Definitions
      • Events & Listeners
      • Floating UI
      • Ecommerce
        • Webflow
        • Shopify
        • Custom code
Powered by GitBook
LogoLogo

Website

  • Pricing
  • Blog
  • Security
  • Website

Social

  • YouTube
  • LinkedIn
  • Discord

Copyright © 2025 Vectary Inc. All rights reserved

On this page
  • Introduction
  • Requirements
  • Vectary setup
  • 1.1. Create a folder for the product models
  • 1.2. Create the model of your product/s
  • 1.3. Share your model
  • Webflow setup
  • 2.1. Add products
  • 2.2. Add an Embed
  • 2.3. Add an id to the product name element
  • 2.4. Add the script of the integration
  • 2.5 Save and Publish
Export as PDF
  1. API
  2. Model API
  3. Ecommerce

Webflow

PreviousEcommerceNextShopify

Last updated 3 months ago

Introduction

If you’ve decided to create an e-shop in Webflow, and are ready to showcase your products in 3D and AR using Vectary configurators, here’s a step-by-step guide on how to get started.

We'd like to point out that in this guide, we're using the list of products and other aspects of Webflow's E-commerce 'Store Starter' presets.

If you want to experiment with it, you can find it when you create a new site in a 'workspace'.

Requirements

For integrating with Webflow E-commerce you will need the following:

  • A workspace or team Webflow subscription:

    • Without a subscription it is not possible to add embeds into any page.

Vectary setup

1.1. Create a folder for the product models

This is an important part of any integration. Use the id of the folder to fetch and map your models to the products you have/will setup in the e-shop.

1.2. Create the model of your product/s

In this case, we created an abstract design called Awesomeness. The name of your project needs to match the name of your product.

We can expose these through the Floating UI by adding a Materials and a Variants sub-objects.

Please note that the source of the MSController is the Object Switcher containing the variants.

1.3. Share your model

Please remember that:

  • The name of the project matches the name of the product.

  • The names of the objects and their materials match the options/variants that are setup for the product in the e-shop.

Webflow setup

2.1. Add products

First, make sure there is at least, one product on the E-commerce menu.

For the purpose of covering all the possible options in this guide, we are going to use a product with variants.

If you are not clear on how to add variants to a product, please visit Webflow’s amazing tutorial that will guide you through the required steps.

Here’s a CSV file you can import for testing:

Here is the product that we’ll be working with that mimics what we have setup in Vectary.

2.2. Add an Embed

Next, go to Pages, then the products page, in the E-commerce pages section.

In this case we used Webflow’s own Products Template.

Next up, go to Navigator and select your Product Image.

Add the embed right inside.

The HTML Code Embed Editor will pop up. Directly paste the iframe code of any of your shared projects in the folder created. Remember to copy the code directly from the Copy embed button in Vectary’s share popup.

Once the embed is copied, it is very important to give it an id. We recommend setting both the with and height in the code to 100%.

For example, we gave it the id vectary_embed:

<iframe 
	id="vectary_embed" 
  src="https://app.vectary.com/p/{shared_model_id}" 
  frameborder="0" 
  width="100%" 
  height="100%">
</iframe>

Do not worry if the model you added does not match the current selected product in the editor. As we mentioned before, we were setting up Awesomeness but currently we have another product selected.

2.3. Add an id to the product name element

For loading the correct model, the integration needs to know which element in your shop holds the name of the product.

In this case, it is in the Heading 1 of the Product content wrapper.

It has the id product_name. Make sure to get the text from the product’s name.

2.4. Add the script of the integration

The last step is to go to the Projects settings and into the Custom Code section. Add the following script to the Footer Code.

<script type="module">
    import { VctrModelApi } from "https://app.vectary.com/studio-lite/scripts/api.js";
    var modelApi = new VctrModelApi("vectary_embed");
    await modelApi.setWebflowEcommerce("{folder_id}", "product_name");
</script>

What the script is doing exactly?

  1. Import our VctrModelApi

  2. Create a new instance of the API, linking to the embed we created before, with the iframe id we set in step **#2.2 (**e.g. vectary_embed).

2.5 Save and Publish

That’s it! By following these steps it is possible to set up an interactive 3D product configurator in no time.

You can see the id when it is selected inside the , directly in the URL after the string &folderId=.

Here is the model you can clone directly into a new project in your workspace: It features a Variant with 3 different objects, and each of the variants contains the same 3 materials. Make sure to link the materials if they are the same between each variant.

Go ahead and

Set the integration with our {folder_id} from step #1.1 and the product name element id from step #2.3 (e.g. product_name). Before proceeding please check the following: a. If you are using the default Add to cart element you are good to go. b. If you are using your own custom layout to display how the users select your product variants, there is the option to add a 3rd parameter to the setWebflowEcommerce function, where you can enter a of a parent element from those options, so the integration can find them.

Dashboard
https://www.vectary.com/p/5s8oStuOPjH9E2xrRVje3q
share
Sharing
CSS selector
LogoCreate product options and variantsWebflow Help Center
LogoCustom code in head and body tagsWebflow Help Center
LogoStore Starter
18KB
Store Starter - Products.csv