Docs

Installation

Shopyflow installation takes place in 2 simple steps.

  1. Configuring Shopify
  2. Connecting to Webflow

Configure Shopify

Shopyflow requires a Storefront API access token to securely connect your Shopify Store to your Webflow site. To generate your Store API access token;

  1. Head to your Shopify Admin > Settings > Apps and Sales Channels section and click Develop apps link..

What’s a Rich Text element? What’s a Rich Text What’s a Rich Text element? What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

What’s a Rich Text element? What’s a Rich What’s a Rich Text element? What’s a Rich Text ejklkjököbömnlement?What’s a Rich Text element? What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Shopyflow requires a Storefront API access token to securely connect your Shopify Store to your Webflow site. To generate your Store API access token;

1. Head to your Shopify Admin > Settings > Apps and Sales Channels section and click Develop apps link.

What’s a Rich Text element? What’s a Rich What’s a Rich Text element? What’s a  element?What’s a Rich Text element? What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.

Free ON WEBFLOW.IO DOMAINS

Cart Module

Cart Module

Component
Sub-module

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-add-to-cart="1"
Custom Attributes
sf-change-quantity="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-cart-count="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-product="{Product ID}"
Custom Attributes
sf-show-image="1"
Attribute Name
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
No items found.
Cart Module

Cart module is a block of cart components that provide complete cart functionality to be used globally on your site.

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

Webflow app usage

  1. Click anywhere in the Webflow designer
  2. In the Shopyflow app; click Add new
  3. Select Cart
  4. Paste Cart component

Webflow app settings

Layout

With pop-up: Cart component placed in Cart Popup component that turns visible when a product is added to cart.

Without pop-up: Inline Cart component.

Component contents

Module contents

Available methods

Cart Container

Cart wrapping container.
Attribute Name
sf-cart
Attribute Value
True or 1

Contains the cart module components. It is the outermost element of the Cart Module. Cart Container is a Div Block with the sf-cart attribute.

Contains the cart module components. It is the outermost element of the Cart Module. Cart Container is a Div Block with the sf-cart attribute.

Read more →

Cart Items List

Looping container for Cart Items.
Attribute Name
sf-cart-list
Attribute Value
True or 1

Contains the list of the Cart Items currently added to cart. Cart Items List is a Div Block with the sf-cart-list attribute.

Contains the list of the Cart Items currently added to cart. Cart Items List is a Div Block with the sf-cart-list attribute.

Read more →

Cart Subtotal

Cart total displayer
Attribute Name
sf-cart-subtotal
Attribute Value
True or 1

Displays the cart total including all the line items. Cart Subtotal is a Text Block with the attribute sf-cart-subtotal.

Displays the cart total including all the line items. Cart Subtotal is a Text Block with the attribute sf-cart-subtotal.

Read more →

Checkout Button

Checkout Button
Attribute Name
sf-checkout
Attribute Value
True or 1

Sends the customer to Shopify checkout on click. Checkout Button is a Button element with the sf-checkout attribute.

Sends the customer to Shopify checkout on click. Checkout Button is a Button element with the sf-checkout attribute.

Read more →

Cart Discount Code Input

Discount code collecting input.
Attribute Name
sf-change-discount-code
Attribute Value
True or 1

Collects Discount code from the customer. Cart Discount Code Input is a Text Field with the attribute sf-change-discount-code.

Collects Discount code from the customer. Cart Discount Code Input is a Text Field with the attribute sf-change-discount-code.

Read more →

Discount Code List

Iterator wrapper for applied discount code displayers.
Attribute Name
sf-discount-code-list
Attribute Value
True or 1

Contains the list of the discount codes currently applied to the cart. Discount Code List is a Div Block with the attribute sf-discount-code-list.

Contains the list of the discount codes currently applied to the cart. Discount Code List is a Div Block with the attribute sf-discount-code-list.

Read more →

Order Discount List

Iterator wrapper for applied product discounts.
Attribute Name
sf-order-discount-list
Attribute Value
True or 1

Contains the list of the discounts currently applied to the order. Order Discount List is a Div Block with the attribute sf-order-discount-list.

Contains the list of the discounts currently applied to the order. Order Discount List is a Div Block with the attribute sf-order-discount-list.

Read more →

Component

contents

Cart Container

Container
Cart wrapping container.
Attribute Name
sf-cart
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
No items found.
Cart Container

Contains the cart module components. It is the outermost element of the Cart Module. Cart Container is a Div Block with the sf-cart attribute.

Read more →

Webflow app usage

Webflow app settings

Cart Items List

Looping Container
Looping container for Cart Items.
Attribute Name
sf-cart-list
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Cart Container
>
Cart Items List

Contains the list of the Cart Items currently added to cart. Cart Items List is a Div Block with the sf-cart-list attribute.

Read more →

Webflow app usage

  1. Select the Cart Container in the Webflow designer
  2. In the Shopyflow app; click Add new
  3. Click Cart Items List to copy the component
  4. Select the Cart Container again
  5. Paste Cart Items List component

