MySizeID widget script implementation
Before you begin
Please send to MySize representative:
a. All your website's products' body size charts.
b. your website product catalog (excel file).
The catalog should include the following:
- Product Name
- Product Gender
- Product Page URL
- Product Category
- Product Size Range
The Integration
1. MySize will provide you with a link to load on all the website product pages.
Statically the script is injected as follows:
<script src=”https://client-scripts.mysz.io/YOURSCRIPTNAME.js”> < /script>
Dynamically it can be added as follows:
var s = document.createElement('script');
s.src = `https://client-scripts.mysz.io/YOURSCRIPTNAME.js`;
document.body.appendChild(s);
Adding the script at this stage will allow our technical team to evaluate the integration and pair the size charts accurately with the relevant products.
2. To accurately pair the size charts with the website’s products, the following product parameters need to be available and exposed on the product pages:
- Product Category (I.e., Dresses)
- Product Gender (I.e., Female)
- Product available size range (I.e., XSS, XS, S, M, L, XL, XXL)
The recommended method is to expose an object on the window object with the data above. For example:
window.product={
gender:'female',
category:'tops',
sizes:['S','M','L']
}
Finalizing the integration
Once the script is ready, we will activate it on our end upon your permission.
Comments
0 comments
Please sign in to leave a comment.