Rugs
Put a rug on the shopper's floor and let them switch between its sizes.
A rug lies on the floor of the room. The shopper drags it into place and turns it with the handle around it. From the product card the shopper can also open your catalogue and try another product in the same room.
Data
| Option | Value |
|---|---|
type | rugs |
tinuuid | The object id of one size of the rug |
name | The product's name: the dialog's accessible title. The product card shows the name from your catalogue |
<button
type="button"
data-vizbl-room-viewer-dialog
data-vizbl-room-viewer-api-key="pk_live_YOUR_PUBLISHABLE_KEY"
data-vizbl-room-viewer-type="rugs"
data-vizbl-room-viewer-name="Kilim Terracotta"
data-vizbl-room-viewer-tinuuid="YOUR_OBJECT_TINUUID"
>
View in your room
</button>The Quickstart shows the same rug in JavaScript and React.
Object id
In the Rugs dashboard every size of a rug is its own 3D object with its own Object ID: copy it from the list of rugs or with Copy object ID in the row's menu. Pass the id of the size the page sells; Room Viewer opens the rug on that size.
Rug sizes
Room Viewer finds a rug's sizes from the object id you pass, so you pass one id per product page, not one per size. When the rug has more than one size, the shopper switches between them from the product card in the room. Sizes show in the display unit.
To add a size, use Add size on the rug in the Rugs dashboard. The rug's sizes, prices and SKUs come from there.
AR
On an iPhone the shopper can place the rug in their own room through an App Clip. On a computer, Room Viewer shows a QR code that continues on the phone.