Template Page

How to design your product template page in Webflow

This document outlines the steps and best practices for creating your product template page in Webflow using Smootify.

Learn how to fetch product data from your Shopify store and display it in visually inside your Product Template Page

How to create a Product Page

Design the Product Page

Copy and paste the Product Custom Element inside the Product Template Page

Product Custom Element

Product integration's heart. Where the magic happens.

Copy Element

Inside the Product Custom Element you can insert any Webflow element you desire and you connect them to the Webflow CMS.

For all the dynamic elements you can use inside the Product Custom Element with attributes or with other specific custom elements refer to the elements documentation

Connect the Product Custom Element to the Shopify ID

Connect the Product Custom Element to the Shopify ID field of the Webflow CMS

Upsell Products

Specific project requirements might necessitate loading products directly from Shopify, rather than using Webflow's collection list feature. For example when you need to show product upsells, like recommended and complementary products.

Key Concepts:

  • Product Template:
    • You design a single 'Product Template', and Smootify, leveraging the Shopify Storefront API, automatically replicates that template for each product returned by your query.
    • Dynamic data from the collection's fields is then populated into each Product Template.
  • Dynamic Data Binding:
    • Custom attributes and Custom Elements within the 'Product Template' dictate where dynamic Shopify data will be injected into the static elements by Smootify.

How to create an upsell Product Listing

Add a Flex or Grid element

Design your flex/grid by keeping in mind that the replication of your product items will only occur on the live website, where your placeholder will be transformed into the full product listing.

Design the Product Template item

Copy and paste the Product Custom Element inside the flex/grid element you created.

Product Custom Element

Product integration's heart. Where the magic happens.

Copy Element

Inside the Product Custom Element you can insert any static Webflow element.

For all the dynamic elements you can use inside the Product Custom Element with attributes or with other specific custom elements refer to the elements documentation

Add the data-id attribute

To retrieve the correct data from Shopify, add the necessary data-id attribute.

The required value depends on your query. Refer to the list below for all possible data-id options.

Add the data-parent-id attribute

To retrieve the correct data from Shopify, add the mandatory data-parent-id attribute. The attribute must be connected to the Shopify ID Webflow CMS field and just indicates that you want to load for example related products from the parent product selected by that ID

Name
data-parent-id
Value
Shopify ID

[Optional] Limit the number of products

By default the dynamic queries explained before will fetch 3 products. You can override this limit by adding another custom attribute to the Product Custom Element

Name
limit
Value
Number of Products

E.g to fetch 10 products you can add:

Name
limit
Value
10