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
Using metafields you can customize your Shopify store by displaying additional information that's otherwise not included in the Shopify. You can for example show the size of the wheel of a bike you are selling or you can display the publication date of the book you are showcasing. Shopyflow offers a simple way to show your Shopify metafields in Webflow.
Shopyflow currently supports the following product metafields:
You can check out this Shopify guide to find out about how you can use metafields in your own store.
You can learn more about Shopyflow metafield attributes here.
Shopyflow displays your product metafields by using the sf-show-metafield="METAFIELD KEY" attribute. Give this attribute to a text element inside a product container.
① In your product settings in Shopify, click on the metafield name to see its definition.
② In the page that opens, note down the namespace and the key values of your metafield. You will use these values to build your Shopyflow attribute which will display the metafield in Webflow. Shopyflow assumes your metafield's namespace is "custom". If you are using any other namespace, make sure to checkout the next sections in this guide.
③ We can display the Wheel size metafield using sf-show-metafield="wheel_size" attribute. When building your Shopyflow attribute, make sure to to use the key of the metafield (wheel_size). Do not use its name (Wheel size). Please refer to the previous image if necessary.
④ When using metafields (especially in product CMS template page), it's advised to wrap your metafield and its label with a div that has sf-metafield-wrapper="1" attribute. This will hide the content of the metafield wrapper when the product on the page doesn't have that metafield.
Shopyflow displays your variant metafields by using the sf-show-variant-metafield="[METAFIELD KEY]" attribute. Give this attribute to a text element inside a product container.
If you are using a namespace other than "custom", you will also need to add sf-change-metafield-namespace="[NAMESPACE]" attribute to your metafield displayer element in Webflow.
As seen in the image below, if the namespace of your metafield is "my_namespace" you will need to add sf-change-metafield-namespace="my_namespace" attribute to the same metafield displayer element.
You can display product or variant metafields inside your Cart Line Item by using the same metafield displayers.