Webflow app settings

Cart Subtotal

Displayer
Cart total displayer
Attribute Name
sf-cart-subtotal
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Cart Container
>
Cart Subtotal

Displays the cart total including all the line items. Cart Subtotal is a Text Block with the attribute sf-cart-subtotal.

Read more →

Webflow app usage

  1. Click anywhere in the Webflow designer
  2. In the Shopyflow app; click Add new
  3. Find and click Cart Total
  4. Paste Cart Subtotal component

Webflow app settings

Checkout Button

Action
Checkout Button
Attribute Name
sf-checkout
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Cart Container
>
Checkout Button

Sends the customer to Shopify checkout on click. Checkout Button is a Button element with the sf-checkout attribute.

Read more →

Webflow app usage

  1. Click anywhere in the Webflow designer
  2. In the Shopyflow app; click Add new
  3. Select Checkout Button
  4. Paste Checkout Button component

Webflow app settings

Cart Discount Code Input

Changer
Discount code collecting input.
Attribute Name
sf-change-discount-code
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Cart Container
>
Cart Discount Code Input

Collects Discount code from the customer. Cart Discount Code Input is a Text Field with the attribute sf-change-discount-code.

Read more →

Webflow app usage

Webflow app settings

Discount Code List

Looping Container
Iterator wrapper for applied discount code displayers.
Attribute Name
sf-discount-code-list
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Cart Container
>
Discount Code List

Contains the list of the discount codes currently applied to the cart. Discount Code List is a Div Block with the attribute sf-discount-code-list.

Read more →

Webflow app usage

Webflow app settings

Order Discount List

Looping Container
Iterator wrapper for applied product discounts.
Attribute Name
sf-order-discount-list
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
Cart Container
>
Order Discount List

Contains the list of the discounts currently applied to the order. Order Discount List is a Div Block with the attribute sf-order-discount-list.

Read more →

Webflow app usage

Webflow app settings

State management

Empty Cart state

Customise the empty state of the Cart

Class name
sf-cart-empty

When there is no product added in the cart the Cart component and all it’s children elements are given the sf-cart-empty class.

sf-cart-empty class can be used to change the look of the Cart component or display/hide inner components when it’s empty.

Related Utilities

Cart Popup

Attribute Name
sf-cart-popup
Attribute Value
True or 1

Containing the Cart component and dynamically becomes visible when a product is successfully added to the cart. It is particularly useful for displaying Cart summaries. Cart Popup is a Div Block with the sf-cart-popup attribute.

The component and all its children elements are given sf-cart-opened class which turns the Cart Popup component visible when a product is added to cart or the Cart Popup Opener component is clicked. sf-cart-opened class is removed when the Cart Popup Closer component is clicked.

You can easily add a Cart Popup to your page using the Shopyflow Webflow App.

Managing the Cart Popup

Once you introduced a Cart Popup to the page you end up with Cart Module placed in a fixed positioned Div Block. The Cart Popup element becomes visible with a class called sf-cart-opened, after a new element is successfully added to the cart. To hide the cart popup initially on the page load:

  1. Open the Navigator Panel
  2. Make sure you select the Cart Popup element which is the outermost element of the Cart Module.
  3. Remove the class sf-cart-opened class from the element.
Read more →

Cart Popup Closer

Attribute Name
sf-cart-close
Attribute Value
True or 1

Closes the Cart Popup on click by removing the sf-cart-opened class from the Cart Popup and all its children elements.

Read more →

Cart Popup Opener

Attribute Name
sf-cart-open
Attribute Value
True or 1

Opens the Cart Popup on click by adding the sf-cart-opened class to the Cart Popup and all its children elements.

Read more →

Product Link

Attribute Name
sf-product-link
Attribute Value
True or 1

Product Link links any element to a product page.

For example if you add the sf-product-link attribute to a link element on or inside a Cart Item, it will convert the element to a link that goes to that product's detail page. Similarly, if you add it to a Product Search Result Item, it will link the search result element to that product's detail page.

If you are using a product page path other than "Products" do the following !

If you are using a product page path other than "products", you need to add the product-page-path attribute to your Shopyflow Engine code snippet.

For example if your product page path is "articles", you need to add product-page-path="articles" attribute to your existing Shopyflow Engine code snippet as shown below.


<!-- Shopyflow CSS -->
<link rel="stylesheet" href="https://cdn.shopyflow.io/[VERSION]/shopyflow.css"/>

<!-- Shopyflow Engine -->
<script defer
sf-token="[STOREFRONT API KEY]"
sf-domain="[SHOPIFY STORE DOMAIN]"
src="https://cdn.shopyflow.io/[VERSION]/shopyflow.js"
product-page-path="articles"></script> 

Do NOT add a second Shopyflow code snippet to your Webflow site or use an example code snippet (like the one above) directly. Update your existing Shopyflow code snippet instead.

Read more →
Can't find a solution? Join our Discord server to get an instant reply from our experts and the community.