Implementation directly on your code
1. Creating the Necessary HTML Elements
Add the HTML elements below to your pages, depending on which Fashion Hub modules your store will support:
Container for Fashion Hint – Similar
<div>
<div id="fashion-hint-similar"></div>
Container for Fashion Hint – Complementary
<div>
<div id="fashion-hint-complementary"></div>
Open Image Search button
<button>
<button id="openSearchModalButton">Search by Image</button>
Modal for Image Search
<div>
<div class="modal" id="imageSearchModal"><br> <div class="modal-content small"><br> <button class="close-button" id="closeSearchModalButton">×</button><br> </div><br></div>
Modal for Image Search Results
<div>
<div class="modal" id="imageSearchResultsModal"><br> <div class="modal-content large"><br> <button class="close-button" id="closeResultsModalButton">×</button><br> <!-- The iframe will be dynamically injected here --><br> </div><br></div>
2. Script Injection
To enable Sizebay's features on your store, you must include the following script in the <head>
of your HTML:
<script defer id="sizebay-vfr-v4" 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.
Last updated
Was this helpful?