Webflow
You are just 2 steps away from adding mySHOEFITTER to your shop and reduce your return rate drastically.
Add the Script
-
Log into Webflow: Open your browser, navigate to the Webflow website (https://webflow.com (opens in a new tab)), and log into your account.
-
Choose your project: From your dashboard, click on the E-Commerce project you wish to add the custom script tag to.
-
Navigate to Project Settings: Once inside your project, click on the "Project Settings" button located at the top right corner of the dashboard.
-
Select the Custom Code section: Inside Project Settings, navigate to the "Custom Code" tab found on the top menu.
-
Add the script in the Footer Code section: Under the "Footer Code" box, you can add the following script tag. The code you insert here will be added before the
</body>
tag on every page across your site. Make sure your script tag begins with<script>
and ends with</script>
.
<!-- Load the mySHOEFITTER Script -->
<script src="https://js.myshoefitter.com/v1/script.js"></script>
<!-- Initialize mySHOEFITTER -->
<script type="application/javascript">
myshoefitter.init({
shopId: 'your-shop-id', // <- Replace
productId: 'custom-product-id' // <- Replace
});
</script>
-
Save your changes: Click the "Save Changes" button on the top right corner of the page.
-
Publish your site: Navigate back to the designer by clicking on the designer icon on the left-hand side. Click on the "Publish" button at the top right corner of the designer to make your changes live.
Add the button
-
Go to Designer: In the project's dashboard, click the "Designer" button in the top-right corner to open the Designer tool.
-
Find your 'Add to Cart' button: Navigate to the page that contains the "Add to Cart" button. Usually, it's in your product template page. If it's not visible in the page's structure, make sure you've added a product to the cart for testing purposes.
-
Add a new button: In the left panel, select "Add Elements". Then, under the "Form" section, drag a "Button" element and drop it next to the "Add to Cart" button in your design layout.
-
Set an ID for your button: Select your newly added button, then, on the right-side panel under "Element Settings" (the cogwheel icon), type
myshoefitter-button
into the "ID" field. -
Save your changes: Click the "Save" button in the top-right corner of the Designer interface.
-
Publish your site: Once saved, click the "Publish" button at the top right of the designer to make your changes live.