Fit Tip
Remember, the Assistant Manager must always be present for any StrutFit features to work.
The fit tip is a lightweight component that is placed on the product page. It is used to display context-aware fit guidance for the current product.
Integrating the Fit Tip
To integrate the fit tip, add the following script to your website on pages where the fit tip should appear:
<script src="https://store-assistant-fittip.strut.fit" async></script>Adding the Component
Place the component where you want the fit tip to appear:
<strutfit-fit-tip product-code="{{ProductIdentifier}}"></strutfit-fit-tip>Replace {{ProductIdentifier}} with the unique product identifier you use for products in StrutFit.
Required Parameters
product-code: The unique product identifier you use for products in StrutFit.
Optional Parameters
variant: Sets the fit tip variant style. Valid values aretextoroutlined.show-icon: Set totrueorfalseto control icon visibility.full-width: Set totrueto make the fit tip fill the width of its container.font-family: Sets fit tip font family.font-size: Sets fit tip font size.font-weight: Sets fit tip font weight.background-color: Sets fit tip background color.border-radius: Sets fit tip border radius.border: Sets the full CSS border value.border-color: Sets the border color.color: Sets text color.icon-color: Sets icon color.margin: Sets shorthand margin.margin-top: Sets top margin.margin-left: Sets left margin.margin-bottom: Sets bottom margin.margin-right: Sets right margin.text-transform: Sets text transform (e.g.uppercase,lowercase,capitalize).line-height: Sets the line height. Defaults to1.
Note: font-family will try to inherit your primary website font by default. If you change it, make sure that font is loaded on your website.
For a full list of options, see the Fit Tip Options page.
Example With All Options
<strutfit-fit-tip
product-code="{{ProductIdentifier}}"
variant="outlined"
show-icon="true"
full-width="false"
font-family="arial"
font-size="12px"
font-weight="500"
background-color="#f8f9fa"
border-radius="8px"
border="1px solid #dee2e6"
border-color="#dee2e6"
color="#333333"
icon-color="#333333"
margin="8px 0"
margin-top="8px"
margin-left="0"
margin-bottom="8px"
margin-right="0"
text-transform="uppercase"
line-height="1"
></strutfit-fit-tip>Last updated on