Docs
Free ON WEBFLOW.IO DOMAINS

True Fit Integration

Integration
Integrate True Fit with your Shopify store in Webflow

Shopify Storefront data and cart logic is bound to your Webflow elements through Shopyflow attributes. Connecting your Webflow site to Shopify is done by adding custom attributes to your Webflow elements.

Yet, you are not required to type or edit attributes manually. Shopyflow provides you with the pre-configured components needed to create your store, as copyable Webflow elements right in Webflow designer.

All the copyable Shopyflow Components are native editable Webflow elements. There is no layout or styling limitation on any element.

In the below image hover your mouse on the hotspots to see all the required Shopyflow attributes to build a product page like this in Webflow

Webflow designer
Custom Attributes
sf-product="{Product ID}"
Attribute Name
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
No items found.
True Fit Integration
Method

True Fit enhances the shopping experience by providing personalized size and fit recommendations for customers. It helps reduce return rates and increase customer satisfaction by ensuring that buyers find the perfect fit for their purchases.

① Go to your product page settings in Webflow and add the following code snippet to the custom code section before the </body> tag. Change the 'xxx' at the bottom of the code with your client ID which you can get from your project manager or customer success manager. For example, if your client ID is arm, the line would look like ('arm', 'staging', {autoCalculate: true})

<script>
(function(r,e,o){
  var w=window,d=document,t,s,x;
  w.tfcapi=t=w.tfcapi||function(){t.q=t.q||[]; t.q.push(arguments);};
  t('init', {storeKey: r, environment: e, ...o});
  x=d.getElementsByTagName('script')[0];
  s=d.createElement('script');
  s.type='text/javascript';s.async=true;
  s.src='https://'+r+'-cdn'+(e==='dev'||e==='staging'?'.'+e:'')+ '.truefitcorp.com/fitrec/global/js/tf-integration.js?storeKey='+r;
  x.parentNode.insertBefore(s,x);
// Don't change anything above this line
})('xxx', 'prod', {autoCalculate: true});
</script>

② Go to your product page in Webflow and add the following code snippet as an embedded html element. Don't forget to change the PRODUCT_ID with your product ID from Shopify. If you are using CMS, connect the data-styleid attribute's value to product ID field in products CMS collection.

<div class="tfc-fitrec-product" data-styleid="PRODUCT_ID"></div>

Take a look at the official guide of True Fit for further customization.

Class name
Target elements
Can be placed anywhere in the site
No items found.

Webflow app usage

Webflow app settings

Inner components

Module contents

Available methods

No items found.

Integration

contents

No items found.

State management

No items found.

Related Utilities

No items found.
Can't find a solution? Join our Discord server to get an instant reply from our experts and the community.