Full Screen Embedding
Embed the product Customizer anywhere on your website using the HTML element: iframe
. Simply set the src attribute pointing to the Customizer URL <iframe src="https://alterproduct.com/app/customizer/11" width="100%" height="100%">
To get the ready-to-use HTML embed code, go to your product design and click the “Share” tab. There you will find the generated iframe code and the option to configure URL parameters. Make sure your E-commerce tools are set to public so the iframe displays correctly.
index.html
1<!DOCTYPE html>
2<html>
3 <head>
4 <title>Customizer - Full Screen</title>
5 <meta charset="utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1" />
7
8 <style>
9 * {
10 box-sizing: border-box;
11 }
12
13 html,
14 body,
15 #root {
16 width: 100%;
17 height: 100%;
18 margin: 0;
19 padding: 0;
20 }
21
22 iframe {
23 display: block;
24 }
25 </style>
26 </head>
27 <body>
28 <iframe
29 loading="lazy"
30 title="Product Customizer"
31 src="https://alterproduct.com/app/customizer/11"
32 width="100%"
33 height="100%"
34 frameBorder="0"
35 allowFullScreen
36 ></iframe>
37 </body>
38</html>