You add augmented reality to a Shoptet product with a single script. On the product page the customer taps “See it in your room”; on a phone they place the product in their room, on a computer they see a 3D preview and a QR code for the phone.
The steps follow Shoptet’s developer documentation. We have not yet tried them in a live Shoptet store. If names in the admin or the button behaviour differ, let us know and we will update the guide.
What you will need
- A 3D model of the product in GLB format at real dimensions. How to get one is in the article 3D models for online stores.
- A Dimenzum account. You can try everything free for the first 14 days.
- Access to the Shoptet admin, specifically to adding HTML code to the store.
1. Prepare a project in Dimenzum
Create a project in the studio and choose a type. In the room is for a single piece of furniture or decor, In space for a set of several pieces, On the face or On the hand for glasses and watches. Upload the model, check its size in the live preview and publish the project.
2. Enter the product code
In the project settings fill in Product code in your store. It is the code the product has in the Code field of the Shoptet admin. If the product has variants, each variant has its own code; enter at least one of them. A project can hold several codes, and a code may contain letters, digits, a dot, underscore, slash and hyphen.
3. Copy the script from the studio
In the project open the Share tab and choose Shoptet. The code contains your organisation name and is the same for all projects, so you add it to the store only once.
<script src="https://play.dimenzum.com/shop.js" data-org="your-organisation" data-label="See it in your room" async></script>4. Paste the code into Shoptet
In the Shoptet admin open Appearance and content, then Editor and HTML code. Paste the script into the field before the closing BODY tag (footer) and save. Names in the admin may differ slightly by version.
5. Check the product page
Open the product whose code you entered. An AR button appears below Add to cart. If it does not, check three things:
- The project must be published. A paused or scheduled project does not appear.
- The product code must match the code in Shoptet; letter case does not matter.
- The template has no usual spot for the button. The script then places it in the bottom right corner. Set another place with a data-target attribute and a CSS selector, for example data-target=".p-short-description".
How the script recognises the right product
On every page Shoptet exposes page data, including whether it is a product page and the codes of the product and its variants. The script reads them and asks Dimenzum which published project has one of those codes. On the home page, in categories and in the cart it does nothing, and it uses no cookies.
Start with three products that are returned most often or that customers ask about the size of. You add more just by filling in the product code in the studio; the store stays unchanged.
The full process with a demo is on the AR and 3D for Shoptet page, and the help guide is here. Want to try it? The first 14 days are free.