Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.wearo.io/llms.txt

Use this file to discover all available pages before exploring further.

Install on Magento

Prerequisites

  • A Wearo account (sign up)
  • Your Wearo API key (get yours)
  • Access to your Magento theme files or admin
1

Add the snippet via CMS static block (no-code)

In your Magento admin, go to Content → Blocks → Add New Block. Add the Wearo snippet and include the block in your product page layout.
2

Or add it to your theme layout XML

In your theme, edit Magento_Catalog/layout/catalog_product_view.xml and add a block referencing your snippet in the footer container.
<script src="https://wearo.io/widget/tryon-widget.js"></script>
<script>
  TryOnWidget.init({
    apiKey: 'wearo_xxxxxxxxxxxxxxxxxxxx',
    productSelector: '.fotorama__img--full, .gallery-placeholder img',
    brandColor: '#000000'
  });
</script>
3

Flush cache

Run bin/magento cache:flush or flush from System → Cache Management.
4

Verify it works

Visit a product page and confirm the “Try it on” button appears.

Need help?

Book a 30-min integration call

We’ll set up Wearo live on your store with you.