Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Iframe integration on a product page refers to embedding the product visualization UI directly into the page instead of using a default button. This approach eliminates the need for users to click a button to view the visualization, providing a more seamless and engaging experience.

In this example, the product visualization is embedded directly within the product page, eliminating the need for a separate button:

Screenshot from 2024-07-23 13-28-07.png

The following code snippet provides a guide for integrating the visualization using an iframe approach:

<iframe
   id="wizart-fitting-room-object"
   role="dialog"
   aria-label="Wizart Fitting Room."
   type="text/html"
   class="active"
   src="https://pim-client.wizart.ai/fitting-room?api_token=your_API_token"
   allowfullscreen
   >
</iframe>

<style>
   iframe {position:fixed; width:60%; height:60%; border:none; z-index:999999; }
</style>

'your_API_token' can be found in your PIM-account:

The provided code should be placed below the element where you want the iframe to appear. This ensures that the iframe is positioned correctly within the page layout.

The src attribute in an iframe tag can also include various parameters that become accessible within the iframe's context.

  • No labels