Skip to main content

Automatic Size Selector

This feature enables automatic selection of the size variant as recommended by the Faslet system on your store's site.

Upon generating a size recommendation, the Size Me Up Virtual Assistant triggers the window._faslet.onResult function, provided that it's defined. This function is defined as follows:

onResult: ({ label: string }, resultType: 'auto' | 'result-screen') => unknown

Here's a breakdown of the parameters used in the onResult function:

ParameterTypeDescription
labelstringCorresponds to the Size Labels provided with the integration. This directly matches the specific size recommendation delivered by Faslet.
resultType'auto' | 'result-screen'Signifies the source of the size recommendation. This will show if the result was generated automatically and displayed on the button when pre-existing data was available (auto), or if it was created inside the popup on the result screen (result-screen).

Depending on the capabilities of your specific platform, the label can be utilized to programmatically select the correct variant on the Product Detail Page (PDP), enhancing the user experience by decreasing the number of actions required to complete a purchase.

tip

A full definition of all the options on the window._faslet object can be found in the Faslet Global Object documentation.