Rugs
Let shoppers lay your rugs on the floor of their own room and switch between sizes.
Rugs adds a button to your product page that lays the rug on the floor of the shopper's room, or of a photo of their own, to scale, in every size you sell.
Widget code
In the Rugs dashboard, open Dashboard → Widget code, pick the rug and copy both parts. The Quickstart walks through them.
<script async src="https://cdn.vizbl.com/@vizbl/loader/dist/vizbl.js" data-key="pk_live_YOUR_PUBLISHABLE_KEY"></script>
<vizbl-button product="rugs" object-id="YOUR_OBJECT_ID">Try rug in scene</vizbl-button>object-idis the rug's size the page sells. The shopper switches between the rug's other sizes in the viewer.- To serve every product page with one button, name the product by
skuorproduct-idinstead, once it is linked in the dashboard's Store products. See How a button finds the product. - The room you pick in the dialog adds
room-id, the room the viewer opens in. See Initial room.
The package behind it
The button opens Room Viewer with the type rugs. To install Room Viewer yourself, with your own trigger, see the Rugs guide: it explains the object id and rug sizes.
Related
- Vizbl.js reference: every attribute of
<vizbl-button>. - Developer API: turn a photo of a rug into a 3D rug from your server.