> For the complete documentation index, see [llms.txt](https://docs.sizebay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sizebay.com/fashion-hub/service-implementation-script.md).

# Service Implementation (Script)

### 1. Creating the Necessary HTML Elements

Add the HTML elements below to your pages, depending on which Fashion Hub modules your store will support:&#x20;

<table><thead><tr><th width="150.8359375">Element Purpose</th><th width="375.44921875">HTML Snippet</th><th>Mandatory</th></tr></thead><tbody><tr><td>Container for <strong>Fashion Hint – Similar</strong></td><td><p></p><pre class="language-html"><code class="lang-html">&#x3C;div id="fashion-hint-similar">&#x3C;/div>
</code></pre></td><td>Yes (if Fashion Hint is contracted)</td></tr><tr><td>Container for <strong>Fashion Hint – Complementary</strong></td><td><p></p><pre class="language-html"><code class="lang-html">&#x3C;div id="fashion-hint-complementary">&#x3C;/div>
</code></pre></td><td>Yes (if Fashion Hint is contracted)</td></tr><tr><td>Open <strong>Image Search button</strong></td><td><p></p><pre class="language-html"><code class="lang-html">&#x3C;button id="openSearchModalButton">Search by Image&#x3C;/button>
</code></pre></td><td>Yes (if Image Search is contracted)</td></tr><tr><td>Open <strong>Image Search</strong> using the <strong>currently viewed product</strong> as the context</td><td><pre class="language-html"><code class="lang-html">&#x3C;div class="resultsButtonsWrapper">
  &#x3C;button class="openResultsModalButton" data-tab="similar">Similar&#x3C;/button>
  &#x3C;button class="openResultsModalButton" data-tab="complementary">Complementary&#x3C;/button>
&#x3C;/div>
</code></pre></td><td>Yes (if Image Search is contracted and you intend to display the additional CTAs)</td></tr><tr><td><strong>Modal</strong> for <strong>Image Search</strong></td><td><p></p><pre class="language-html"><code class="lang-html">&#x3C;div class="modal" id="imageSearchModal">
  &#x3C;div class="modal-content small">
    &#x3C;button class="close-button" id="closeSearchModalButton">&#x26;times;&#x3C;/button>
  &#x3C;/div>
&#x3C;/div>
</code></pre><p></p></td><td>Yes (if Image Search is contracted)</td></tr><tr><td><strong>Modal</strong> for <strong>Image Search Results</strong></td><td><p></p><pre class="language-html"><code class="lang-html">&#x3C;div class="modal" id="imageSearchResultsModal">
  &#x3C;div class="modal-content large">
    &#x3C;button class="close-button" id="closeResultsModalButton">&#x26;times;&#x3C;/button>
  &#x3C;/div>
&#x3C;/div>
</code></pre></td><td>Yes (if Image Search is contracted)</td></tr></tbody></table>

### 2. Script Injection

To enable Sizebay's features on your store, you must include the following script in the `<head>` of your HTML:

```html
<script defer id="sizebay-fashion-hub" src="https://static.sizebay.technology/TENANT_ID/fh_prescript.js"></script>
```

> Replace `TENANT_ID` with your actual tenant ID. If you don't have it, please contact our team.\
> This script is required for the initialization of all Fashion Hub modules.
