---
title: "Add a photo book editor to Wix | Prodigi Studio"
description: "Add the Prodigi Studio photo book editor to a Wix site with an HTML iframe element and Velo page code that listens for the finished book."
url: "https://studio.prodigi.com/help/wix"
---

# Add the photo book editor to Wix

Add an HTML iframe element to your Wix page and point it at your Studio editor.

Velo page code listens for the message Studio sends when the customer finishes their book, including the Studio order reference your backend confirms after payment.

## Wix example

```
// Wix Velo — in your page code (Page.js)
import { fetch } from 'wix-fetch';

$w.onReady(function() {
  // Add an HTML iframe element in the editor named #studioFrame
  // Set its src to: https://studio.prodigi.com/generator/embed/YOUR_MERCHANT_ID

  $w('#studioFrame').onMessage((event) => {
    const data = event.data;
    if (data.type === 'ARTPLATFORM_BOOK_READY') {
      // Handle the completed book
      const { lineItem, order } = data.payload;
      console.log('Book ready:', lineItem, order.reference);
      // Add to your Wix store cart programmatically. After payment,
      // your backend confirms order.reference with
      // POST /v1/orders/{reference}/submit.
    }
  });
});
```

## Other guides

-   [Add the photo book editor to any website](https://studio.prodigi.com/help/html-embed)
-   [Add the photo book editor to WordPress](https://studio.prodigi.com/help/wordpress)
-   [Add the photo book editor to Shopify](https://studio.prodigi.com/help/shopify)
-   [Add the photo book editor to Squarespace](https://studio.prodigi.com/help/squarespace)
-   [Create photo books with the Studio API](https://studio.prodigi.com/help/studio-api)
-   [Frequently asked questions](https://studio.prodigi.com/help/faq)
